Skip to content

[ENG-8320] Add Brand relationship to Collection Provider#11230

Merged
Johnetordoff merged 1 commit intoCenterForOpenScience:feature/pbs-25-13from
Johnetordoff:add-brand-to-collection-provider
Jul 17, 2025
Merged

[ENG-8320] Add Brand relationship to Collection Provider#11230
Johnetordoff merged 1 commit intoCenterForOpenScience:feature/pbs-25-13from
Johnetordoff:add-brand-to-collection-provider

Conversation

@Johnetordoff
Copy link
Copy Markdown
Contributor

Purpose

Changes

Add brand relations to collection provider like the registration and preprint provider.

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-8320

@Johnetordoff Johnetordoff force-pushed the add-brand-to-collection-provider branch from d34f08f to 914e7b9 Compare July 16, 2025 14:19
@Johnetordoff Johnetordoff changed the base branch from develop to feature/pbs-25-13 July 16, 2025 14:46
@Johnetordoff Johnetordoff force-pushed the add-brand-to-collection-provider branch from 7404916 to 99e26cb Compare July 16, 2025 14:49
Copy link
Copy Markdown
Contributor

@futa-ikeda futa-ikeda left a comment

Choose a reason for hiding this comment

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

Seems like this would address the issue the angular team was having. Will leave proper review for someone a little better versed in API stuff though


brand = RelationshipField(
related_view='brands:brand-detail',
related_view_kwargs={'brand_id': '<brand.id>'},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This might be fine, but just to confirm: should this be ._id? I don't know Django all that well, but it seems like we lean towards using _id as the id field name in most places.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We did not go so far as to add underscore ids to brands, it's not in the data model. There's the other providers use the bare .id for brands, so I believe it's okay.

@Johnetordoff Johnetordoff merged commit 82cdfff into CenterForOpenScience:feature/pbs-25-13 Jul 17, 2025
6 checks passed
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.

3 participants