-
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
Metadata uploader - PARSE FILE #1362
Metadata uploader - PARSE FILE #1362
Conversation
A couple of comments:
|
Please make all these files TypeScript. |
Instead of modifying the metadata object imported from the spreadsheet, I think it would work better if you store the validation object, with a sample name key to look it up. This will prevent you from having to modify the entire metadata object (leaving 2 large objects in memory temporarily). Instead up uploading one at a time, it might be a lot faster to do chunk uploads. |
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 starting reviewing your code this morning, but I need you to do me a favour first. This first file that I have been reviewing, all my comments are errors that are picked up by eslint. Can you go through your PR and make sure that you fix the eslint and any other error the editor is warning you about (if possible). I have also started using a plugin called sonar lint that has been really helpful in finding other code smells that I would have missed. Thanks.
src/main/webapp/resources/js/pages/projects/samples-metadata-import/services/importReducer.ts
Outdated
Show resolved
Hide resolved
src/main/webapp/resources/js/pages/projects/samples-metadata-import/services/importReducer.ts
Outdated
Show resolved
Hide resolved
src/main/webapp/resources/js/pages/projects/samples-metadata-import/services/importReducer.ts
Outdated
Show resolved
Hide resolved
src/main/webapp/resources/js/pages/projects/samples-metadata-import/services/importReducer.ts
Outdated
Show resolved
Hide resolved
src/main/webapp/resources/js/pages/projects/samples-metadata-import/services/importReducer.ts
Outdated
Show resolved
Hide resolved
src/main/webapp/resources/js/pages/projects/samples-metadata-import/services/importReducer.ts
Outdated
Show resolved
Hide resolved
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.
Sorry there is a big request in here that I wanted to get to you. I will still go through the other files.
src/main/webapp/resources/js/pages/projects/samples-metadata-import/services/importReducer.ts
Outdated
Show resolved
Hide resolved
src/main/webapp/resources/js/pages/projects/samples-metadata-import/services/importReducer.ts
Show resolved
Hide resolved
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.
A couple more things
...esources/js/pages/projects/samples-metadata-import/components/SampleMetadataImportWizard.tsx
Outdated
Show resolved
Hide resolved
...esources/js/pages/projects/samples-metadata-import/components/SampleMetadataImportWizard.tsx
Outdated
Show resolved
Hide resolved
...rces/js/pages/projects/samples-metadata-import/components/SampleMetadataImportUploadFile.tsx
Show resolved
Hide resolved
...esources/js/pages/projects/samples-metadata-import/components/SampleMetadataImportReview.tsx
Outdated
Show resolved
Hide resolved
src/main/webapp/resources/js/pages/launch/references/UploadReferenceFile.jsx
Show resolved
Hide resolved
...esources/js/pages/projects/samples-metadata-import/components/SampleMetadataImportReview.tsx
Show resolved
Hide resolved
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.
Just one tiny thing
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.
👍 Approved thanks for completing the file parsing, I have tested it and it worked as I expected.
Description of changes
What did you change in this pull request? Provide a description of files changed, user interactions changed, etc. Include how to test your changes.
Related issue
Link to the GitHub issue this pull request addresses using the
#issuenum
format. If it completes an issue, useFixes #issuenum
to automatically close the issue.Checklist
Things for the developer to confirm they've done before the PR should be accepted: