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

Keep track of sunset endpoints to return HTTP status 410 (Gone) responses #717

Merged
merged 24 commits into from Jun 13, 2023

Conversation

Flix6x
Copy link
Contributor

@Flix6x Flix6x commented Jun 8, 2023

This PR amends our sunset policy, as discussed in the TSC of 11 May 2023. Specifically, we decided to keep track of previously sunset endpoints, so they should always keep returning HTTP status 410 (Gone) rather than HTTP status 404 (Not Found) responses. We did this so we can simplify our sunset policy for FlexMeasures hosts from 4 to 3 phases.

Flix6x added 12 commits June 8, 2023 13:29
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
@Flix6x Flix6x added this to the 0.14.0 milestone Jun 8, 2023
@Flix6x Flix6x self-assigned this Jun 8, 2023
Signed-off-by: F.N. Claessen <felix@seita.nl>
…n only called once

Signed-off-by: F.N. Claessen <felix@seita.nl>
@Flix6x Flix6x marked this pull request as ready for review June 8, 2023 19:11
@Flix6x Flix6x requested a review from nhoening June 8, 2023 19:12
Copy link
Contributor

@nhoening nhoening left a comment

Choose a reason for hiding this comment

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

Thanks. I think I know how to improve readability.

flexmeasures/api/common/utils/deprecation_utils.py Outdated Show resolved Hide resolved
flexmeasures/api/common/utils/deprecation_utils.py Outdated Show resolved Hide resolved
flexmeasures/api/common/utils/deprecation_utils.py Outdated Show resolved Hide resolved
flexmeasures/api/sunset/__init__.py Show resolved Hide resolved
flexmeasures/api/sunset/__init__.py Outdated Show resolved Hide resolved
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
@Flix6x Flix6x requested a review from nhoening June 12, 2023 21:09
Signed-off-by: F.N. Claessen <felix@seita.nl>
Copy link
Contributor

@nhoening nhoening left a comment

Choose a reason for hiding this comment

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

Great work, thanks!

@Flix6x Flix6x merged commit 4185880 into main Jun 13, 2023
7 checks passed
@Flix6x Flix6x deleted the keep-410 branch June 13, 2023 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants