-
Notifications
You must be signed in to change notification settings - Fork 14
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
#1790 - Enable Applications Tab for Public Institution User #1903
Conversation
...student/_tests_/e2e/student.institutions.controller.getStudentApplicationSummary.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...student/_tests_/e2e/student.institutions.controller.getStudentApplicationSummary.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...student/_tests_/e2e/student.institutions.controller.getStudentApplicationSummary.e2e-spec.ts
Outdated
Show resolved
Hide resolved
sources/packages/web/src/views/student/StudentApplicationSummary.vue
Outdated
Show resolved
Hide resolved
sources/packages/web/src/components/common/students/StudentApplications.vue
Outdated
Show resolved
Hide resolved
...student/_tests_/e2e/student.institutions.controller.getStudentApplicationSummary.e2e-spec.ts
Show resolved
Hide resolved
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.
Nice work, please take a look at the comments.
sources/packages/web/src/views/student/StudentApplicationSummary.vue
Outdated
Show resolved
Hide resolved
@@ -21,7 +21,7 @@ export default defineComponent({ | |||
required: true, | |||
}, | |||
}, | |||
setup(props: any) { | |||
setup(props) { |
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.
👍
sources/packages/backend/apps/api/src/services/application/application.service.ts
Show resolved
Hide resolved
}); | ||
|
||
it("Should get an empty array as application summary when student has a submitted application in a different location.", async () => { | ||
// Arrange |
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.
https://github.com/bcgov/SIMS/pull/1903/files#r1178370671
Test scenario can be removed.
Nice work with applications tab @ann-aot 👍. Please have look at the comments. |
|
||
it( | ||
`Should get all the two student application details in ${FieldSortOrder.DESC} order of application number ` + | ||
"as summary when student has two submitted/Inprogress application for the institution (application with location id saved) " + |
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.
Just a suggestion, I would not mind omitting the explanation about "(application with location id saved)", that said I do support the long text description 😉
@@ -157,6 +155,21 @@ export default defineComponent({ | |||
type: Number, | |||
required: false, | |||
}, | |||
enableViewApplicationBtn: { |
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.
For properties in general I would avoid adding the component type and use an abbreviation like btn or similar.
IMO these three properties could be named as.
enableViewApplication
allowManageApplication
displayApplicationName
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.
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.
LGTM, nice work @ann-aot
@@ -608,6 +611,17 @@ export class ApplicationService extends RecordDataModelService<Application> { | |||
.andWhere("application.applicationStatus != :overwrittenStatus", { |
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 know this is not part of your PR, but can we change the leftJoin on the currentAssessment and offering to innerJoin?
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.
As the services is used across client types, the left join actually make sense
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.
To be clear, the method is supposed to return all applications, even draft ones, unless I am missing something. It is not about bing used across different clients it is about what it needs to return.
@@ -24,7 +25,7 @@ | |||
import { ref, defineComponent } from "vue"; | |||
import StartApplication from "@/views/student/financial-aid-application/Applications.vue"; | |||
import { ApplicationStatus } from "@/types"; | |||
import StudentApplications from "@/components/aest/StudentApplications.vue"; | |||
import StudentApplications from "@/components/common/students/StudentApplications.vue"; |
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.
👍
*/ | ||
export const DEFAULT_PAGE_LIMIT = 10; |
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.
Nice cleanup 😉
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.
Just minor comments.
Thanks for making the changes. Added some clarifications and one more comment. |
app = nestApplication; | ||
appDataSource = dataSource; | ||
// College F. | ||
const { institution } = await getAuthRelatedEntities( |
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.
Minor: if you do:
const { institution: collegeF } = await getAuthRelatedEntities(
appDataSource,
InstitutionTokenTypes.CollegeFUser,
);
then you won't need line 41.
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.
LGTM!
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.
Thanks for doing the changes, looks good 👍
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.
Thanks for making the changes @ann-aot 👍LGTM.
Kudos, SonarCloud Quality Gate passed!
|
Screenshots: