-
Notifications
You must be signed in to change notification settings - Fork 13
#1953 - Request an Offering Change - Part 2 #2013
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
Conversation
.../src/route-controllers/institution-locations/institution-location.institutions.controller.ts
Outdated
Show resolved
Hide resolved
.../src/route-controllers/institution-locations/institution-location.institutions.controller.ts
Outdated
Show resolved
Hide resolved
.../src/route-controllers/institution-locations/institution-location.institutions.controller.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/apps/api/src/services/application/application.service.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/apps/api/src/services/application/application.service.ts
Show resolved
Hide resolved
...apps/db-migrations/src/sql/Types/Add-application-offering-change-assessment-trigger-type.sql
Outdated
Show resolved
Hide resolved
andrewsignori-aot
left a comment
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.
Great work, please take a look at the comments.
.../src/route-controllers/institution-locations/institution-location.institutions.controller.ts
Outdated
Show resolved
Hide resolved
| @Get(":locationId/active-applications/request-change") | ||
| async getEligibleApplicationOfferingChangeRecords( | ||
| @Param("locationId", ParseIntPipe) locationId: number, | ||
| @Query() pagination: ApplicationStatusPaginationOptionsAPIInDTO, |
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.
May be or may not be part of the PR. ApplicationStatusPaginationOptionsAPIInDTO the DTO name and it's extended purpose aren't matching.
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.
That makes sense, As mentioned in the description, I have reused the DTO. If devs are fine with the approach, I will rename the dto
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 would not mind keeping these DTOs specific for the target endpoint.
@ann-aot just double-checking, the idea would be to reuse the same pagination DTO for multiple endpoints?
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.
the extended pagination dto

as its the same @andrewsignori-aot
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 mentioned, created a separate one for the endpoint
| }) | ||
| .andWhere("application.isArchived = false"); | ||
|
|
||
| if (paginationOptions.searchCriteria) { |
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.
if(paginationOptions.searchCriteria?.trim()) ? If search criteria becomes nothing after trim, we can avoid upfront.
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.
we have been using trim() inside the query search for all the pagination, that's the reason I was also following the same. let me know the way devs prefer @andrewsignori-aot @guru-aot @andrepestana-aot. open for suggestion
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 agree with @dheepak-aot. There is no need to append the query with the searchCriteria if it is a bunch of white spaces and line terminator characters.
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.
so, we will need a ticket to update all the pagination query
...ation-offering-change-request/application-offering-change-request.institutions.controller.ts
Outdated
Show resolved
Hide resolved
.../services/application-offering-change-request/application-offering-change-request.service.ts
Outdated
Show resolved
Hide resolved
...ation-offering-change-request/application-offering-change-request.institutions.controller.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/apps/api/src/route-controllers/models/pagination.dto.ts
Show resolved
Hide resolved
dheepak-aot
left a comment
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 👍
andrepestana-aot
left a comment
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 the changes and explanations. Looks good to me!
| @@ -0,0 +1,35 @@ | |||
| import { PaginationOptions } from "../types"; | |||
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.
Please change to import from the index "@/types".
Same for the ApiClient.
|
Kudos, SonarCloud Quality Gate passed!
|
andrewsignori-aot
left a comment
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, its look good 👍
guru-aot
left a comment
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








@leftjointo join theapplication.applicationOfferingChangeRequestandapplicationOfferingChangeRequestas there will always be one in-progress item for an application at a time.ApplicationStatusPaginationOptionsAPIInDTOused by theactive applicationas it was exactly the same. let me know your thoughts.application-offering-change-assessment-trigger-typesand to addapplication-offering-change-to-assessmentfor theStudentAssessmentstable.v-data table-serverduring the search. When we search for something on any other page other than the first one, there was an unexpected behavior - resolvedScreenshots




Next PRs