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

Bulk fns #397

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Bulk fns #397

wants to merge 7 commits into from

Conversation

slebras
Copy link
Contributor

@slebras slebras commented Apr 13, 2021

No description provided.

Copy link
Contributor

@scanon scanon left a 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.

Copy link
Collaborator

@Tianhao-Gu Tianhao-Gu left a 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(
Copy link
Collaborator

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"")
Copy link
Collaborator

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?

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

Successfully merging this pull request may close these issues.

3 participants