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

DM-44386: Test every page endpoint for loading success #206

Merged
merged 5 commits into from
Sep 3, 2024

Conversation

ugyballoons
Copy link
Collaborator

Also test for invalid dates

Copy link
Collaborator

@sebastian-aranda sebastian-aranda 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 to me 👍. I've left a couple comments, but the PR is approved 😉.

all_cams = [f"{summit.name}/{cam.name}" for cam in summit.cameras]
online_cams = [f"{summit.name}/{cam.name}" for cam in summit.cameras if cam.online]
camera_historical = [f"{cam}/historical" for cam in online_cams]
camera_dates = [f"{cam}/date/{day_obs}" for cam in online_cams if cam]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why does only this case use the if cam checking? (when iterating over online_cams).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good spot, thanks! It's redundant.


# TODO: This needs not to be just a success, but a page with a
# 'nothing for this day' message.
# See DM-45327 https://rubinobs.atlassian.net/browse/DM-45327
Copy link
Collaborator

Choose a reason for hiding this comment

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

We closed this ticket, so should this part change? at least remove the TODO perhaps? If there is still work to do, please add another ticket 🙏.

@ugyballoons ugyballoons merged commit 09d33ed into develop Sep 3, 2024
4 of 5 checks passed
@ugyballoons ugyballoons deleted the tickets/DM-44386 branch September 3, 2024 15:05
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