Skip to content

[ENG-3962] Fix issues with Resource (A)VOLs#10024

Merged
jwalz merged 2 commits into
CenterForOpenScience:feature/registration_resourcesfrom
jwalz:resources/avol_fixes
Aug 16, 2022
Merged

[ENG-3962] Fix issues with Resource (A)VOLs#10024
jwalz merged 2 commits into
CenterForOpenScience:feature/registration_resourcesfrom
jwalz:resources/avol_fixes

Conversation

@jwalz
Copy link
Copy Markdown
Contributor

@jwalz jwalz commented Aug 15, 2022

Purpose

Resources were not surfacing the resource_type in Anonymized contexts, and the self link for the Resources omitted the VOL, potentially leaking information for public registrations.

See:
https://www.notion.so/cos/Resource-self-link-does-not-inherit-VOL-key-723d274267cb4ad18768a2b6378cf6fe
https://www.notion.so/cos/resource-type-not-serialized-in-AVOLs-c09186bfee9e4b04b3ce2a02b22d51d8

Changes

  • Add resource_type to the nonanonymized_fields for a Resource
  • Update LinkFields to always append an vol key to self links

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

https://openscience.atlassian.net/browse/ENG-3962

@jwalz jwalz changed the title Fix issues with Resource (A)VOLs [ENG-3962] Fix issues with Resource (A)VOLs Aug 15, 2022
Copy link
Copy Markdown
Collaborator

@brianjgeiger brianjgeiger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is much cleaner.

@jwalz jwalz merged commit b1c9720 into CenterForOpenScience:feature/registration_resources Aug 16, 2022
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.

2 participants