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

Ena mars receipt #38

Merged
merged 7 commits into from
Jun 26, 2024
Merged

Ena mars receipt #38

merged 7 commits into from
Jun 26, 2024

Conversation

Pedram-A-Keyvani
Copy link
Collaborator

Converting ENA receipt to MARS receipt:

  • You can find the MARS receipt structure here.
    • For ERROR that comes from ENA, there is no way to set "path" on the "errors" field of MarsReceipt.
    • For INFO that comes from ENA, there is no way to set "name" on the "info" field of MarsReceipt. @apriltuesday
  • Testing is available in EnaReceiptToMarsTest and it stores the result in "test-data/ena-receipt.json".
  • The end-point /isaena/submit (performSubmissionToEna) sends MarsReceipt instead of Receipt.

Copy link
Collaborator

@apriltuesday apriltuesday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! To confirm what we discussed in the meeting, yes the info "name" and error "path" can be optional.

It also will be good in subsequent PRs to start implementing the receipts for other ENA error cases, like the "data file not found situation" and any others - maybe can sit down with @dipayan1985 at some future date and get some examples.

@Pedram-A-Keyvani Pedram-A-Keyvani self-assigned this Jun 21, 2024
@bedroesb bedroesb merged commit 5d84a54 into main Jun 26, 2024
@bedroesb
Copy link
Member

This is great!

@bedroesb bedroesb linked an issue Jun 26, 2024 that may be closed by this pull request
@bedroesb bedroesb mentioned this pull request Jun 26, 2024
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.

ENA receipt generation
4 participants