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

Stop using requestable state #1719

Merged
merged 3 commits into from
Oct 4, 2023
Merged

Conversation

thomasleese
Copy link
Contributor

@thomasleese thomasleese commented Sep 26, 2023

In #1717 we introduced new date/time fields which means we can remove the state field as it's no longer used (we can instead look at whether any of the date/time fields are nil).

Trello Card

@thomasleese thomasleese force-pushed the stop-using-requestable-state branch 5 times, most recently from cb2fa33 to 7ef64ab Compare September 28, 2023 14:49
@thomasleese thomasleese marked this pull request as ready for review September 28, 2023 14:52
@thomasleese thomasleese requested a review from a team as a code owner September 28, 2023 14:52
@thomasleese thomasleese force-pushed the stop-using-requestable-state branch 2 times, most recently from 3451cd6 to 9d668d7 Compare September 29, 2023 18:18
@thomasleese thomasleese force-pushed the stop-using-requestable-state branch from 9d668d7 to 9b80fc8 Compare October 4, 2023 07:22
This sets a default on the database so we don't need to set one when we
stop using the field.
@thomasleese thomasleese force-pushed the stop-using-requestable-state branch 2 times, most recently from 590090a to 0d9902d Compare October 4, 2023 09:34
@thomasleese thomasleese enabled auto-merge October 4, 2023 09:40
We're going to remove this field as it's no longer necessary so we need
to first stop using it.
This adds a service, which works in a similar way to ExpireRequestable
and ReceiveRequestable to handle the transition from created to
requested.
@thomasleese thomasleese force-pushed the stop-using-requestable-state branch from 0d9902d to ad5d73d Compare October 4, 2023 09:45
@thomasleese thomasleese merged commit 128c42b into main Oct 4, 2023
9 checks passed
@thomasleese thomasleese deleted the stop-using-requestable-state branch October 4, 2023 10:02
thomasleese added a commit that referenced this pull request Oct 6, 2023
This logic no longer works after we deployed
#1719
as there are no longer three distinct states for a requestable. Instead,
I've fixed the logic and made it clearer exactly what it's doing.
thomasleese added a commit that referenced this pull request Oct 9, 2023
The statuses are currently incorrect as they depend on the three
distinct states (requested, received and expired) which were removed in
#1719.
thomasleese added a commit that referenced this pull request Oct 9, 2023
The statuses are currently incorrect as they depend on the three
distinct states (requested, received and expired) which were removed in
#1719.
thomasleese added a commit that referenced this pull request Oct 9, 2023
The statuses are currently incorrect as they depend on the three
distinct states (requested, received and expired) which were removed in
#1719.
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