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

feat: Refactor form sync to run as a background job with retry #2408

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AIlkiv
Copy link
Collaborator

@AIlkiv AIlkiv commented Nov 13, 2024

issue: #2165 , #2067

I implemented a logic to synchronize the form with the file, allowing multiple attempts if the first one fails. The process runs in the background with delays, ensuring it does not impact the user experience.

@AIlkiv AIlkiv force-pushed the form-sync-background-job branch 2 times, most recently from e08797f to 493c3fe Compare November 13, 2024 15:54
Copy link

codecov bot commented Nov 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@ec712fc). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2408   +/-   ##
=======================================
  Coverage        ?   43.50%           
  Complexity      ?      857           
=======================================
  Files           ?       73           
  Lines           ?     3232           
  Branches        ?        0           
=======================================
  Hits            ?     1406           
  Misses          ?     1826           
  Partials        ?        0           

@AIlkiv AIlkiv changed the title Refactor form sync to run as a background job with retry feat: Refactor form sync to run as a background job with retry Nov 14, 2024
@AIlkiv
Copy link
Collaborator Author

AIlkiv commented Nov 14, 2024

Added a fix for the issue described in #2067

@AIlkiv AIlkiv requested a review from susnux November 14, 2024 04:09
@Chartman123 Chartman123 added bug Something isn't working php PHP related ticket 3. to review Waiting for reviews labels Nov 14, 2024
@Chartman123 Chartman123 added this to the 5.0 milestone Nov 14, 2024
Copy link
Collaborator

@Chartman123 Chartman123 left a comment

Choose a reason for hiding this comment

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

Looks good to me :) I'd like to wait with the merging for @susnux's review

thanks for this PR, we can also do a backport to stable4, but you'll need to adjust the ApiController part there manually because of the duplicated routes.

@Chartman123
Copy link
Collaborator

/backport to stable4

@backportbot backportbot bot added the backport-request Pending backport by the backport-bot label Nov 14, 2024
@Chartman123
Copy link
Collaborator

The Codecov upload error isn't specific to Forms: codecov/codecov-action#1643

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews backport-request Pending backport by the backport-bot bug Something isn't working php PHP related ticket
Projects
None yet
2 participants