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

[ch149080] Avoid updating analysis nodes more than once when moving layers in Builder #16279

Merged

Conversation

Shylpx
Copy link
Collaborator

@Shylpx Shylpx commented Apr 30, 2021

Resources

Context

  • When a layer is moved in Builder, the analysis node of each layer is updated. The problem starts when a layer contains analysis nodes from other layers. For example, when there are "intersect & aggregate analysis" linking two layers, because when a node is updated, the other nodes from layers that contain that node are also updated. So, the same request is performed more than once, and Maps API sends a 429 error as a result.

  • To avoid that error, since the action to move layers is updating the analysis node of all layers, a flag is being added to save only the node associated with the current layer, instead of the ones from all the layers that contain the node from the current layer.

Changes

  • Update the moveLayer action in order to update each analysis node only once.
  • Add a test for the new parameter in saveAnalysisForLayer.

@Shylpx Shylpx self-assigned this Apr 30, 2021
@shortcut-integration
Copy link

Copy link
Member

@Jesus89 Jesus89 left a comment

Choose a reason for hiding this comment

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

@Shylpx Shylpx removed the request for review from VictorVelarde May 7, 2021 11:44
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