- 
                Notifications
    
You must be signed in to change notification settings  - Fork 350
 
[ENG-9681] Fix api3 ci and collection submission issues #11410
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
[ENG-9681] Fix api3 ci and collection submission issues #11410
Conversation
…nce#11377) * change route for user claim * fix tests --------- Co-authored-by: Yuhuai Liu <[email protected]> Co-authored-by: Longze Chen <[email protected]>
Hotfix to reroute unregistered contributor claim
…herebetskyi/fix/api3-ci [ENG-9619] Tests for api3 branch turned off
Hotfix for importing contributors from parent project
| def collection(collection_provider): | ||
| collection = CollectionFactory(is_public=True) | ||
| collection.provider = collection_provider | ||
| with capture_notifications(): | 
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 would fail because it didn't send notifications.
| def collection(collection_provider): | ||
| collection = CollectionFactory() | ||
| collection.provider = collection_provider | ||
| with capture_notifications(): | 
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 would fail because it didn't send notifications.
| collection_submission=collection_submission, | ||
| trigger=moderator_trigger.db_name | ||
| ), auth=test_auth, expect_errors=True) | ||
| with capture_notifications() as notifications: | 
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 adds needed email mocking.
| 'api_tests/guids', | ||
| 'api_tests/meetings', | ||
| 'api_tests/metadata_records', | ||
| 'api_tests/osf_groups', | 
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.
Having this one line here forces the whole branch to silently pass automatically, obviously that is bad.
…3-ci-and-collection-submission-issues # Conflicts: # osf/migrations/0032_remove_osfgroup_creator_and_more.py
Purpose
Fix problems api3 test branch and the collections submissions tests.
Changes
QA Notes
Please make verification statements inspired by your code and what your code touches.
What are the areas of risk?
Any concerns/considerations/questions that development raised?
Documentation
Side Effects
Ticket
https://openscience.atlassian.net/browse/ENG-9681