Skip to content

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

Open
TamaroWalter wants to merge 14 commits intomainfrom
fix/db_settings_overall
Open

Fix database prefixes and a lot of other small things#22
TamaroWalter wants to merge 14 commits intomainfrom
fix/db_settings_overall

Conversation

@TamaroWalter
Copy link
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
TamaroWalter and others added 11 commits March 5, 2026 08:56
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 pg_connection_status() is false.
Problem is: a good connection status (PGSQL_CONNECTION_OK) equals the integer 0.
php values a 0 equal to "false" and because of that, 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)
For some reason, using the logical & caused that on install the lsf_unification datatables were not created
@dlmsr dlmsr force-pushed the fix/db_settings_overall branch from 5151c9b to e91db63 Compare March 5, 2026 10:21
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 e91db63 to 2983220 Compare March 5, 2026 10:22
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