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

[uss_qualifier] scd subscrptions: stop considering 404 a success, add was_not_found #785

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

Shastick
Copy link
Contributor

class FetchedSubscription(fetch.Query) currently considers receiving a 404 from the DSS a success (ie, the success property will return True).

This is not strictly correct and can lead to confusion: a 404 will now cause success to be false. Callers that need to differentiate between a failure and a 404 may use was_not_found which will only be true if the returned code was 404.

Split out of #720

@BenjaminPelletier BenjaminPelletier merged commit 9dde4ef into interuss:main Sep 12, 2024
20 checks passed
github-actions bot added a commit that referenced this pull request Sep 12, 2024
@Shastick Shastick deleted the scd-sub-get-not-found branch September 12, 2024 15:02
punamverma pushed a commit to nasa/monitoring that referenced this pull request Oct 16, 2024
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