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: Refactor deduplication, hiding of logs and Logs component #33531

Merged
merged 8 commits into from Apr 29, 2021

Conversation

ivanahuckova
Copy link
Member

@ivanahuckova ivanahuckova commented Apr 29, 2021

What this PR does / why we need it:
This PR is part of adding Logs Navigation to Explore. We need to refactor deduplication and level hiding so they are done within <LogsContainer />. That way, we can cache logResults and still enable all the same functionality (deduplication, hiding levels) as when received from regular query.

I have also cleaned up and moved meta info to its own component.

There is no new functionality, just refactored code.

Previous related PRs:

#32978
#33069
#33259

@ivanahuckova ivanahuckova added this to the 8.0.0 milestone Apr 29, 2021
@ivanahuckova ivanahuckova requested review from aocenas, zoltanbedi and a team April 29, 2021 13:03
@ivanahuckova ivanahuckova self-assigned this Apr 29, 2021
@ivanahuckova ivanahuckova requested a review from a team as a code owner April 29, 2021 13:03
@ivanahuckova ivanahuckova requested review from torkelo and jackw and removed request for a team April 29, 2021 13:03
@ivanahuckova ivanahuckova removed request for a team, torkelo and jackw April 29, 2021 13:04
@ivanahuckova ivanahuckova marked this pull request as draft April 29, 2021 14:02
@ivanahuckova ivanahuckova marked this pull request as ready for review April 29, 2021 14:23
Copy link
Member

@aocenas aocenas 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 but would like to not loose the tests if possible

@ivanahuckova ivanahuckova merged commit cf958e0 into master Apr 29, 2021
Observability (deprecated, use Observability Squad) automation moved this from Under review to Done Apr 29, 2021
@ivanahuckova ivanahuckova deleted the ivana/exploree-navigation-dedup branch April 29, 2021 16:26
mortenaa pushed a commit to mortenaa/grafana that referenced this pull request May 25, 2021
…rafana#33531)

* Move fitlering and deduplication to comnponent to enable future caching

* Clean up LogsMetaInfo

* Update

* Memoize component

* Fix type errors

* Clean uo

* Add tests for filtering in combination with deduplication
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants