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

Canceling an angular route causes infinite digest loop #19594

Closed
chrisronline opened this issue May 31, 2018 · 3 comments
Closed

Canceling an angular route causes infinite digest loop #19594

chrisronline opened this issue May 31, 2018 · 3 comments
Labels
bug Fixes for quality problems that affect the customer experience Feature:Watcher Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more

Comments

@chrisronline
Copy link
Contributor

We recently introduced this change that had an unintended side effect related to this issue.

We use a dirty prompt within Watcher to prompt the user if they have unsaved changes if they navigate away from the edit page. However, when we cancel the navigation event for the confirm prompt, we get this infinite digest loop.

My best guess is because we are no longer rewriting urls, we're hitting an issue on this line where the urls are close but one is encoded and the other is not so they technically do not match and this infinite digest loop happens.

We need to dig in and understand how to address this.

@chrisronline chrisronline added bug Fixes for quality problems that affect the customer experience :Management labels May 31, 2018
chrisronline added a commit to chrisronline/kibana that referenced this issue May 31, 2018
chrisronline added a commit to chrisronline/kibana that referenced this issue Jun 1, 2018
chrisronline added a commit to chrisronline/kibana that referenced this issue Jun 1, 2018
chrisronline added a commit to chrisronline/kibana that referenced this issue Jun 5, 2018
@timroes timroes added Feature:Watcher Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more and removed :Management DO NOT USE labels Nov 27, 2018
@cjcenizal
Copy link
Contributor

@alisonelizabeth It looks like the dirty_prompt.js file was removed in the watcher-port branch. Does this mean that the dirty prompt feature was removed in that branch? If so, then does that mean this bug will be fixed once that branch is merged?

@alisonelizabeth
Copy link
Contributor

@cjcenizal it looks like the dirty_prompt functionality had been previously disabled in the existing code as well, see #19595.

You're correct, in the new code, this will not be an issue. That being said, a user is able to cancel with unsaved changes and they will not be prompted to confirm - do you think we need to add support back for this feature?

@cjcenizal
Copy link
Contributor

I think it's a nice-to-have functionality which we should consider more broadly, not just in the context of a specific app. In that light I think we can close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Watcher Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more
Projects
None yet
Development

No branches or pull requests

4 participants