Skip to content

Commit

Permalink
changes per suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
ayobi committed Apr 25, 2024
1 parent 344e9f8 commit fba3472
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions microsetta_interface/implementation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2732,9 +2732,6 @@ def get_ajax_check_activation_code(code, email):
return flask.jsonify(result)


# NB: associating surveys with samples when samples are claimed means that any
# surveys added to this source AFTER these samples are claimed will NOT be
# associated with these samples. This behavior is by design.
@prerequisite([SOURCE_PREREQS_MET, BIOSPECIMEN_PREREQS_MET])
def post_claim_samples(*, account_id=None, source_id=None, body=None,
sample_ids=None):
Expand Down Expand Up @@ -2764,11 +2761,6 @@ def post_claim_samples(*, account_id=None, source_id=None, body=None,
sample_ids=sample_ids
)

has_error, survey_output, _ = ApiRequest.get(
'/accounts/{0}/sources/{1}/surveys'.format(account_id, source_id))
if has_error:
return survey_output

# TODO: Any of these requests may fail independently, but we don't
# have a good policy to deal with partial failures. Currently, we
# abort early but that will result in some set of associations being
Expand Down

0 comments on commit fba3472

Please sign in to comment.