Skip to content

[ENG-9127] Contributor page of components should offer option to import contributors from parent project.#11376

Merged
brianjgeiger merged 2 commits intoCenterForOpenScience:feature/pbs-25-21from
mkovalua:feature/ENG--9127
Oct 21, 2025
Merged

[ENG-9127] Contributor page of components should offer option to import contributors from parent project.#11376
brianjgeiger merged 2 commits intoCenterForOpenScience:feature/pbs-25-21from
mkovalua:feature/ENG--9127

Conversation

@mkovalua
Copy link
Contributor

@mkovalua mkovalua commented Oct 17, 2025

Purpose

Contributor page of components should offer option to import contributors from parent project.

Changes

Contributor page of components should offer option to import contributors from parent project.

PR is related to the following front end update

CenterForOpenScience/angular-osf#670

image

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

@mkovalua mkovalua changed the title [ENG-9127] [ENG-9127] Contributor page of components should offer option to import contributors from parent project. Oct 17, 2025
@mkovalua mkovalua marked this pull request as ready for review October 17, 2025 20:55
Copy link
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.

Overall looks good, but could use a test or two.

@mkovalua mkovalua requested a review from brianjgeiger October 21, 2025 15:24
Copy link
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.

You have some extra things in this PR that shouldn't be there. notifications/tasks.py , osf/email/init.py, osf/migrations/0034_abstractnode_keenio_read_key.py, and https://github.com/CenterForOpenScience/osf.io/pull/11376/files#diff-4b31ed2d6164722b2fcdd35dd56c11fa7cced0a4753944e56fc1807176593de3R479

Copy link
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.

One question about a test oddity. We're having trouble running one of our test suites on GHA, so I'm wondering if this is in that suite.

f'/{API_BASE}nodes/{component_project._id}/contributors/?copy_contributors_from_parent_project=true',
{
'data': {
'type': 3
Copy link
Collaborator

Choose a reason for hiding this comment

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

This shouldn't work. It should require the type to match the endpoint (probably contributors. This test runs locally?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it matches PATCH endpoint nodes/{component_project._id}/contributors

with query parameter it is possible to call a separate serializer to update contributors by taking it from parent,

if copy_contributors_from_parent_project=true. is passed because we use that serializer and don't require additional data to pass from client.

it goes ok

image
b087-8dbf-474d-9590-4b0eab8f1bdd.mp4

and video for UI testing is there

CenterForOpenScience/angular-osf#670

@brianjgeiger brianjgeiger merged commit 05484eb into CenterForOpenScience:feature/pbs-25-21 Oct 21, 2025
7 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.

2 participants