Skip to content

Test 46869: Validate Random Set Taxonomy Filters - #12111

Open
matheuszych wants to merge 2 commits into
ILIAS-eLearning:release_11from
matheuszych:ta/46869-2
Open

matheuszych wants to merge 2 commits into
ILIAS-eLearning:release_11from
matheuszych:ta/46869-2

Conversation

@matheuszych

Copy link
Copy Markdown
Contributor

See: https://mantis.ilias.de/view.php?id=46869

Random question set taxonomy filters could be loaded or mapped with invalid taxonomy ids, which produced broken staging queries. setMappedTaxonomyFilterFromDbValue() now unserializes with restricted classes, rejects non-array payloads, and delegates to setMappedTaxonomyFilter(), which drops invalid entries. mapTaxonomyFilter() ignores mapped taxonomy ids below 1; ilTestRandomQuestionSetBuilder, addTaxonomyFilter(), and the staging query builder skip non-positive ids when applying filters.

Random question set builder classes still used camelCase for properties and local variables. Rename them to snake_case so they follow the ILIAS coding style.

/cc @thojou

See: https://mantis.ilias.de/view.php?id=46869

Random question set taxonomy filters could be loaded or mapped with invalid taxonomy ids, which produced broken staging queries. `setMappedTaxonomyFilterFromDbValue()` now unserializes with restricted classes, rejects non-array payloads, and delegates to `setMappedTaxonomyFilter()`, which drops invalid entries. `mapTaxonomyFilter()` ignores mapped taxonomy ids below 1; `ilTestRandomQuestionSetBuilder`, `addTaxonomyFilter()`, and the staging query builder skip non-positive ids when applying filters.
See: https://mantis.ilias.de/view.php?id=46869

Random question set builder classes still used camelCase for properties and local variables. Rename them to snake_case so they follow the ILIAS coding style.
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.

1 participant