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

20929 - Update the involuntary dissolution job via PUT call #2829

Merged
merged 4 commits into from
May 16, 2024

Conversation

JazzarKarim
Copy link
Collaborator

Issue #:
bcgov/entity#20929

Description of changes:

  • Update the batch size job by making the PUT call
  • Showed spinner to avoid pressing the button again and again by users
  • misc fixes

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the sbc-auth license (Apache 2.0).

@JazzarKarim JazzarKarim self-assigned this May 16, 2024
v-if="isSaving"
class="loading-container"
>
<v-progress-circular
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is to prevent the user from spamming the Save button 😆 Basically the component will be replaced by a spinner until the PUT call is done. Logic is below.

state.numberOfBusinessesNonEdit = state.numberOfBusinessesEdit
state.isSaving = true // show the spinner
// Update store configurations array with the new number of inputted batch size
staffStore.involuntaryDissolutionConfigurations.configurations.find((config, index) => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is cleanest way I could think of. Basically finding where the NUM_DISSOLUTIONS_ALLOWED is and changing it's value.

@JazzarKarim
Copy link
Collaborator Author

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://bcregistry-account-dev--pr-2829-wz03rzyl.web.app

@JazzarKarim JazzarKarim marked this pull request as ready for review May 16, 2024 18:43
Copy link
Collaborator

@seeker25 seeker25 left a comment

Choose a reason for hiding this comment

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

LGTM

state.isSaving = true // show the spinner
// Update store configurations array with the new number of inputted batch size
staffStore.involuntaryDissolutionConfigurations.configurations.find((config, index) => {
if (config.name === 'NUM_DISSOLUTIONS_ALLOWED') {
Copy link
Collaborator

Choose a reason for hiding this comment

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

ENUM?

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@JazzarKarim JazzarKarim merged commit 074e0cb into bcgov:main May 16, 2024
5 of 6 checks passed
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.

3 participants