-
Notifications
You must be signed in to change notification settings - Fork 14
Observer role #898
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
Open
ItIsJordan
wants to merge
143
commits into
main
Choose a base branch
from
observer-role
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Observer role #898
Changes from all commits
Commits
Show all changes
143 commits
Select commit
Hold shift + click to select a range
c7a937a
Add SubmissionObserver object
ItIsJordan d7f66c9
SubmissionObserver functionality
ItIsJordan d261bbb
Add observer_key request var functionality to /records/int
ItIsJordan 949c59d
Merge branch 'main' into observer-role
ItIsJordan 7befee8
Merge branch 'main' into observer-role
ItIsJordan 23ff1e7
Fix SubmissionObserver removal
ItIsJordan c6bb6c7
Add observer_key to records API context
ItIsJordan 00bb25b
Add clipboard changes
ItIsJordan ebc0262
Add new observer key creation (on new version)
ItIsJordan 66580b5
Update endpoint /submit (POST) in submission/views
ItIsJordan 0bb32c6
Add observer key to post submission screen
ItIsJordan a45506d
Add status filtering to observer key creation in get_or_create_hepsub…
ItIsJordan 41131a0
Add basic observer key test
ItIsJordan 22ad691
Refactor SubmissionObserver
ItIsJordan 4164dd0
Add endpoint to get observer key
ItIsJordan e6dd9e1
Add get_or_create_submission_observer
ItIsJordan efe2942
Update get_or_create_hepsubmission to use get_or_create_submission_ob…
ItIsJordan 191e3f4
Update post submission observer key message
ItIsJordan 18b7065
Remove unique constraint from observer_key
ItIsJordan c88a2a0
Update SubmissionObserver key method to 8char
ItIsJordan d1115e3
Fix test_observer_key
ItIsJordan 87fc27a
Move and refactor get_or_create_submission_observer
ItIsJordan a2609f9
Update observer_url on post-submission screen
ItIsJordan 53001a1
Implement observer key into post-submission email
ItIsJordan 87e76f0
Update getting SubmissionObserver in create_new_version
ItIsJordan 939ac41
Update observer_key endpoint
ItIsJordan 8d1aa72
Dashboard widget observer key text
ItIsJordan 9fd4c6e
Move verify_observer_key into permissions module
ItIsJordan ac08a57
Add test for verify_observer_key
ItIsJordan 7d5dbcc
Add missing import from records_test.py
ItIsJordan 163e8f4
Add copy button colour rule to record CSS
ItIsJordan ad32d79
Add observer_key functionality to file downloading by recid
ItIsJordan b508a54
Redo download URL dropdown generation
ItIsJordan 4fe5c08
Merge branch 'main' into observer-role
ItIsJordan 71273b6
Upgrade clipboardjs in webpack
ItIsJordan e95047b
Add copy button stylesheet
ItIsJordan 8318cac
Update verify_observer_key for none/invalid input
ItIsJordan 8c7a6cc
Remove old copy button css
ItIsJordan b6e530a
Add toastr.css link to copy button html files
ItIsJordan d15cfe8
Improve observer key function
ItIsJordan 1500484
Add observer key access to data table download
ItIsJordan 85ad2a8
Update observer key verification in render_record
ItIsJordan 3b7027c
Update dashboard manager widget footer/modal css rules
ItIsJordan af76a1c
Refactor clipboard JS code
ItIsJordan a7adb80
Remove observer key display from publication_record.html
ItIsJordan ccfd128
Update create_new_version to regenerate observer key
ItIsJordan 9f4f007
Add dashboard widget observer key copy button
ItIsJordan 63b9af8
Add HTML/JS for observer key copy button submit display
ItIsJordan efeae9b
Add observer key output to record URLs
ItIsJordan 7cf54ec
Add observer key error messaging to the 403 page
ItIsJordan 1b8c266
Improve HEPDATA.switch_table observer key security
ItIsJordan dd24e3c
Update clipboard pin in webpack
ItIsJordan 07a656c
Remove deprecated comment
ItIsJordan e090216
Add correct website URL to submission observer button
ItIsJordan fbc798d
Update SubmissionObserver constructor
ItIsJordan b3bbcd8
Add delete_submission_observer to submission/api.py
ItIsJordan ded5bf2
Updates submission.py to use new deletion function
ItIsJordan 33ce922
Add SubmissionObserver model test
ItIsJordan dc48dd3
Add overall_status to record context
ItIsJordan 08a27af
Add submission_status/observer_key to HEPData JS object
ItIsJordan e8d1ec7
Update submission e2e test to verify observer field
ItIsJordan 777d763
Pass observer key to data table download
ItIsJordan c6e8650
Add observer key to resource download/landing page urls on record res…
ItIsJordan 5603324
Add submission testing
ItIsJordan 332a96d
Endpoint protection
ItIsJordan 9d34dfa
fix test_get_or_create_submission_observer
ItIsJordan 68a90fb
Fix broken test (regex)
ItIsJordan 5632d24
Add copy button test to test_dashboard
ItIsJordan 7c3ceb8
Update get_observer_url function to use get_or_create_submission_obse…
ItIsJordan 6daabc5
Merge branch 'main' into observer-role
ItIsJordan 3bae197
Add submission check to get_or_create_submission_observer
ItIsJordan 0f892ff
Commit HEPSubmission before creating SubmissionObserver
ItIsJordan 606872a
Add status param to create_blank_test_record in tests/conftest.py
ItIsJordan b62d54c
Add test_get_observer_url
ItIsJordan aa119b6
Update test_get_or_create_submission_observer to test against submiss…
ItIsJordan f2185e5
Merge branch 'main' into observer-role
ItIsJordan 0dd7048
Merge branch 'main' into observer-role
ItIsJordan 79a447e
Update tests/submission_test.py
ItIsJordan 0899c56
Remove hardcoded observer key length
ItIsJordan 44affa2
Merge branch 'observer-role' of https://github.com/HEPData/hepdata in…
ItIsJordan 824ba18
Merge branch 'main' into observer-role
ItIsJordan b362c13
Merge branch 'main' into observer-role
ItIsJordan 3ee5d48
Add create_record_with_participant to conftest
ItIsJordan 72dd3f9
Update test_send_cookie_email
ItIsJordan d8117b5
Add test_notify_submission_created in email_test.py
ItIsJordan d2d351e
Create new HEPDATA.get_observer_key fnction
ItIsJordan 7df6c34
Rename/expand get_observer_url
ItIsJordan a248401
Modify set_observer_key for async
ItIsJordan 2e6ef63
Update tests for renamed get_observer_url function
ItIsJordan 275cc9d
Update hepdata_resources for asynch request call
ItIsJordan bec32c7
Update test_get_observer_data for changes
ItIsJordan e0f19a9
Merge branch 'main' into observer-role
ItIsJordan 42ef8b8
Use OBSERVER_KEY_LENGTH in verify_observer_key
ItIsJordan 30fa8ae
Improve logic in get_or_create_submission_observer
ItIsJordan 82643ae
Update hepdata/modules/submission/models.py
ItIsJordan 12cde58
Merge branch 'observer-role' of https://github.com/HEPData/hepdata in…
ItIsJordan 99cbf18
Fix indentation in copilot commit
ItIsJordan f62fe04
Revert "Improve logic in get_or_create_submission_observer"
ItIsJordan 6e066e4
Merge branch 'main' into observer-role
ItIsJordan 93587c2
Merge branch 'main' into observer-role
ItIsJordan a48b4ce
Remove extra SubmissionObserver deletion called in remove_submission
ItIsJordan d61c451
Allow create_blank_test_record to use alternate user
ItIsJordan 688b963
Add logged out observer request test
ItIsJordan 3ac6c2d
Widen submission screen observer container link
ItIsJordan d5fb912
Update css comment formatting in copybutton.scss
ItIsJordan 185af4a
Fix bad syntax in create_blank_test_record in conftest.py
ItIsJordan 78bf207
Dashboard manager submission observer css position improvements
ItIsJordan 3332cc4
Merge branch 'main' into observer-role
ItIsJordan 9914439
Fix text for submission observer input fields
ItIsJordan d809165
Merge branch 'main' into observer-role
ItIsJordan 018b2cc
Update hepdata/modules/submission/api.py (copilot)
ItIsJordan 40da23b
Modify copilot changes to delete_submission_observer
ItIsJordan d3d9bf6
Update hepdata/modules/permissions/api.py
ItIsJordan d96d402
Fix logging in verify_observer_key from copilot
ItIsJordan 7ca9524
Fix Resource widget observer key button URL
ItIsJordan 9d9f36a
Merge branch 'main' into observer-role
ItIsJordan 74f4b44
Fix submission resource widget download button non-display bug
ItIsJordan 51a795f
Merge branch 'main' into observer-role
ItIsJordan fde7455
Update hepdata/modules/submission/models.py
ItIsJordan 50e49b1
Improve test_logged_out_observer in test_records.py
ItIsJordan 1c8224f
Apply suggestions from code review
ItIsJordan 8e225f7
Merge branch 'main' into observer-role
ItIsJordan 6be0677
Remove double space in views.py/download_data_table_by_recid
ItIsJordan 9b3338a
Set OBSERVER_KEY_LENGTH value in JS
ItIsJordan 99a2e81
Remove extra space in email_test.py
ItIsJordan 02c14f4
Remove extra slash in test_dashboard
ItIsJordan a38c819
Fix typo in test_submission_observer_create_delete
ItIsJordan 9b8149e
Remove extra width value in copybutton.scss
ItIsJordan 0f76f3c
Correctly refer to dashboard_button by ID in set_observer_key
ItIsJordan 2c6df15
Remove useless slashes from observer_key request URLs
ItIsJordan 02df96c
Improve observer key appending in switch_table
ItIsJordan f2f2e55
Improve observer key append logic in resource widget
ItIsJordan 7f759c3
Modify render_record to pass observer_key to context when logged in
ItIsJordan ab1a479
Fix observer_key display when logged in for copy paste button
ItIsJordan 884c4b0
Add more cases to test_logged_out_observer
ItIsJordan d53e135
Merge branch 'main' into observer-role
ItIsJordan 870024d
Use get_latest_hepsubmission in get_or_create_submission_observer
ItIsJordan 7aa2913
Fix copy button not working on dashboard widget
ItIsJordan a7cbc23
Merge branch 'main' into observer-role
ItIsJordan d763c11
Add coordinator check to get_observer_data check
ItIsJordan 30cc7b3
Fix equality check in HEPDATA.get_observer_key_data
ItIsJordan 1398684
Add coordinator check before setting observer key in render_record
ItIsJordan ef6eaee
Add a test for automatic observer creation
ItIsJordan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.