Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to remove the poll list from the navigation by admin setting #3461

Merged
merged 2 commits into from
Apr 30, 2024

Conversation

dartcafe
Copy link
Collaborator

@dartcafe dartcafe commented Apr 29, 2024

Allow deacivating loading polls inside the navigation out of performance reasons

This PR may help to increase the performance of loading polls referring this observations, by adding a setting for diabloing loading the polls list into the navigation.

@come-nc I separated this changes from the main PR, so it should be possible to backport them to the stable-6 branch.

Signed-off-by: dartcafe <github@dartcafe.de>
Signed-off-by: dartcafe <github@dartcafe.de>
@dartcafe dartcafe added this to the 7.1 milestone Apr 29, 2024
@dartcafe dartcafe requested a review from come-nc April 29, 2024 07:51
@@ -131,6 +131,7 @@ export default {
...mapState({
isPollCreationAllowed: (state) => state.polls.meta.permissions.pollCreationAllowed,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@come-nc
Watch the changed structure. For the stable-6 branch, the mapping should not chbe changed. (meta.* does not exist there in the store.)

Copy link

@come-nc come-nc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did not test but code looks good.

@dartcafe dartcafe changed the title Enh/relieve-nav Optionally load poll list to navigation Apr 30, 2024
@dartcafe dartcafe changed the title Optionally load poll list to navigation Allow to remove the poll list from the navigation by admin setting Apr 30, 2024
@dartcafe dartcafe merged commit 5daca31 into enh/poll-loading-perf Apr 30, 2024
13 checks passed
@delete-merged-branch delete-merged-branch bot deleted the enh/relieve-nav branch April 30, 2024 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants