Skip to content

23620 - Add in year filter #3162

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

Merged
merged 3 commits into from
Nov 29, 2024
Merged

23620 - Add in year filter #3162

merged 3 commits into from
Nov 29, 2024

Conversation

seeker25
Copy link
Collaborator

Issue #:
bcgov/entity#23620

Description of changes:
Add in yearly filter for transactions, should smooth out the load on pay-api for the large transaction screen as well as the smaller client ones.

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 seeker25 marked this pull request as draft November 29, 2024 04:44
@seeker25
Copy link
Collaborator Author

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://bcregistry-account-dev--pr-3162-tcls9493.web.app

transactions.filters.filterPayload = { dateFilter: { startDate: '', endDate: '' } }
transactions.filters.isActive = false
transactions.filters.pageNumber = 1
loadTransactionList()
if (!skipLoadTransactions) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fix double load issue

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://bcregistry-account-dev--pr-3162-tcls9493.web.app

@@ -4,6 +4,8 @@
v-show="showDatePicker"
ref="datePicker"
:reset="dateRangeReset"
:setStartDate="transactions.filters.filterPayload.dateFilter.startDate"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

only gets set once

@seeker25 seeker25 marked this pull request as ready for review November 29, 2024 04:50
@@ -73,7 +75,7 @@
filled
hide-details
:placeholder="'Date'"
:value="dateRangeSelected ? 'Custom' : ''"
:value="dateRangeSelected ? 'Custom' : '1 Year'"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Custom disappears with clear (no text), also shows up after you click a date

@seeker25 seeker25 merged commit ccec010 into bcgov:main Nov 29, 2024
10 of 11 checks passed
transactions.filters.filterPayload = {
dateFilter: {
startDate: moment().subtract(1, 'year').format('YYYY-MM-DD'),
endDate: moment().add(1, 'day').format('YYYY-MM-DD')
Copy link
Collaborator Author

@seeker25 seeker25 Nov 29, 2024

Choose a reason for hiding this comment

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

Just in case it sits for a bit and rolls over midnight somehow (EG. Leaving auth-web open for hours then using it) - I guess I could have used a massive date

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