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

Fix Broken Dashboard - ReImplement Anomaly Dash #1491

Merged
merged 9 commits into from
Feb 19, 2024

Conversation

BradleySappington
Copy link
Collaborator

Fix broken dashboard due to references to unused anomaly tables
Re write anomaly dashboard functionality to use new table structure.

@pep8speaks
Copy link

pep8speaks commented Feb 19, 2024

Hello @BradleySappington, Thank you for updating !

Line 533:25: E226 missing whitespace around arithmetic operator
Line 534:24: E226 missing whitespace around arithmetic operator
Line 682:17: E126 continuation line over-indented for hanging indent

Line 995:13: E128 continuation line under-indented for visual indent
Line 1001:41: E128 continuation line under-indented for visual indent
Line 1142:17: E128 continuation line under-indented for visual indent
Line 1150:17: E128 continuation line under-indented for visual indent

Line 288:1: E302 expected 2 blank lines, found 1

Line 228:83: E231 missing whitespace after ','

Line 138:16: E124 closing bracket does not match visual indentation
Line 151:64: E502 the backslash is redundant between brackets
Line 153:17: E124 closing bracket does not match visual indentation

Line 685:38: E124 closing bracket does not match visual indentation

Comment last updated at 2024-02-19 21:44:25 UTC

@BradleySappington BradleySappington self-assigned this Feb 19, 2024
@BradleySappington BradleySappington linked an issue Feb 19, 2024 that may be closed by this pull request
@BradleySappington BradleySappington marked this pull request as draft February 19, 2024 21:01
@BradleySappington BradleySappington marked this pull request as ready for review February 19, 2024 21:03
@york-stsci
Copy link
Collaborator

Is it worth changing any of the database queries that use database_interface to use the django models instead?

Copy link
Collaborator

@bhilbert4 bhilbert4 left a comment

Choose a reason for hiding this comment

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

I haven't tried looking at the dashboard yet, but LGTM code-wise.

jwql/website/apps/jwql/bokeh_containers.py Show resolved Hide resolved
jwql/website/apps/jwql/bokeh_dashboard.py Show resolved Hide resolved
@bhilbert4
Copy link
Collaborator

The page looks about as good as it can get when running locally.

@BradleySappington
Copy link
Collaborator Author

Is it worth changing any of the database queries that use database_interface to use the django models instead?

@york-stsci
I considered this and chose not to just because they will continue working with their current setup and I wanted to get the dashboard functional again. We can discuss if its worth the time commitment to have django do them, and if so, can have it be part of the epic of the migration to the model system.

@york-stsci
Copy link
Collaborator

Ultimately, at the end of the epic, the database_interface code will have been removed, so the answer for "is it worth the time commitment" is going to be "yes" eventually, but it certainly doesn't need to be a part of this PR specifically.

@BradleySappington
Copy link
Collaborator Author

Well that makes that decision easy :)

@BradleySappington BradleySappington merged commit d308390 into spacetelescope:develop Feb 19, 2024
6 checks passed
@BradleySappington BradleySappington deleted the dash_fix branch February 19, 2024 21:57
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.

Update dashboard to look at new anomaly db tables
4 participants