Skip to content

[Security Solution][Endpoint] Fix activity log load empty state flicker#110233

Merged
ashokaditya merged 8 commits intoelastic:masterfrom
ashokaditya:fix/olm-fix_activity_log_load_flicker-107129
Aug 30, 2021
Merged

[Security Solution][Endpoint] Fix activity log load empty state flicker#110233
ashokaditya merged 8 commits intoelastic:masterfrom
ashokaditya:fix/olm-fix_activity_log_load_flicker-107129

Conversation

@ashokaditya
Copy link
Copy Markdown
Member

@ashokaditya ashokaditya commented Aug 26, 2021

fixes /issues/107129

Summary

This PR adds additional constraints before fetching activity log data so that it's not fetched more than once.
Fixes a bug where parts of the UI are loaded twice because fetching occurs twice, like when API fails.

loaded
log-blink

on initial load
log-blink-load

Checklist

Delete any items that are not applicable to this PR.

@ashokaditya ashokaditya added bug Fixes for quality problems that affect the customer experience release_note:fix v8.0.0 impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. Team:Defend Workflows “EDR Workflows” sub-team of Security Solution auto-backport Deprecated - use backport:version if exact versions are needed v7.15.0 v7.16.0 labels Aug 26, 2021
@ashokaditya ashokaditya self-assigned this Aug 26, 2021
@ashokaditya ashokaditya changed the title [Security Solution][Endpoint] Fix activity log load flicker [Security Solution][Endpoint] Fix activity log load empty state flicker Aug 26, 2021
@ashokaditya ashokaditya marked this pull request as ready for review August 26, 2021 15:45
@ashokaditya ashokaditya requested a review from a team as a code owner August 26, 2021 15:45
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/security-onboarding-and-lifecycle-mgt (Team:Onboarding and Lifecycle Mgt)

@ashokaditya
Copy link
Copy Markdown
Member Author

@elasticmachine merge upstream

it('should not call API again if it fails', async () => {
dispatchUserChangedUrl();

const apiError = new Error('oh oh');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🍕

@academo
Copy link
Copy Markdown
Contributor

academo commented Aug 30, 2021

The code looks correct but seems to be hard to follow the way you put it. If you could make it more readable would be optimal.

@ashokaditya ashokaditya requested a review from academo August 30, 2021 10:58
@kevinlog
Copy link
Copy Markdown
Contributor

Checked it out and tried it. It looks good! The timeline loads nicely with the animation and it doesn't blink like it did before.

image

LGTM!

@ashokaditya
Copy link
Copy Markdown
Member Author

@elasticmachine merge upstream

@ashokaditya ashokaditya enabled auto-merge (squash) August 30, 2021 18:56
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 6.5MB 6.5MB +494.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @ashokaditya

@ashokaditya ashokaditya merged commit 22e5565 into elastic:master Aug 30, 2021
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Aug 30, 2021
…er (elastic#110233)

* account for API errors and uninitialized state before fetching data

fixes elastic/issues/107129

* better name

refs elastic/pull/102261

* don't show date picker when loading data initially

fixes elastic/issues/107129

* use a readable selector instead

review changes

* remove redundant data fetch using paging action on tab switch.

refs elastic/pull/102261

* remove redundant validation

review comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Aug 30, 2021
…er (elastic#110233)

* account for API errors and uninitialized state before fetching data

fixes elastic/issues/107129

* better name

refs elastic/pull/102261

* don't show date picker when loading data initially

fixes elastic/issues/107129

* use a readable selector instead

review changes

* remove redundant data fetch using paging action on tab switch.

refs elastic/pull/102261

* remove redundant validation

review comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Backport successful

Status Branch Result
7.15
7.x

The backport PRs will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Aug 30, 2021
…er (#110233) (#110526)

* account for API errors and uninitialized state before fetching data

fixes /issues/107129

* better name

refs /pull/102261

* don't show date picker when loading data initially

fixes /issues/107129

* use a readable selector instead

review changes

* remove redundant data fetch using paging action on tab switch.

refs /pull/102261

* remove redundant validation

review comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Ashokaditya <am.struktr@gmail.com>
kibanamachine added a commit that referenced this pull request Sep 1, 2021
…er (#110233) (#110525)

* account for API errors and uninitialized state before fetching data

fixes /issues/107129

* better name

refs /pull/102261

* don't show date picker when loading data initially

fixes /issues/107129

* use a readable selector instead

review changes

* remove redundant data fetch using paging action on tab switch.

refs /pull/102261

* remove redundant validation

review comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Ashokaditya <am.struktr@gmail.com>
@ashokaditya ashokaditya deleted the fix/olm-fix_activity_log_load_flicker-107129 branch September 15, 2021 12:20
@muskangulati-qasource
Copy link
Copy Markdown

Bug Conversion

  • Test-Case not required as this is a Dev PR

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Deprecated - use backport:version if exact versions are needed bug Fixes for quality problems that affect the customer experience impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. release_note:fix Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v7.15.0 v7.16.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The 'No Logged Actions' message blinks in the Activity Log.

6 participants