Skip to content

Conversation

@Rafiq-Gasmi
Copy link
Contributor

What

PP-14612 - download CSV functionality for transactions per service

Implement/migrate download CSV functionality for transactions. The code has been migrated to Typescript and improved.

dates.ts is more stricter, safer (validation input, support data object, sensible defaults.

get-query-string-for-params.ts defined improve readability, brand get converted from string t array before hand stops repeated keys. avoids treating pagination default 0 as missing

transaction-download.controller.ts explicit interfaces and types.

How

  1. Go to /my-services
  2. Select a Service
  3. Select on the left menu "Transactions"
  4. If there are transactions you should see button, click "Download CSV"
  5. Check the downloaded file, it should contain all the transaction seen.

Screenshots (views have been added/changed)

button
image
CSV file in excel
image
image
image

keyboard nav
image

…ons. The code has been migrated to Typescript and improved.

dates.ts is more stricter, safer (validation input, support data object, sensible defaults.

get-query-string-for-params.ts defined improve readability, brand get converted from string t array before hand stops repeated keys.
avoids treating pagination default 0 as missing

transaction-download.controller.ts explicit interfaces and types.
…e when there are no results. if there are more than 5000 results, the user needs to filter the results to download the transactions, the Download CSV will be disabled
…e when there are no results. if there are more than 5000 results, the user needs to filter the results to download the transactions, the Download CSV will be disabled
# Conflicts:
#	src/controllers/simplified-account/services/transactions/index.ts
…lass without a test.

There is some cross-test contamination with service.create-service.test.js "when creating a service should assign gateway account id of sandbox account to service if org type is central:
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.

2 participants