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

Provide explicit values to the pool search url #1734

Merged
merged 2 commits into from
Jul 8, 2021
Merged

Conversation

jameskerr
Copy link
Member

@jameskerr jameskerr commented Jul 8, 2021

When no span params are provided, all the components will
implicitly use the pool defaults (saved in redux).
When new commits arrive, the
pool span will change. This results in
some of the UI re-rendering even though the url has not changed.

The only case we want this re-rendering behavior is when we are
dragging a pcap into the app. Then we want to have an empty span
and rely on the updating defaults. (although this feels confusing and
worthy of simplifying)

By being explicit with the spanArgs in the url, we can ensure that
the UI will not re-render when the span of the pool changes in redux.

fixes #1727

When no span params are provided, all the components will
implicitly use the pool defaults (saved in redux).
When new commits arrive, the
pool span will change. This results in
some of the UI re-rendering even though the url has not changed.

The only case we want this re-rendering behavior is when we are
dragging a pcap into the app. Then we want to have an empty span
and rely on the updating defaults. (although this feels confusing and
worthy of simplifying)

By being explicit with the spanArgs in the url, we can ensure that
the UI will not re-render when the span of the pool changes in redux.
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch more-data-bug
# Changes to be committed:
#	modified:   app/summary/home.tsx
#
@jameskerr jameskerr requested a review from mason-fish July 8, 2021 00:13
Copy link
Contributor

@mason-fish mason-fish left a comment

Choose a reason for hiding this comment

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

Looks straight forward to me! Approved after green build 👍

@jameskerr jameskerr merged commit b3ca1cd into main Jul 8, 2021
@jameskerr jameskerr deleted the more-data-bug branch July 8, 2021 18:42
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.

Unexpected refresh of histogram and time pickers
2 participants