-
Notifications
You must be signed in to change notification settings - Fork 429
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: Launchdarkly importer #2530
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Uffizzi Preview |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2530 +/- ##
==========================================
+ Coverage 95.53% 95.59% +0.05%
==========================================
Files 994 1009 +15
Lines 28072 28833 +761
==========================================
+ Hits 26818 27562 +744
- Misses 1254 1271 +17
☔ View full report in Codecov by Sentry. |
|
||
@register_task_handler() | ||
def process_launch_darkly_import_request(import_request_id: int) -> None: | ||
with transaction.atomic(): |
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.
I am a bit concerned about this long-running traction: is there any way we can avoid this? or reduce it?
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.
Maybe the question is should we have it at all or should we prefer having partial success imports?
To support partial imports better, we could extend the import request status field to have a partial_success
status and error_messages
array. Moreover, we could have a per-object status report so users could see which exact entity failed to import.
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.
As discussed internally, keeping the transaction for now. Partial imports TBD in a separate PR.
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.
Let's create an issue for removing transaction before we merge this
Thanks for submitting a PR! Please check the boxes below:
pre-commit
to check lintingChanges
Implements #2348
How did you test this code?
Please describe.
Left to do