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

[Canvas] Only runs duplicate workpad load once #30150

Merged
merged 1 commit into from
Feb 11, 2019

Conversation

cqliu1
Copy link
Contributor

@cqliu1 cqliu1 commented Feb 5, 2019

Related to #24385.

This adds a new property isFirstLoad to transient state to keep track if a user has loaded a workpad, and now we only test the user's write permissions once instead of on every workpad load. This is just an interim solution until granular app privileges are available (#20277).

@cqliu1 cqliu1 added review v7.0.0 Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v6.7.0 labels Feb 5, 2019
@cqliu1 cqliu1 requested a review from monfera February 5, 2019 22:08
@cqliu1 cqliu1 requested a review from a team as a code owner February 5, 2019 22:08
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-canvas

@cqliu1 cqliu1 changed the title [Canvas] Duplicate workpad loads only once [Canvas] Only runs duplicate workpad load once Feb 5, 2019
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@cqliu1 cqliu1 force-pushed the fix/write-permission-check branch 2 times, most recently from c8f1352 to 49f5c86 Compare February 6, 2019 17:25
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

Copy link
Contributor

@monfera monfera left a comment

Choose a reason for hiding this comment

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

Great PR, cuts workpad loading to half, save for the negligible effect on a browser page reload.

@monfera
Copy link
Contributor

monfera commented Feb 7, 2019

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

@cqliu1 cqliu1 force-pushed the fix/write-permission-check branch from 49f5c86 to 388a72c Compare February 9, 2019 00:36
@elasticmachine
Copy link
Contributor

💔 Build Failed

@cqliu1 cqliu1 force-pushed the fix/write-permission-check branch from 388a72c to dd5eabe Compare February 11, 2019 17:49
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@cqliu1 cqliu1 merged commit 63d4ddb into elastic:master Feb 11, 2019
@cqliu1 cqliu1 deleted the fix/write-permission-check branch February 11, 2019 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v6.7.0 v7.0.0 v7.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants