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

Events does not handle duplicate or already existing IDs #213

Open
sceniclife opened this issue May 11, 2023 · 1 comment
Open

Events does not handle duplicate or already existing IDs #213

sceniclife opened this issue May 11, 2023 · 1 comment

Comments

@sceniclife
Copy link

self.cdf_client.events.create([e for e in self.upload_queue])

Using EventUploadQueue feels different from TimeSeriesUploadQueue, RawUploadQueue, FileUploadQueue, and SequenceUploadQueue.

For each, there's some way to create_missing, ensure_parent, or overwrite except for EventUploadQueue. Unfortunately, when you EventUploadQueue, you must pre-process the Events that you are adding and ensure that it does not already exist.

@sceniclife
Copy link
Author

Also the syntax for [e for e in self.upload_queue] is redundant, since self.upload_queue is already a list of Events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant