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

Prevent parallel phishing configuration updates #930

Merged
merged 3 commits into from
Oct 10, 2022

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Oct 10, 2022

When a phishing configuration update is requested while an update is in-progress, we now wait for the in-progress update to finish instead of initiating another redundant update.

  • FIXED:

    • Prevent parallel phishing configuration updates

Checklist

  • Tests are included if applicable
  • Any added code is fully documented

@Gudahtt Gudahtt force-pushed the prevent-parallel-phishing-updates branch from 4c14157 to 038ea1c Compare October 10, 2022 14:26
@Gudahtt Gudahtt marked this pull request as ready for review October 10, 2022 14:26
@Gudahtt Gudahtt requested a review from a team as a code owner October 10, 2022 14:26
When a phishing configuration update is requested while an update is
in-progress, we now wait for the in-progress update to finish instead
of initiating another redundant update.
@Gudahtt Gudahtt force-pushed the prevent-parallel-phishing-updates branch from 038ea1c to 6040bf0 Compare October 10, 2022 14:30
Copy link
Contributor

@adonesky1 adonesky1 left a comment

Choose a reason for hiding this comment

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

LGTM!

@Gudahtt Gudahtt merged commit 0adfc97 into main Oct 10, 2022
@Gudahtt Gudahtt deleted the prevent-parallel-phishing-updates branch October 10, 2022 16:28
Gudahtt added a commit that referenced this pull request Oct 12, 2022
I have noticed that locally `yarn test` will succeed the first time,
the will fail with a type error saying `toNeverResolve` is undefined.
After running `yarn jest --clearCache`, tests will pass again once then
fail again.

This custom Jest matcher was added in #930. Seemingly the way the type
was added is causing this problem.

I'm not entirely sure what's going on here. Something about the way
Jest is loading this file is making Jest confused about this type.
I found that it works more reliably if the type is moved to a separate
file in the `types` directory.
Gudahtt added a commit that referenced this pull request Oct 12, 2022
I have noticed that locally `yarn test` will succeed the first time,
the will fail with a type error saying `toNeverResolve` is undefined.
After running `yarn jest --clearCache`, tests will pass again once then
fail again.

This custom Jest matcher was added in #930. Seemingly the way the type
was added is causing this problem.

I'm not entirely sure what's going on here. Something about the way
Jest is loading this file is making Jest confused about this type.
I found that it works more reliably if the type is moved to a separate
file in the `types` directory.
gantunesr pushed a commit that referenced this pull request Dec 8, 2022
When a phishing configuration update is requested while an update is
in-progress, we now wait for the in-progress update to finish instead
of initiating another redundant update.
gantunesr pushed a commit that referenced this pull request Dec 8, 2022
I have noticed that locally `yarn test` will succeed the first time,
the will fail with a type error saying `toNeverResolve` is undefined.
After running `yarn jest --clearCache`, tests will pass again once then
fail again.

This custom Jest matcher was added in #930. Seemingly the way the type
was added is causing this problem.

I'm not entirely sure what's going on here. Something about the way
Jest is loading this file is making Jest confused about this type.
I found that it works more reliably if the type is moved to a separate
file in the `types` directory.
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
When a phishing configuration update is requested while an update is
in-progress, we now wait for the in-progress update to finish instead
of initiating another redundant update.
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
I have noticed that locally `yarn test` will succeed the first time,
the will fail with a type error saying `toNeverResolve` is undefined.
After running `yarn jest --clearCache`, tests will pass again once then
fail again.

This custom Jest matcher was added in #930. Seemingly the way the type
was added is causing this problem.

I'm not entirely sure what's going on here. Something about the way
Jest is loading this file is making Jest confused about this type.
I found that it works more reliably if the type is moved to a separate
file in the `types` directory.
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
When a phishing configuration update is requested while an update is
in-progress, we now wait for the in-progress update to finish instead
of initiating another redundant update.
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
I have noticed that locally `yarn test` will succeed the first time,
the will fail with a type error saying `toNeverResolve` is undefined.
After running `yarn jest --clearCache`, tests will pass again once then
fail again.

This custom Jest matcher was added in #930. Seemingly the way the type
was added is causing this problem.

I'm not entirely sure what's going on here. Something about the way
Jest is loading this file is making Jest confused about this type.
I found that it works more reliably if the type is moved to a separate
file in the `types` directory.
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.

None yet

2 participants