Skip to content

Registration Resources#10042

Merged
jwalz merged 28 commits into
developfrom
feature/registration_resources
Aug 29, 2022
Merged

Registration Resources#10042
jwalz merged 28 commits into
developfrom
feature/registration_resources

Conversation

@jwalz
Copy link
Copy Markdown
Contributor

@jwalz jwalz commented Aug 29, 2022

Purpose

Merging the feature branch to develop

Changes

  • All API Work for Registration Resources
    • New endpoints
    • New serializer
    • Serializer changes for Registrations
      • New relationship field
      • New annotation-populated fields for has_<resource_type>
    • Generic improvements to existing API infrastructure
      • new EnumField for serializers
      • Improved error reporting in JSONAPIException
      • Consistent handling of VOL keys in API self links
  • Expanded model logic for Outcomes and OutcomeArtifacts
  • Updates to SHARE to encode resource types for Registrations
  • Updates to Datacite client to populate relatedIdentifiers
  • Expansions to the Identifier infrastructure to enable validation of DOIs

QA Notes

Please make verification statements inspired by your code and what your code touches.

  • Verify
  • Verify

What are the areas of risk?

Any concerns/considerations/questions that development raised?

Documentation

Side Effects

Ticket

jwalz and others added 28 commits July 21, 2022 13:12
…ntation (#9980)

ResourceSerializer and GET functionality on ResourceDetail
Co-authored-by: Jon Walz <jonwalz@Admins-MBP.lan>
* Implement POST method on ResourceList endpoint

Co-authored-by: Jon Walz <jonwalz@Admins-MBP.lan>
…ntation (#9980)

ResourceSerializer and GET functionality on ResourceDetail
Co-authored-by: Jon Walz <jonwalz@Admins-MBP.lan>
* Implement POST method on ResourceList endpoint

Co-authored-by: Jon Walz <jonwalz@Admins-MBP.lan>
…OpenScience/osf.io into feature/registration_resources
* Implement RegistrationResourceList endpoint

Co-authored-by: Jon Walz <jonwalz@Admins-MBP.lan>
Co-authored-by: Brian J. Geiger <bgeiger@pobox.com>
* Implement PATCH and DELETE support for ResourceDetail

Co-authored-by: Jon Walz <jonwalz@Admins-MBP.lan>
Co-authored-by: Brian J. Geiger <bgeiger@pobox.com>
…ractice Badges (#9992)

* Add annotations for open practice badges

Co-authored-by: Jon Walz <jonwalz@Admins-MBP.lan>
* Validate DOIs on `update_identifier` call

Co-authored-by: Jon Walz <jonwalz@Admins-MBP.lan>
* Integration bugs for Registration resources

Co-authored-by: Jon Walz <jonwalz@Admins-MBP.lan>
* Add 'status' to JSONAPIError dictionary

Co-authored-by: Jon Walz <jonwalz@Admins-MBP.lan>
* Annotations and tests for remaining ArtifactTypes

Co-authored-by: Jon Walz <jonwalz@Admins-MBP.lan>
* Add osf.io/<registration_guid>/resources to ember routes

Co-authored-by: Jon Walz <jonwalz@Admins-MBP.lan>
* Make resources filterable

Co-authored-by: Jon Walz <jonwalz@Admins-MBP.lan>
…#10004)

* Add `osf_related_resource_types` to Registration serialization on SHARE and update SHARE when artifacts are updated

Co-authored-by: Jon Walz <jonwalz@Admins-MBP.lan>
)

* Add artifacts to DOI metadata as `relatedIdentifiers`; update doi
metadata on artifact addition/update/removal

Co-authored-by: Jon Walz <jonwalz@Admins-MBP.lan>
)

* Make placeholder Identifiers for all registrations in the tree on
Embargo

Co-authored-by: Jon Walz <jonwalz@Admins-MBP.lan>
Co-authored-by: Jon Walz <jonwalz@Admins-MBP.lan>
* Enforce integrity when updating a finalized resource/artifact

Co-authored-by: Jon Walz <jonwalz@Admins-MBP.lan>
* Always append vol key to `self` links; surface `resource_type` in avols

Co-authored-by: Jon Walz <jonwalz@Admins-MBP.lan>
Co-authored-by: Jon Walz <jonwalz@Admins-MBP.lan>
…rtifact (#10027)

* Prevent using the PID of the Primary Artifact as another Artifact

Co-authored-by: Jon Walz <jonwalz@Admins-MBP.lan>
* Fixes for DOI Updating

Co-authored-by: Jon Walz <jonwalz@Admins-MBP.lan>
* Normalize PID input
Co-authored-by: Jon Walz <jonwalz@Admins-MBP.lan>
Co-authored-by: Jon Walz <jonwalz@Admins-MacBook-Pro.local>
@jwalz jwalz merged commit d8d54ba into develop Aug 29, 2022
Johnetordoff pushed a commit to Johnetordoff/osf.io that referenced this pull request Sep 1, 2022
…OpenScience/osf.io into django-3-onmibus

* 'feature/django_upgrade' of https://github.com/CenterForOpenScience/osf.io: (23 commits)
  Fix system check warnings for django admin
  Add migrations for django upgrade base fixes
  Comment out admin permissions that clash with built-in "view" ones
  Add/Enable missing templates and middlewares in api settings
  Fix django CORS whitelist settings due to orgin definition update
  Add required on_delete=CASCADE (default) to FKs missing it
  Make fields defined on typedmodels subclasses nullable
  Upgrade django to 3.2.15 (and related dependencies)
  Fix typo
  Prevent errors in Keen-less environments
  Add missing defaults
  Bump DEFAULT_API_VERSION to 2.20
  Improve import formatting
  Improve header comparison
  Add PLOS Metrics command - Update celery config/queues
  Fix local cookie samesite config and use 'Lax' instead of 'None'
  Add task to celery settings
  Pass and load Identifier ID instead of instance
  Bump version and update changelog
  Registration Resources (CenterForOpenScience#10042)
  ...

# Conflicts:
#	admin/base/settings/defaults.py
#	api/base/settings/defaults.py
#	osf/models/analytics.py
#	osf/models/banner.py
#	osf/models/brand.py
#	osf/models/conference.py
#	osf/models/institution.py
#	osf/models/preprint.py
#	osf/models/provider.py
#	osf/models/registrations.py
#	osf/models/schema_response.py
#	osf/models/storage.py
#	osf/models/subject.py
#	osf/models/user.py
#	requirements.txt
Johnetordoff pushed a commit to Johnetordoff/osf.io that referenced this pull request Sep 1, 2022
…OpenScience/osf.io into django-3-onmibus

* 'feature/django_upgrade' of https://github.com/CenterForOpenScience/osf.io: (23 commits)
  Fix system check warnings for django admin
  Add migrations for django upgrade base fixes
  Comment out admin permissions that clash with built-in "view" ones
  Add/Enable missing templates and middlewares in api settings
  Fix django CORS whitelist settings due to orgin definition update
  Add required on_delete=CASCADE (default) to FKs missing it
  Make fields defined on typedmodels subclasses nullable
  Upgrade django to 3.2.15 (and related dependencies)
  Fix typo
  Prevent errors in Keen-less environments
  Add missing defaults
  Bump DEFAULT_API_VERSION to 2.20
  Improve import formatting
  Improve header comparison
  Add PLOS Metrics command - Update celery config/queues
  Fix local cookie samesite config and use 'Lax' instead of 'None'
  Add task to celery settings
  Pass and load Identifier ID instead of instance
  Bump version and update changelog
  Registration Resources (CenterForOpenScience#10042)
  ...

# Conflicts:
#	admin/base/settings/defaults.py
#	api/base/settings/defaults.py
#	osf/models/analytics.py
#	osf/models/banner.py
#	osf/models/brand.py
#	osf/models/conference.py
#	osf/models/institution.py
#	osf/models/preprint.py
#	osf/models/provider.py
#	osf/models/registrations.py
#	osf/models/schema_response.py
#	osf/models/storage.py
#	osf/models/subject.py
#	osf/models/user.py
#	requirements.txt
Johnetordoff pushed a commit to Johnetordoff/osf.io that referenced this pull request Sep 2, 2022
…OpenScience/osf.io into django-3-JSON-field-changes

* 'feature/django_upgrade' of https://github.com/CenterForOpenScience/osf.io: (23 commits)
  Fix system check warnings for django admin
  Add migrations for django upgrade base fixes
  Comment out admin permissions that clash with built-in "view" ones
  Add/Enable missing templates and middlewares in api settings
  Fix django CORS whitelist settings due to orgin definition update
  Add required on_delete=CASCADE (default) to FKs missing it
  Make fields defined on typedmodels subclasses nullable
  Upgrade django to 3.2.15 (and related dependencies)
  Fix typo
  Prevent errors in Keen-less environments
  Add missing defaults
  Bump DEFAULT_API_VERSION to 2.20
  Improve import formatting
  Improve header comparison
  Add PLOS Metrics command - Update celery config/queues
  Fix local cookie samesite config and use 'Lax' instead of 'None'
  Add task to celery settings
  Pass and load Identifier ID instead of instance
  Bump version and update changelog
  Registration Resources (CenterForOpenScience#10042)
  ...
Johnetordoff pushed a commit to Johnetordoff/osf.io that referenced this pull request Sep 2, 2022
…OpenScience/osf.io into django-3-DRF-serializer

* 'feature/django_upgrade' of https://github.com/CenterForOpenScience/osf.io: (23 commits)
  Fix system check warnings for django admin
  Add migrations for django upgrade base fixes
  Comment out admin permissions that clash with built-in "view" ones
  Add/Enable missing templates and middlewares in api settings
  Fix django CORS whitelist settings due to orgin definition update
  Add required on_delete=CASCADE (default) to FKs missing it
  Make fields defined on typedmodels subclasses nullable
  Upgrade django to 3.2.15 (and related dependencies)
  Fix typo
  Prevent errors in Keen-less environments
  Add missing defaults
  Bump DEFAULT_API_VERSION to 2.20
  Improve import formatting
  Improve header comparison
  Add PLOS Metrics command - Update celery config/queues
  Fix local cookie samesite config and use 'Lax' instead of 'None'
  Add task to celery settings
  Pass and load Identifier ID instead of instance
  Bump version and update changelog
  Registration Resources (CenterForOpenScience#10042)
  ...
Johnetordoff pushed a commit to Johnetordoff/osf.io that referenced this pull request Sep 16, 2022
 into remove-quickfiles

* 'develop' of https://github.com/CenterForOpenScience/osf.io: (94 commits)
  Bump version and update CHANGELOG
  [ENG-3568] keen replacement (CenterForOpenScience#9954)
  Bump NR Agent version
  Fix typo
  Prevent errors in Keen-less environments
  Add missing defaults
  Bump DEFAULT_API_VERSION to 2.20
  Improve import formatting
  Improve header comparison
  Add PLOS Metrics command - Update celery config/queues
  Fix local cookie samesite config and use 'Lax' instead of 'None'
  Add task to celery settings
  Pass and load Identifier ID instead of instance
  Bump version and update changelog
  Registration Resources (CenterForOpenScience#10042)
  Update test-build.yml
  Bump version and update CHANGELOG
  [ENG-3854] Add management command to sync all DOI metadata (CenterForOpenScience#9972)
  Re-add non-anonymized fields removed in CenterForOpenScience#10009 (CenterForOpenScience#10022)
  Update shield logo for colorado (UC Boulder)
  ...

# Conflicts:
#	api_tests/base/test_sloan_study.py
#	osf/models/nodelog.py
#	osf/models/quickfiles.py
#	osf_tests/test_sanctions.py
#	package.json
#	tests/test_views.py
#	website/settings/defaults.py
#	website/static/js/anonymousLogActionsList.json
#	website/static/js/components/logFeed.js
#	website/static/js/logActionsList.json
Johnetordoff pushed a commit to Johnetordoff/osf.io that referenced this pull request Sep 16, 2022
 into remove-quickfiles-code

* 'develop' of https://github.com/CenterForOpenScience/osf.io:
  Bump version and update CHANGELOG
  [ENG-3568] keen replacement (CenterForOpenScience#9954)
  Bump NR Agent version
  Fix typo
  Prevent errors in Keen-less environments
  Add missing defaults
  Bump DEFAULT_API_VERSION to 2.20
  Improve import formatting
  Improve header comparison
  Add PLOS Metrics command - Update celery config/queues
  Fix local cookie samesite config and use 'Lax' instead of 'None'
  Add task to celery settings
  Pass and load Identifier ID instead of instance
  Bump version and update changelog
  Registration Resources (CenterForOpenScience#10042)
  Update test-build.yml
  Bump version and update CHANGELOG
  [ENG-3854] Add management command to sync all DOI metadata (CenterForOpenScience#9972)

# Conflicts:
#	scripts/analytics/file_summary.py
#	website/settings/defaults.py
@mfraezz mfraezz deleted the feature/registration_resources branch October 21, 2022 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant