Skip to content

Expose embargo end date#9583

Draft
jwalz wants to merge 2 commits intoCenterForOpenScience:developfrom
jwalz:expose_embargo_end_date
Draft

Expose embargo end date#9583
jwalz wants to merge 2 commits intoCenterForOpenScience:developfrom
jwalz:expose_embargo_end_date

Conversation

@jwalz
Copy link
Copy Markdown
Contributor

@jwalz jwalz commented Dec 18, 2020

Purpose

Allow FE to display the Embargo End Date to moderators when they're making moderator-y decisions

Changes

Return the end_date in embargo_end_date when state is APPROVED or PENDING_MODERATION instead of just APPROVED

Note, embargo_end_date is used as a proxy for is_embargoed in many tests, so getting rid of all state-based guards risks requiring a lot of test refactoring.

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 jwalz marked this pull request as draft December 18, 2020 19:14
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