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

Hotfix: Don't request urls every time the document name updates #17710

Merged

Conversation

madsrasmussen
Copy link
Contributor

@madsrasmussen madsrasmussen commented Dec 3, 2024

The issue:

Screen.Recording.2024-12-03.at.11.35.30.mov

This PR fixes an issue with the document URL UI updating every time the document name is changed. The main problem was that the observer responsible for requesting the URLs also included the document variant names. This resulted in a server request being made every time the name was changed.

I have split the observer into two: one for loading the document URLs and one for observing the variants.

The PR also includes general event cleanup and adds a loader state.

what to test

  • Please ensure that the URLs are loaded and updated correctly
  • Make sure that it works for variant and invariant documents

@iOvergaard iOvergaard merged commit e8d4634 into release/15.1 Dec 4, 2024
20 checks passed
@iOvergaard iOvergaard deleted the 15.1/hotfix/document-too-many-requests-for-url branch December 4, 2024 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants