-
Notifications
You must be signed in to change notification settings - Fork 31
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
Fixed openByDefault to use filter #571
Merged
Merged
Conversation
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
SonarCloud Quality Gate failed. |
olemartinorg
approved these changes
Oct 21, 2022
For future reference, here is the "more correct" implementation of app-frontend-react/src/altinn-app-frontend/src/utils/formLayout.ts Lines 561 to 608 in 2b4ad09
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Open by default "first" and "last" is also broken by filters. In order to fix this the saga doing the open by default also needs to compute the
filteredIndexList
like the GroupContainer does. This function has been moved out of the component so that both the saga and the GroupContainer can use the same implementation.I tried to make a general function, but the existing implementation did not make complete sense to me. It did not seem like it would work as documented, but by trying to reimplement it differently it broke some cypress tests.The issues related to filters are documented here: #339 (comment)
Related Issue(s)
Verification
Relevant automated test added (if you find this hard, leave it and we'll help out)Documentation
User documentation is updated with a separate linked PR in altinn-studio-docs. (if applicable)