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

Feature/52144 changing a persisted list #15326

Merged
merged 22 commits into from May 8, 2024

Conversation

toy
Copy link
Contributor

@toy toy commented Apr 19, 2024

@toy toy force-pushed the feature/52144-changing-a-persisted-list branch 4 times, most recently from 60c29b2 to af6e1f9 Compare April 22, 2024 16:59
@toy toy force-pushed the feature/52144-changing-a-persisted-list branch 5 times, most recently from 1b82a04 to 5aa28e0 Compare April 30, 2024 17:06
@toy toy marked this pull request as ready for review April 30, 2024 17:25
@toy toy force-pushed the feature/52144-changing-a-persisted-list branch from 5aa28e0 to 8278373 Compare April 30, 2024 18:18
Copy link
Contributor

@ulferts ulferts left a comment

Choose a reason for hiding this comment

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

Very solid work, @toy. The behaviour itself is implemented very thoroughly and the only thing I can complain about behaviour wise is something I only spotted because of some previous bugfix.

If a list employs a custom field as a filter or a column, is persisted, and then the custom field is deleted, a valid subset is generated to prevent errors from being displayed. The same scenario (which can only happen after sharing is implemented) is one where an admin only filter or column is part of a list which is then called by a non admin user. In that case, because the filters/columns are changed, the notification "List modified" is displayed although the user did not change anything. I guess the best approach would be to avoid the query to be flagged as dirty in case an invalid filter/column/order is removed.

config/locales/en.yml Outdated Show resolved Hide resolved
spec/models/queries/projects/factory_spec.rb Show resolved Hide resolved
@toy toy force-pushed the feature/52144-changing-a-persisted-list branch from 8278373 to 9295596 Compare May 6, 2024 16:41
@toy toy force-pushed the feature/52144-changing-a-persisted-list branch from 6d9ca3e to de51c5a Compare May 7, 2024 16:55
@toy
Copy link
Contributor Author

toy commented May 7, 2024

If a list employs a custom field as a filter or a column, is persisted, and then the custom field is deleted, a valid subset is generated to prevent errors from being displayed. The same scenario (which can only happen after sharing is implemented) is one where an admin only filter or column is part of a list which is then called by a non admin user. In that case, because the filters/columns are changed, the notification "List modified" is displayed although the user did not change anything. I guess the best approach would be to avoid the query to be flagged as dirty in case an invalid filter/column/order is removed.

See 5fb2ce0 and b94ccb2

@toy toy requested a review from ulferts May 7, 2024 16:59
Copy link
Contributor

@ulferts ulferts left a comment

Choose a reason for hiding this comment

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

Once again, solid work @toy

@ulferts ulferts merged commit 7b4718f into dev May 8, 2024
10 checks passed
@ulferts ulferts deleted the feature/52144-changing-a-persisted-list branch May 8, 2024 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants