def get_validation_result(archive_submission_uuid: str): dsp_api = DataSubmissionPortal(config.DSP_API_URL) submission_url = dsp_api.get_submission_url(archive_submission_uuid) submission = ArchiveSubmission(dsp_api=dsp_api, dsp_submission_url=submission_url) result = submission.get_all_validation_result_details() return jsonify(result)
def get_blockers(archive_submission_uuid: str): dsp_api = DataSubmissionPortal(config.DSP_API_URL) submission_url = dsp_api.get_submission_url(archive_submission_uuid) submission = ArchiveSubmission(dsp_api=dsp_api, dsp_submission_url=submission_url) blockers = submission.get_blockers() return jsonify(blockers)
def get_validation_errors(archive_submission_uuid: str): dsp_api = DataSubmissionPortal(config.DSP_API_URL) submission_url = dsp_api.get_submission_url(archive_submission_uuid) submission = ArchiveSubmission(dsp_api=dsp_api, dsp_submission_url=submission_url) validation_errors = submission.get_validation_error_report() return jsonify(validation_errors)