Skip to content
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

[ENG-6070] Updated logic for the preprint institution component and more tests #2280

Conversation

bp-cos
Copy link
Contributor

@bp-cos bp-cos commented Aug 7, 2024

Purpose

Use TDD principles to update the logic while testing

Summary of Changes

Added new logic to find the union between user institutions and preprint affiliated institutions while writing new tests.

Screenshot(s)

Screenshot 2024-08-09 at 11 38 38 AM

Side Effects

Likely a better way to find the union.

QA Notes

@bp-cos bp-cos requested a review from futa-ikeda August 7, 2024 21:12
Copy link
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.

Looks good aside from missing the actual save step it seems

app/models/institution.ts Outdated Show resolved Hide resolved
Copy link
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.

I'm still not super thrilled that the save logic has to creep its way into the state machine component. But that wasn't really your decision, so 🤷

@bp-cos
Copy link
Contributor Author

bp-cos commented Aug 9, 2024

I'm still not super thrilled that the save logic has to creep its way into the state machine component. But that wasn't really your decision, so 🤷

It's not in my hands.

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

Just a couple things left over

@bp-cos bp-cos merged commit 81f7846 into CenterForOpenScience:feature/preprints-affiliations Aug 9, 2024
7 of 9 checks passed
@bp-cos bp-cos deleted the feature/eng-6070 branch August 9, 2024 19:45
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