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

feature(graphs): filter data points by date filters #491

Merged

Conversation

soyacz
Copy link
Collaborator

@soyacz soyacz commented Oct 25, 2024

In order to narrow down graphs range, date filters were added (by start and end date) with ability to quickly switch between 1,3 and 6 recent months. Last 3 months filter is on by default.

closes: #474

@soyacz soyacz requested review from fruch and k0machi October 25, 2024 08:41
@soyacz
Copy link
Collaborator Author

soyacz commented Oct 25, 2024

It's deployed to staging.
In general, it looks like this:
image

Copy link
Collaborator

@k0machi k0machi left a comment

Choose a reason for hiding this comment

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

Overall looks good, just one comment about timezones and some recommendations about packages available.

frontend/TestRun/ResultsGraphs.svelte Outdated Show resolved Hide resolved
frontend/TestRun/ResultsGraphs.svelte Outdated Show resolved Hide resolved
argus/backend/controller/api.py Outdated Show resolved Hide resolved
parameters.append(end_date)

if start_date or end_date:
raw_query += " ALLOW FILTERING"
Copy link
Contributor

Choose a reason for hiding this comment

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

do we have some estimation of the performance of those queries ? before/after ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, but in general should be faster as there will be less data sent to the backend.
Possibly this whole table could be improved by making SUT_TIMESTAMP a static field - as we don't support different SUT versions for one test run. I'd consider doing this in separate PR. WDYT?

@fruch
Copy link
Contributor

fruch commented Oct 27, 2024

It's deployed to staging. In general, it looks like this: image

the layout looks good to me,
I think we are using a bit too much coloring for button, it becomes a bit less clear what each one represents.

@fruch
Copy link
Contributor

fruch commented Oct 27, 2024

the layout looks good to me, I think we are using a bit too much coloring for button, it becomes a bit less clear what each one represents.

maybe it's time to do a session with a designer, about the UI of those ?

In order to narrow down graphs range, date filters were added (by start
and end date) with ability to quickly switch between 1,3 and 6 recent
months. Last 3 months filter is on by default.

closes: scylladb#474
@soyacz soyacz force-pushed the add-filter-data-points-in-graph-by-date branch from 5b59348 to cf0309d Compare October 30, 2024 09:22
@k0machi
Copy link
Collaborator

k0machi commented Oct 30, 2024

the layout looks good to me, I think we are using a bit too much coloring for button, it becomes a bit less clear what each one represents.

maybe it's time to do a session with a designer, about the UI of those ?

I can look into the UI/UX after this PR, we've discussed some changes in #489.

if not test_id:
raise Exception("No testId provided")

start_date = datetime.fromisoformat(start_date_str).astimezone(timezone.utc) if start_date_str else None
Copy link
Collaborator

Choose a reason for hiding this comment

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

What does the input string here look like? My concern is potential shift of the requested data +/- offset from UTC if input string doesn't have Z at the end or timezone specified.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

input string is just the date e.g. 2024-10-30

Copy link
Collaborator

@k0machi k0machi left a comment

Choose a reason for hiding this comment

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

LGTM, other than one comment

@soyacz
Copy link
Collaborator Author

soyacz commented Oct 30, 2024

the layout looks good to me, I think we are using a bit too much coloring for button, it becomes a bit less clear what each one represents.

maybe it's time to do a session with a designer, about the UI of those ?

I can look into the UI/UX after this PR, we've discussed some changes in #489.

Yes, I tried improving UI/UX but I'd rather do it in separate PR to discuss it there out of this context.
May I merge it?

@soyacz soyacz merged commit be5bb2d into scylladb:master Oct 30, 2024
1 check passed
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.

Filter graph data points by time range
3 participants