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

Calculate only currently observed nav #1039

Merged
merged 2 commits into from
Oct 27, 2020

Conversation

karelhala
Copy link
Contributor

No need to calculate nav of other bundles

When user is in one bundle navigation is also calculated for other bundle, this is not correct as it can make the navigation loading slow and unresponsive. This PR calculates only currently observed navigation and further reduces rendering of navigation. This is really obvious if you directly hit any URL without any cache. Once you navigate between apps it's not so obvious as we are using cached navigation.

Allow passing array of permissions

Some apps might require multiple checks before rendering navigation items so we have to check if permissions is array and not to wrap it in another array.

@karelhala karelhala requested review from a team October 23, 2020 08:23
rvsia
rvsia previously approved these changes Oct 23, 2020
Hyperkid123
Hyperkid123 previously approved these changes Oct 23, 2020
Copy link
Contributor

@Hyperkid123 Hyperkid123 left a comment

Choose a reason for hiding this comment

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

🐌

@Hyperkid123
Copy link
Contributor

@karelhala can you fix the failing tests?

Copy link
Contributor

@Hyperkid123 Hyperkid123 left a comment

Choose a reason for hiding this comment

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

👾

@Hyperkid123 Hyperkid123 merged commit da51412 into RedHatInsights:master Oct 27, 2020
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.

3 participants