fix(GAT-9237): bug in the onboarding form for tools - #1579
Merged
Conversation
|
🎉 Great job! Your PR title follows the correct format. 🚀 |
Drops the console.log statements and incidental whitespace-only formatting added while tracing the Autocomplete format-validation bug; not part of the actual fix. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
calmacx
commented
Jul 20, 2026
calmacx
commented
Jul 20, 2026
philreekshdr
approved these changes
Jul 20, 2026
gh-actions-pipelines-app Bot
pushed a commit
that referenced
this pull request
Jul 24, 2026
## [2.40.0](v2.39.0...v2.40.0) (2026-07-24) ### ✨ Features * **GAT-7563:** Data Custodian Network = Split owned/associated content (#1569) ([7e462ff](7e462ff)), closes [GAT-7563](undefinedGAT-7563) * **GAT-7564:** Data custodian associated resources (#1567) ([45e9c1d](45e9c1d)), closes [GAT-7564](undefinedGAT-7564) * **GAT-7604:** Data custodian display tweaks (#1562) ([82b222c](82b222c)), closes [GAT-7604](undefinedGAT-7604) * **GAT-8094:** Display dataset aliases (#1566) ([65e819a](65e819a)), closes [GAT-8094](undefinedGAT-8094) * **GAT-8131:** Widget test harness (#1573) ([ac6fda3](ac6fda3)), closes [GAT-8131](undefinedGAT-8131) * **GAT-8478:** Add support link (#1571) ([c51fa80](c51fa80)), closes [GAT-8478](undefinedGAT-8478) * **GAT-8709:** Fix confusing naming for running a fedaration test. ([6aedd84](6aedd84)) * **GAT-8724:** Update dataset filter order (#1576) ([71843f9](71843f9)), closes [GAT-8724](undefinedGAT-8724) * **GAT-8798:** Added run now button for integrations ([f944277](f944277)), closes [GAT-8798](undefinedGAT-8798) * **GAT-8821:** Correct DAR dialog & save draft logic (#1578) ([04eace6](04eace6)), closes [GAT-8821](undefinedGAT-8821) * **GAT-9193:** Update sign-in modal design (#1581) ([ee76b95](ee76b95)), closes [GAT-9193](undefinedGAT-9193) * **GAT-9193:** Update wording (#1582) ([68ae7bb](68ae7bb)), closes [GAT-9193](undefinedGAT-9193) ### 🐛 Bug Fixes * **GAT-8754:** Fix empty widget preview state (#1577) ([a827c08](a827c08)) * **GAT-9237:** bug in the onboarding form for tools (#1579) ([2071ecb](2071ecb)), closes [GAT-9237](undefinedGAT-9237)
This file contains hidden or 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
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.
Screenshots (if relevant)
Describe your changes
generateValidationRules(now insrc/utils/formHydration.tsx) was silently dropping theofsub-schema (e.g.{ type: "string", format: "url" }) from every scalar-array validation entry before handing it tobuildYup()(schema-to-yup).schema-to-yup's array builder already fully supports this shape and recursively validates each item — it just never received it.ofin both branches of the transform. This is generic, not "Tools"-specific — any scalar-array field the backend'svalidationarray marks withof(Investigations, publicationAboutDataset, syntheticDataWebLink, etc.) is now validated the same way.generateValidationRulesout ofCreateDataset.tsxintosrc/utils/formHydration.tsx(alongside its sibling pure helpers) so it has a real unit test instead of being untested inline logic — which is what let this bug ship unnoticed in the first place.Why it works:
schema-to-yup'sYupArray.itemsOf()(node_modules/schema-to-yup/src/types/array/array.js) readsthis.constraints.ofand recursively builds a per-item Yup validator from it — includingformat: "url"→.url(). The transform function just needed to stop deleting that key before yup ever saw it.Issue ticket link
https://hdruk.atlassian.net/browse/GAT-9237
Checklist before requesting a review