Skip to content

Fix database prefixes and a lot of other small things#22

Merged
dlmsr merged 14 commits intomainfrom
fix/db_settings_overall
Mar 26, 2026
Merged

Fix database prefixes and a lot of other small things#22
dlmsr merged 14 commits intomainfrom
fix/db_settings_overall

Conversation

@TamaroWalter
Copy link
Copy Markdown
Member

@TamaroWalter TamaroWalter commented Mar 4, 2026

Note: Please fill out all relevant sections and remove irrelevant ones.

🔀 Purpose of this PR:

  • Fixes a bug
  • Updates for a new Moodle version
  • Adds a new feature of functionality
  • Improves or enhances existing features
  • Refactoring: restructures code for better performance or maintainability
  • Testing: add missing or improve existing tests
  • Miscellaneous: code cleaning (without functional changes), documentation, configuration, ...

📝 Description:

This PR has different little fixes from bugs that occurred from previous commits as well as older bugs that were found during testing through the plugin.

At this state, i can successfully create courses based on the lsf_view tables that i get through the 'update_helptable' cronjob.

Note: This branch was created from another feature-branch that was not merged to main, but is now.

@TamaroWalter TamaroWalter self-assigned this Mar 4, 2026
@TamaroWalter TamaroWalter force-pushed the fix/db_settings_overall branch from 21b495d to 2512b0c Compare March 4, 2026 16:05
@TamaroWalter TamaroWalter requested a review from dlmsr March 4, 2026 16:05
@dlmsr dlmsr force-pushed the fix/db_settings_overall branch 2 times, most recently from e91db63 to 2983220 Compare March 5, 2026 10:22
TamaroWalter and others added 10 commits March 20, 2026 12:11
The table was build manually using echo statements. The UI therefore
looked out of place. Now, it uses \core_table\flexible_table which
does the HTML rendering for us.
The pg_lite class checks if the result of pg_connection_status() is
false.  However, a good connection status (PGSQL_CONNECTION_OK) equals
the integer 0 which the operator == concerns equal to false. So a
failed connection is stated although the connection is okay.
if the types are stated moodle_form complains:
Declaration must be compatible with moodleform->validation(data: array, files: array)
The bitwise & caused installation failures and is also semantically
wrong since assign_capability returns boolean values.
@TamaroWalter TamaroWalter requested review from dlmsr and removed request for dlmsr March 20, 2026 13:30
@dlmsr dlmsr force-pushed the fix/db_settings_overall branch from 2983220 to 32e1610 Compare March 26, 2026 12:52
After initiating a helptable update one was stuck on this
update_helptable.php page which just shows an empty page.
As many lsf-categories can map to the same Moodle category, the
'mdlid' is not an unique array key.  In one testcase Moodle complained
about it.
@dlmsr dlmsr force-pushed the fix/db_settings_overall branch from 32e1610 to 3eee595 Compare March 26, 2026 12:56
@dlmsr dlmsr merged commit 3eee595 into main Mar 26, 2026
@TamaroWalter TamaroWalter deleted the fix/db_settings_overall branch March 27, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants