-
Notifications
You must be signed in to change notification settings - Fork 32
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
base: master
Are you sure you want to change the base?
fix(dino-park): fix loading process for org-chart, highlight #410
Conversation
There was a problem hiding this 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.
src/pages/PageOrgchart.vue
Outdated
@@ -198,8 +200,8 @@ export default { | |||
async created() { | |||
window.addEventListener('resize', this.updateView); | |||
this.updateView(); | |||
await this.fetchData(); | |||
await this.highlight(); | |||
this.highlight(); |
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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.
1838ca9
to
c161a95
Compare
9e98bf8
to
03c89f5
Compare
…interactivability
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