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 incorrect sync being triggered by URL parameter. #2939

Merged
merged 6 commits into from
Aug 11, 2022
Merged

Conversation

JakePT
Copy link
Contributor

@JakePT JakePT commented Aug 11, 2022

Description of the Change

Fixes an issue introduced by #2858 where the do_index parameter was triggering the incorrect sync.

I've also updated URL parameters and inline documentation to make it clearer what's going on and de-couple the meaning of the 'isDeleting' state from the 'putMapping' action which in some cases were using the same variable and parameter names despite being separate concepts.

Lastly I updated the existing tests that were checking that a sync was performed on feature activation to also check that mapping is being sent for those syncs, as that would've caught this issue.

Closes #2938

How to test the Change

When activating a feature that requires a sync the sync should occur int the Delete All Data and Sync panel and the log should show "Mapping sent".

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@JakePT JakePT added the module:sync Issues related to the Sync functionality label Aug 11, 2022
@JakePT JakePT added this to the 4.3.0 milestone Aug 11, 2022
@JakePT JakePT requested a review from felipeelia August 11, 2022 07:01
@JakePT JakePT self-assigned this Aug 11, 2022
@felipeelia felipeelia merged commit 7d04537 into develop Aug 11, 2022
@felipeelia felipeelia deleted the fix/2938 branch August 11, 2022 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:sync Issues related to the Sync functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Activating a feature does not trigger the correct sync process
2 participants