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

[5.x] Fix augmentation issues for URL nav items #10086

Merged
merged 1 commit into from
May 20, 2024

Conversation

duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented May 15, 2024

This pull request fixes an issue with URL nav items not being augmented properly.

I managed to track down the issue to some changes made in #9636. As part of those changes, a getBulkAugmentationReferenceKey method has been added. It seems like the returned key is unique for entry nav items but wasn't for URL-based nav items.

This PR appends the nav item ID to the returned reference key which seems to fix the issues.

Fixes #10055.
Fixes #10080.

Copy link
Contributor

@JohnathonKoster JohnathonKoster left a comment

Choose a reason for hiding this comment

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

After reviewing this, these changes seem okay to me. Future refactors might be able to allow for more specific targeting of the bulk augmentation reference, but these changes preserve the new behavior for entries, while preventing issues with other data-types without major performance issues (working is better than fast, but not working!).

Great work!

@jasonvarga jasonvarga merged commit bad5b3a into 5.x May 20, 2024
33 checks passed
@jasonvarga
Copy link
Member

Thanks both

@jasonvarga jasonvarga deleted the fix/augmented-nav-issues branch May 20, 2024 14:42
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.

Root nav items don't return custom field data Navigations can't access group data when it has a condition
3 participants