-
Notifications
You must be signed in to change notification settings - Fork 11
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
Bulk fns #397
base: master
Are you sure you want to change the base?
Conversation
…using get_sample_address_from_object in get_samples
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 wonder if it should validate all of the samples first to make sure there aren't any errors, then save them.
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.
Overall LGTM. Just one comment.
'create_samples', ctx.log_info, as_user=user, skip_check=not as_admin) | ||
for samp in params['samples']: | ||
sample, id_, prev_ver = _create_sample_params(samp) | ||
ret = self._samples.save_sample( |
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 think we could do a try catch
here. Then add failed samples to something like failed_addresses
?
# return variables are: addresses | ||
#BEGIN create_samples | ||
if not params.get('samples'): | ||
raise ValueError(f"") |
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.
forget to include the actual error message?
No description provided.