-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: query set optimization (#1491)
* feat: fetch options in AutocompleteSelect instead of load function * style: add spinner during AutocompleteSelect loading * chore: format * chore: remove checkConstraints in page.svelte * feat: check constraints inside AutocompleteSelect * feat: globalize AutocompleteSelect fetching * chore: format * chore: cleaning useles foreignKey fetches and old missing constraints logic * fix: typo in ThreatForm optionsEndpoint * fix: use optionsLabel str for risk assessment field in scenario form * feat: add optionsLabelField auto for assets threats and feared events * feat: sort options to put suggestions first * chore: add missing indent * chore: remove unused getOptions * chore: give default values to avoid warnings in frameworks detailed view * feat: add entity assessment folder extra label for perimeter field * chore: nitpicking * feat: add detailed url parameters in AutocompleteSelect fetchOptions * feat: exclude self from options for parent assets and folder * feat: refresh AutocompleteSelect when applied control/evidence is created inside requirement assessment * chore: format front * chore: remove useless foreignKeys fetch in risk assessment page * chore: remove the latest foreignKeys fetches on server side * Improve performance - optimize get_accessible_object_ids by first calculating the folders that match, and only then retrieving (optimally) the objects from these folders. This should be way more scalable. - use scope_folder_id parameter to scope the retrieved objects * prettier/ruff * Fix regression special case of folder for get_accessible_object_ids * fix published objects not visible --------- Co-authored-by: Mohamed-Hacene <mohamedhacene.b@gmail.com>
- Loading branch information
1 parent
6b42979
commit 87ffbea
Showing
4 changed files
with
95 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters