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

Fixes/variants form submit #475

Merged
merged 6 commits into from
Jan 7, 2025
Merged

Fixes/variants form submit #475

merged 6 commits into from
Jan 7, 2025

Conversation

gsfk
Copy link
Member

@gsfk gsfk commented Jan 6, 2025

Fixes issues with search form validation, where users were permitted to launch searches with invalid form state. (Redmine 2415).

Some of the previous tricks for variants form validation do not work as well in antd > 3, this is fixed by moving validation code to a parent component and invoking manually when needed.

Also discovered and fixed this issue of uncertain age: data types are not removed from the submitted form when deleting data type tabs (when removing, e.g. the "Variants" search tab, the submitted form still has fields for variants). This can block form submission, and without giving any user feedback (because the tab is not rendered).

@gsfk gsfk marked this pull request as ready for review January 6, 2025 20:53
@gsfk gsfk requested a review from davidlougheed January 7, 2025 13:36
src/components/discovery/DiscoveryQueryBuilder.js Outdated Show resolved Hide resolved
src/components/discovery/DiscoverySearchForm.js Outdated Show resolved Hide resolved
src/components/discovery/DiscoveryQueryBuilder.js Outdated Show resolved Hide resolved
@davidlougheed davidlougheed self-requested a review January 7, 2025 16:12
Copy link
Member

@davidlougheed davidlougheed left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@gsfk gsfk merged commit ec1bbd3 into master Jan 7, 2025
3 checks passed
@davidlougheed davidlougheed deleted the fixes/variants-form-submit branch January 7, 2025 17:51
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.

2 participants