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

Explore: Improve timeseries limit disclaimer #75587

Merged
merged 4 commits into from
Sep 27, 2023

Conversation

Elfo404
Copy link
Member

@Elfo404 Elfo404 commented Sep 27, 2023

What is this feature?

Revamps the "Showing only 20 series" disclaimer in Explore:

Screenshot 2023-09-27 at 18 09 19

Special notes for your reviewer:

The code is uglier then my hair right now, and the Graph is coupled with the container, but this should unblock #75499. Will create a follow up issue to do a tiny bit of refactoring as discussed with @gelicia to introduce a limit prop the the ExploreGraph (instead of the current solution) so it'll be a bit cleaner

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

@@ -80,6 +80,7 @@ export function LogsVolumePanel(props: Props) {
anchorToZero
yAxisMaximum={allLogsVolumeMaximum}
eventBus={props.eventBus}
showAllTimeSeries
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we also make this a state variable that the user can toggle at some point?

Copy link
Member Author

Choose a reason for hiding this comment

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

whole context in https://raintank-corp.slack.com/archives/C02TXB92G6T/p1695815888660829

the TLDR is that this is just to unblock som other things, the logs volume panel can only have like 8 series i think (max 1 per each log level) so it's not really affected, we'll refactor this to make it better

Copy link
Contributor

@matyax matyax left a comment

Choose a reason for hiding this comment

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

Logs changes look good 👍

Co-authored-by: Kristina <kristina.durivage@grafana.com>
@github-actions
Copy link
Contributor

Backend code coverage report for PR #75587
No changes

@github-actions
Copy link
Contributor

Frontend code coverage report for PR #75587

Plugin Main PR Difference
explore 86.54% 86.54% 0%

@Elfo404 Elfo404 merged commit 31933c9 into main Sep 27, 2023
15 checks passed
@Elfo404 Elfo404 deleted the gio/chore/improve-explore-graph-limit branch September 27, 2023 17:36
otilor pushed a commit to otilor/grafana that referenced this pull request Sep 28, 2023
* Explore: improve timeseries limit disclaimer

* use object notation for style definition

* increase gap

* Update public/app/features/explore/Graph/GraphContainer.tsx

Co-authored-by: Kristina <kristina.durivage@grafana.com>

---------

Co-authored-by: Kristina <kristina.durivage@grafana.com>
rwwiv pushed a commit that referenced this pull request Oct 2, 2023
* Explore: improve timeseries limit disclaimer

* use object notation for style definition

* increase gap

* Update public/app/features/explore/Graph/GraphContainer.tsx

Co-authored-by: Kristina <kristina.durivage@grafana.com>

---------

Co-authored-by: Kristina <kristina.durivage@grafana.com>
mildwonkey pushed a commit that referenced this pull request Oct 4, 2023
* Explore: improve timeseries limit disclaimer

* use object notation for style definition

* increase gap

* Update public/app/features/explore/Graph/GraphContainer.tsx

Co-authored-by: Kristina <kristina.durivage@grafana.com>

---------

Co-authored-by: Kristina <kristina.durivage@grafana.com>
@zerok zerok modified the milestones: 10.2.x, 10.2.0 Oct 23, 2023
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

4 participants