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

24811 - Remove transaction counts from transaction table #3178

Merged
merged 4 commits into from
Dec 16, 2024

Conversation

seeker25
Copy link
Collaborator

@seeker25 seeker25 commented Dec 13, 2024

Relies on PAY-API:
bcgov/sbc-pay#1861

Issue #:
bcgov/entity#24811

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the sbc-auth license (Apache 2.0).

@seeker25
Copy link
Collaborator Author

/gcbrun

@@ -74,8 +74,7 @@ export const useTransactions = () => {
currentOrganization.value.id, transactions.filters, viewAll.value)
if (response?.data) {
transactions.results = response.data.items || []
transactions.totalResults = response.data.total

transactions.totalResults = transactions.results.length * response.data.page + (response.data.hasMore ? 1 : 0)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This controls the next page button

@@ -122,7 +122,7 @@ export default class PaymentService {
if (viewAll) params.append('viewAll', `${viewAll}`)

const url = `${ConfigHelper.getPayAPIURL()}/accounts/${accountId}/payments/queries`
return axios.post(url, filterParams.filterPayload, { params })
return axios.post(url, { ...filterParams.filterPayload, excludeCounts: true }, { params })
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

always using this param

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://bcregistry-account-dev--pr-3178-mhfsvf2l.web.app

@seeker25 seeker25 merged commit ab84a09 into bcgov:main Dec 16, 2024
10 of 12 checks passed
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