-
Notifications
You must be signed in to change notification settings - Fork 53
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
Dataup 224 add check boxes to staging #1874
Conversation
…and additional tests
kbase-extension/static/kbase/templates/data_staging/ftp_file_table.html
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.
I agree with the comments AJ left. Once those changes are made and I can run the branch locally (when things are up and running), I am happy to approve :)
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 have a couple pretty picky points, but this looks great! Nice work wrangling Select2!
kbase-extension/static/kbase/js/widgets/narrative_core/upload/stagingAreaViewer.js
Outdated
Show resolved
Hide resolved
kbase-extension/static/kbase/js/widgets/narrative_core/upload/stagingAreaViewer.js
Outdated
Show resolved
Hide resolved
kbase-extension/static/kbase/js/widgets/narrative_core/upload/stagingAreaViewer.js
Outdated
Show resolved
Hide resolved
kbase-extension/static/kbase/js/widgets/narrative_core/upload/stagingAreaViewer.js
Outdated
Show resolved
Hide resolved
kbase-extension/static/kbase/js/widgets/narrative_core/upload/stagingAreaViewer.js
Outdated
Show resolved
Hide resolved
…P-224-add-check-boxes-to-staging
Codecov Report
@@ Coverage Diff @@
## truss #1874 +/- ##
==========================================
+ Coverage 12.69% 13.74% +1.04%
==========================================
Files 405 414 +9
Lines 43739 44756 +1017
==========================================
+ Hits 5551 6150 +599
- Misses 38188 38606 +418
Continue to review full report at Codecov.
|
|
||
const headerCheckbox = $targetNode.find('#staging_table_select_all'); | ||
|
||
//TODO: for some weird reason the header checkbox isn't showing as enabled, even though the click event fires. not sure what is going on here |
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.
this is one part of the tests i couldn't quite figure out.
when i set the dropdown value above on line 293, this triggers the select2:select event in stagingAreaViewer on 491. i am able to confirm this event gets fired, as the above check to make sure the checkbox input is enabled works.
however for some reason the updates to the header "select all" checkbox don't get applied, even though they are in the same method call, on line 506.
the test still "works" because the element exists, but it's not really a fair test of the functionality that we are expecting (that the checkbox should be enabled). any advice is welcome
Note that Codacy is complaining about having an |
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.
LGTM, nice job.
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 great! Nice work!
Kudos, SonarCloud Quality Gate passed!
|
Description of PR purpose/changes
Finally ready in all of its glory - multi-select checkboxes. Phew! It's been a wild ride - thanks for coming along y'all
Requirements:
Make file type selection box red for each uploaded file when a file type has NOT been selected. (Without an autodetect implemented, all files will show a red file type selector by default). The checkbox for that row is also default disabled.
Until any file type is selected the check all checkbox is disabled
When a file type is selected for that row, the red box color goes back to the original (grey) color and checkboxes are enabled.
Import Selected button is disabled until a file is selected.
On selection of file(s) and clicking import selected new importers will be kicked off. One for each file.
Jira Ticket / Issue
https://kbase-jira.atlassian.net/browse/DATAUP-224
Testing Instructions
Dev Checklist: