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

Ignore auto-disable activity if connection already inactive #12507

Merged
merged 3 commits into from
May 2, 2022

Conversation

terencecho
Copy link
Contributor

What

Ignore the auto-disable failing connections activity if the connection is already in an Inactive state.

Previously, a failing connection will run through the entire activity even if the connection's state is Inactive, such as when triggered by a manual sync. This in turn may result in auto-disable or warning notifications of no use since the connection is already disabled.

This PR helps reduce work and reduces irrelevant notifications to users in those previously mentioned situations.

@github-actions github-actions bot added area/platform issues related to the platform area/worker Related to worker labels May 2, 2022
@terencecho terencecho requested a review from pmossman May 2, 2022 07:21
@terencecho terencecho temporarily deployed to more-secrets May 2, 2022 16:29 Inactive
@terencecho terencecho temporarily deployed to more-secrets May 2, 2022 16:29 Inactive
Copy link
Contributor

@pmossman pmossman left a comment

Choose a reason for hiding this comment

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

This makes sense to me! Moving the configRepository.getStandardSync to the top of the activity to avoid fetching it again in disableConnection is a good move

@terencecho terencecho temporarily deployed to more-secrets May 2, 2022 16:51 Inactive
@terencecho terencecho temporarily deployed to more-secrets May 2, 2022 16:51 Inactive
@terencecho terencecho temporarily deployed to more-secrets May 2, 2022 18:35 Inactive
@terencecho terencecho temporarily deployed to more-secrets May 2, 2022 18:36 Inactive
@terencecho terencecho merged commit 4ab93e5 into master May 2, 2022
@terencecho terencecho deleted the auto-disable-cleanup branch May 2, 2022 19:13
suhomud pushed a commit that referenced this pull request May 23, 2022
* Ignore auto disable activity if already inactive

* fix formatting

* fix unit test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform issues related to the platform area/worker Related to worker
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants