-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve response times of sync_dimension calls (#537)
* wip: attempt to run sync_dimensions functions async * fix: delegate sync_dimensions tasks to workers * fix(sage_intacct): extract all sync_dimensions POST handlers into async functions this reduces local response time to ≤ 1 second * fix(apps/fyle): extract all sync_dimensions POST handlers into async functions this reduces local response time to ≤ 1 second * fix: update tests * refactor: remove unused import Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * test: add unit test for handle_refresh_dimensions * test: add fixture to test * fix(apps/sage_intacct): add back intacct creds check, helper logic refactor refactor: remove handle_refresh_dimensions and move logic to the `post()` handler refactor: update destination_synced_at within sync_dimensions * test: add back sync_dimensions and refresh_dimensions invalid creds tests * fix: dont call `async_update_workspace_name` when polling `workspaces/` * refactor: remove print statement * test: add unit test for `handle_refresh_dimensions` * test: add unit test for `check_interval_and_sync_dimension` --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: anishfyle <[email protected]> (cherry picked from commit 715f85b)
- Loading branch information
1 parent
50c9045
commit ae67b01
Showing
7 changed files
with
113 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters