-
Notifications
You must be signed in to change notification settings - Fork 2
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
Bugfix/edit does not work for all fields #323
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can see that the issue with Sample
form has been fixed.
However for the other forms: Analysis
and Run
, the forms still miss some nested fields when editing.
For example: in Analysis
:
- Select
Reference Alignment
forAnalysis Type
- Select
Standard
forReference assembly details
- Fill in the field
Accession Id
ofStandard
- Click
Save as Draft
- Edit this draft
- The fields append to
Standard
is missing
Good catch. For some reason I missed this one and the one in the |
3c0969a
to
84a3dcb
Compare
All other fields except deeply nested
Added item in In React Hook Form documentation for Path to element in this case would be: #322 fixed issue when user tries to edit form if deeply nested values exist. This might however cause issues when we'd like to render those deeply nested values. Fix passes only the last item of path to |
84a3dcb
to
bf28ce3
Compare
Dedicated test for form edit E2E testing
Render form correctly when editing Display edited fields Populate form fields Render form correctly when editing
…ata-submitter-frontend into bugfix/useFieldArray
79f8d98
to
93a889b
Compare
Found another problem which is: All other fields populate values correctly except |
I'm not 100% sure but the data from saved submission looks odd to me:
And in schema But it seems there's no way to tell to which option should get the value of @blankdots, any ideas on this? Or am I missing something? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found this problem yesterday and created a new issue for it: #351 |
@saulipurhonen can #351 be done as part of this issue, or we approve this one as is and continue with another PR for that I will approve - all LGTM and we can work on the #351 on a different PR. |
I think this behavior is somewhat related to the original issue, but I think we should handle it as a separate PR to keep review easier for all. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me :)
Description
Some fields didn't populate correctly when editing saved / submitted form.
Related issues
Closes #256 and #295
Type of change
Changes Made
Testing