-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add multi-permits needed statistic #140
Conversation
89ff061
to
c8effd5
Compare
c8effd5
to
c98c1fc
Compare
c98c1fc
to
a9038af
Compare
a9038af
to
9c98f41
Compare
Release 0dd8819 deployed at https://pcns-dev-pr-140.apps.silver.devops.gov.bc.ca |
9c98f41
to
2e33fc4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have gone through the migration, but would like another dev to verify it as well.
frontend/src/components/housing/submission/SubmissionsNavigator.vue
Outdated
Show resolved
Hide resolved
frontend/src/components/housing/submission/SubmissionsNavigator.vue
Outdated
Show resolved
Hide resolved
2e33fc4
to
1bb5c2f
Compare
let multiPermitsNeededCount = 0; | ||
if (Array.isArray(permits.value)) { | ||
permits.value.forEach((permit) => { | ||
if (permit.activityId === sub.activityId && permit.needed?.toUpperCase() === BasicResponse.YES.toUpperCase()) { | ||
multiPermitsNeededCount++; | ||
} | ||
}); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be condensed
const multiPermitsNeededCount = permits.value.filter(
(x) => x.activityId === sub.activityId && x.needed?.toUpperCase() === BasicResponse.YES.toUpperCase()
).length;
2d4c176
to
556ae6e
Compare
1bb5c2f
to
1514d4a
Compare
556ae6e
to
cc2b596
Compare
1514d4a
to
d595f65
Compare
Description
PADS-252
Multi-permits needed (Multi-Authorization Project) stats obtained (Projects with more than one permit with needed set to Yes)
rbac migration updated with statistics db function changes
list permits endpoint updated to make activityId optional
stats tab updated, submission data-table updated to show multi-auth column
multiPermitsNeeded property added to submission frontend type (this makes it easier for datatable to grab the value, also makes it sortable)
Types of changes
New feature (non-breaking change which adds functionality)
Checklist
Further comments