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

Fix various issues with the reference daml-on-x implementation #1613

Merged
4 commits merged into from
Jun 13, 2019

Conversation

ghost
Copy link

@ghost ghost commented Jun 12, 2019

  • Add authorization check to submission to catch authorization errors early
  • Fix filtering by templates in transaction service
  • Loosen the transaction_id validation to accept transaction_ids as used by
    the reference implementation
  • Fix handling of ledger end
  • Add caching to archive decoding
  • Enable TransactionIT for the reference implementation
  • Fix time service event dedup
  • fix validation layer for transaction fetching to deal properly with empty strings
  • fix transaction fetching tests on sandbox that assumed that transaction ids would be verified as numbers by the api validation layer
  • return NOT_FOUND in all places where a non-existing transaction id or event id is used to fetch transactions

Pull Request Checklist

NOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with /AzurePipelines run to
trigger the build.

- Add authorization check to submission to catch authorization errors early
- Fix filtering by templates in transaction service
- Loosen the transaction_id validation to accept transaction_ids as used by
  the reference implementation
- Fix handling of ledger end
- Add caching to archive decoding
- Enable TransactionIT for the reference implementation
- Fix time service event dedup
@ghost ghost requested review from mziolekda and gleber-da June 12, 2019 17:07
@@ -144,7 +144,6 @@ class TransactionServiceRequestValidator(
req: GetTransactionByIdRequest): Result[transaction.GetTransactionByIdRequest] = {
for {
ledgerId <- matchId(LedgerId(req.ledgerId))
_ <- requireNumber(req.transactionId, "transaction_id")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this line related to failing tests?

…on ids would be verified as numbers by the api validation layer
@mziolekda mziolekda requested a review from gerolf-da June 13, 2019 10:19
@ghost ghost dismissed gerolf-da’s stale review June 13, 2019 12:32

100% agree on your review, we'll need to fix that in another PR though

@ghost
Copy link
Author

ghost commented Jun 13, 2019

@gerolf-da follow up issue: #1638.

@ghost ghost merged commit 8faa414 into master Jun 13, 2019
@ghost ghost deleted the fixes-damlonx branch June 13, 2019 12:37
This pull request was closed.
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