-
Notifications
You must be signed in to change notification settings - Fork 75
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
Validate project before allowing beta submission #3525
Conversation
@rogerhutchings, thanks for your PR! By analyzing the history of the files in this pull request, we identified @srallen and @saschaishikawa to be potential reviewers. |
@rogerhutchings don't wait on the panoptes issue to get sorted. |
Cool. I'm going to rewrite this in ES6 with tests in any case, so I'll request a review when it's done. |
c8fbdcb
to
7190245
Compare
properties, including tests
7190245
to
888b7b4
Compare
Okay, this is complete. I've also managed to mock the |
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.
PR Review
- As a Project Owner, when I go to Build a Project -> (Edit My Project) -> Visibility, under the Beta Status section, if I've ticked all the checkboxes, I can choose Apply for Review
- If my Project does not meet the minimum requirements (>= 100 Subjects, have FAQ and Research pages), then my Beta application should be prevented.
- If my Project does meet the minimum requirements, my Beta application should be submitted.
The Visibility page upon clicking 'Apply for Review' and being prevented from submitting
- Tested on OSX+Chrome on localhost.
- Note that, at the moment, I'm still reviewing the code & running further tests to confirm that the "Submit Beta Application" functionality works.
While I can confirm the functionality for the "Prevent Beta Application", I would like to raise a UI concern.
UI Issue: "Could not Apply for Beta" error message needs to be more obvious
Details:
The "The following errors need to be fixed..." message (see above image) appears immediately after the "Apply for Review" button is clicked and with little fanfare. I initially didn't realise my Application for Beta failed, and the only reason I noticed something was amiss was because - as a dev reviewing the feature - I was actively looking for the error message.
I would argue the UI matter is a non-blocking issue, but would like to have it flagged for future review at minimum.
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.
PR Review (Update)
- The new up UI changes make the errors much more explicit. (Visually, not language-wise. Although that would have been hilarious.)
- Testing for "Prevent Beta application" works as before, but I could not fully test "Submit Beta application" due to an upload limit on my testing account. That said, code looks logical enough to me, so I have no strong concerns.
- Tests OK on localhost for OSX+Chrome56/FF51, Win7+IE11
Status
LGTM, approval go!
Following on from a first crack at this in #3523, this adds validation before allowing a beta review submission. It uses
set_member_subjects_count
which is known to be wrong for some projects (zooniverse/panoptes#2155),so this PR is blocked until that bug is fixedbut we're ignoring it for now.Adds the babel-rewire plugin to allow mocking the
apiClient
, so will need annpm install
before testing locally.Review Checklist
rm -rf node_modules/ && npm install
and app works as expected?Optional
ChangeListener
orPromiseRenderer
components with code that updates component state?