-
Notifications
You must be signed in to change notification settings - Fork 3
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
ExpenseCustomField Rework #536
Conversation
@@ -99,10 +98,6 @@ def pre_save_mapping_settings(self): | |||
""" | |||
mapping_settings = self.__mapping_settings | |||
|
|||
schedule_fyle_attributes_creation(self.__workspace_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have removed the scheduling logic from imports/triggers
to mappings/signals.py
. Hope this doesn't cause any issue.
workspace_id=workspace_general_settings.workspace_id, | ||
is_custom=True | ||
).count() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we're calling schedule_or_delete_fyle_import_tasks() from 2 places
mapping setting post save signal and post_save_mapping_settings trigger in onboarding API
I think we can remove mapping setting post save signal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
able to get the issue have removed the mapping setting post save signal
apps/mappings/schedules.py
Outdated
@@ -34,8 +34,15 @@ def schedule_or_delete_fyle_import_tasks(workspace_general_settings: WorkspaceGe | |||
source_field__in=['PROJECT', 'COST_CENTER'] | |||
).count() | |||
|
|||
custom_field_import_fields_count = MappingSetting.objects.filter( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cleanup the whole function. if something: schedule. else: delete
|
|
|
|
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #536 +/- ##
==========================================
- Coverage 96.26% 96.10% -0.16%
==========================================
Files 60 60
Lines 4467 4395 -72
==========================================
- Hits 4300 4224 -76
- Misses 167 171 +4
|
No description provided.