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

Cost-Centers rework: Scheduling #532

Merged
merged 6 commits into from
Dec 15, 2023
Merged

Cost-Centers rework: Scheduling #532

merged 6 commits into from
Dec 15, 2023

Conversation

labhvam5
Copy link
Contributor

No description provided.

Copy link

Tests Skipped Failures Errors Time
2 0 💤 0 ❌ 2 🔥 1.414s ⏱️

Copy link

Tests Skipped Failures Errors Time
1 0 💤 0 ❌ 1 🔥 1.296s ⏱️

@labhvam5 labhvam5 requested a review from ashwin1111 December 14, 2023 10:59
@@ -55,7 +54,7 @@ def run_post_mapping_settings_triggers(sender, instance: MappingSetting, **kwarg
new_schedule_or_delete_fyle_import_tasks(workspace_general_settings, instance)

if instance.source_field == 'COST_CENTER':
schedule_cost_centers_creation(instance.import_to_fyle, int(instance.workspace_id))
new_schedule_or_delete_fyle_import_tasks(workspace_general_settings, instance)
Copy link
Contributor

Choose a reason for hiding this comment

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

can we update 53rd line condition to do if instance.source_field == 'PROJECT' or instance.source_field == 'COST_CENTER' instead of calling it twice

Copy link

Tests Skipped Failures Errors Time
1 0 💤 0 ❌ 1 🔥 1.258s ⏱️

* Removing old code

* removing test

* adding test (#534)

* adding test

* increasing cov

* Adding migration scripts (#535)
Copy link

Tests Skipped Failures Errors Time
219 0 💤 0 ❌ 0 🔥 32.017s ⏱️

Copy link

codecov bot commented Dec 15, 2023

Codecov Report

Merging #532 (f3c42f0) into master (8ca3ed5) will decrease coverage by 0.06%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #532      +/-   ##
==========================================
- Coverage   96.26%   96.20%   -0.06%     
==========================================
  Files          60       60              
  Lines        4467     4429      -38     
==========================================
- Hits         4300     4261      -39     
- Misses        167      168       +1     
Files Coverage Δ
apps/mappings/queues.py 97.10% <100.00%> (-0.24%) ⬇️
apps/mappings/schedules.py 100.00% <ø> (ø)
apps/mappings/signals.py 100.00% <100.00%> (ø)
apps/mappings/tasks.py 96.80% <ø> (-0.61%) ⬇️
apps/quickbooks_online/actions.py 100.00% <100.00%> (ø)
apps/workspaces/apis/import_settings/triggers.py 100.00% <ø> (ø)

@labhvam5 labhvam5 added the deploy Triggers deployment of active branch to Staging label Dec 15, 2023
Copy link

Tests Skipped Failures Errors Time
219 0 💤 0 ❌ 0 🔥 50.174s ⏱️

Copy link

Tests Skipped Failures Errors Time
219 0 💤 0 ❌ 0 🔥 50.097s ⏱️

@labhvam5 labhvam5 merged commit 28056cf into master Dec 15, 2023
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy Triggers deployment of active branch to Staging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants