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

SDP-575: [data] Improve receiver verification error messaging for disbursement instructions #178

Merged
merged 5 commits into from
Feb 14, 2024

Conversation

ceciliaromao
Copy link
Contributor

What

Clear error message about which receiver (line in CSV & phone number / internal id) that has a mis-matching verification.

Why

If the user doesn't know which record is causing the error, they won't know where to check to find the original value.

Known limitations

N/A

Checklist

PR Structure

  • This PR has a reasonably narrow scope (if not, break it down into smaller PRs).
  • This PR title and description are clear enough for anyone to review it.
  • This PR does not mix refactoring changes with feature changes (split into two PRs otherwise).

Thoroughness

  • This PR adds tests for the new functionality or fixes.
  • This PR contains the link to the Jira ticket it addresses.

Configs and Secrets

  • No new CONFIG variables are required -OR- the new required ones were added to the helmchart's values.yaml file.
  • No new CONFIG variables are required -OR- the new required ones were added to the deployments (pr-preview, dev, demo, prd).
  • No new SECRETS variables are required -OR- the new required ones were mentioned in the helmchart's values.yaml file.
  • No new SECRETS variables are required -OR- the new required ones were added to the deployments (pr-preview secrets, dev secrets, demo secrets, prd secrets).

Release

  • This is not a breaking change.
  • This is ready for production.. If your PR is not ready for production, please consider opening additional complementary PRs using this one as the base. Only merge this into develop or main after it's ready for production!

Deployment

  • Does the deployment work after merging?

@ceciliaromao ceciliaromao temporarily deployed to Receiver Registration - E2E Integration Tests February 6, 2024 02:24 — with GitHub Actions Inactive
@ceciliaromao ceciliaromao temporarily deployed to Anchor Integration Tests February 6, 2024 02:24 — with GitHub Actions Inactive
@stellar-jenkins

This comment was marked as outdated.

@ceciliaromao ceciliaromao temporarily deployed to Receiver Registration - E2E Integration Tests February 6, 2024 02:43 — with GitHub Actions Inactive
@ceciliaromao ceciliaromao temporarily deployed to Anchor Integration Tests February 6, 2024 02:43 — with GitHub Actions Inactive
@stellar-jenkins

This comment was marked as outdated.

@ceciliaromao ceciliaromao temporarily deployed to Receiver Registration - E2E Integration Tests February 6, 2024 14:36 — with GitHub Actions Inactive
@ceciliaromao ceciliaromao temporarily deployed to Anchor Integration Tests February 6, 2024 14:36 — with GitHub Actions Inactive
@ceciliaromao ceciliaromao marked this pull request as ready for review February 6, 2024 14:36
@ceciliaromao ceciliaromao temporarily deployed to Anchor Integration Tests February 13, 2024 06:36 — with GitHub Actions Inactive
@ceciliaromao ceciliaromao temporarily deployed to Receiver Registration - E2E Integration Tests February 13, 2024 06:36 — with GitHub Actions Inactive
@ceciliaromao ceciliaromao merged commit 7d6817e into develop Feb 14, 2024
10 checks passed
@ceciliaromao ceciliaromao deleted the sdp-575_receiver-verification-error-messaging branch February 14, 2024 13:13
marcelosalloum added a commit that referenced this pull request Feb 21, 2024
[Merge] Merge `develop` into `sdp-multitenant`

```text
Conflicts:
	.github/workflows/ci.yml
	cmd/serve_test.go
	go.sum
	internal/data/disbursement_instructions.go
	internal/data/disbursement_instructions_test.go
	internal/serve/httphandler/assets_handler_test.go
	internal/serve/serve.go
	internal/serve/serve_test.go
```

Merged PRs:

- #178
- #185
- #195
- #181
- #196
marcelosalloum added a commit that referenced this pull request Apr 15, 2024
## [1.1.6](1.1.5...1.1.6)

Attention, this version is compatible with the frontend version [1.1.2](https://github.com/stellar/stellar-disbursement-platform-frontend/releases/tag/1.1.2).

### Changed

- Update the `PATCH /receivers/{id}` request, so a receiver's verification info is not just inserted but upserted. The update part of the upsert only takes place if the verification info has not been confirmed yet. [#205](#205)
- Update the order of the verification field that is shown to the receiver during the [SEP-24] flow. The order was `(updated_at DESC)` and was updated to the composed sorting `(updated_at DESC, rv.verification_field ASC)` to ensure consistency when multiple verification fields share the same `updated_at` value.
- Improve information in the error message returned when the disbursement instruction contains a verification info that is different from an already existing verification info that was already confirmed by the receiver. [#178](#178)
- When adding an asset, make sure to trim the spaces fom the issuer field. [#185](#185)

### Security

- Bump Go version from 1.19 to 1.22, and upgraded the version of some CI tools. [#196](#196)
- Add rate-limiter in both in the application and the kubernetes deployment. [#195](#195)
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