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

fix(dino-park): fix loading process for org-chart, highlight #410

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

andrew-sunada
Copy link
Contributor

Fix the loading times for the org chart and highlight so that the profile highlight shows up either before or starting at the same time as the org chart loading

Jira: https://jira.mozilla.com/browse/DP-1449

Copy link
Contributor

@fiji-flo fiji-flo left a comment

Choose a reason for hiding this comment

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

As far as I can see this won't fix this use case: https://jira.mozilla.com/browse/IAM-158?focusedCommentId=20493&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-20493

I updated the dev extension (0.0.8) to work on prod. This will make it easier to debug this.

@@ -198,8 +200,8 @@ export default {
async created() {
window.addEventListener('resize', this.updateView);
this.updateView();
await this.fetchData();
await this.highlight();
this.highlight();
Copy link
Contributor

Choose a reason for hiding this comment

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

if we run highlight before fetchData and don't wait on it highlight won't work if the orgchart wasn't loaded before, and if it works it's just a lucky won race condition.

@@ -198,8 +200,8 @@ export default {
async created() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just in general, this wouldn't need to be async anymore with your changes.

@andrew-sunada andrew-sunada force-pushed the org-chart-highlight-loading branch 2 times, most recently from 1838ca9 to c161a95 Compare July 29, 2019 19:46
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.

2 participants