-
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
#2116 - Request an Offering Change - Submit/View UI - Validations #2149
Conversation
...ation-offering-change-request/application-offering-change-request.institutions.controller.ts
Show resolved
Hide resolved
...ation-offering-change-request/application-offering-change-request.institutions.controller.ts
Show resolved
Hide resolved
/** | ||
* Offering does not belong to the location. | ||
*/ | ||
export const OFFERING_DOES_NOT_BELONG_TO_LOCATION = |
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.
Suggestion: on the same context OFFERING_LOCATION_MISMATCH
?
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.
IMO @dheepak-aot MISMATCH
is when there is a direct comparison between two values. So, keeping as it is
sources/packages/backend/apps/api/src/services/application/application.service.ts
Outdated
Show resolved
Hide resolved
selectedOffering: number, | ||
locationId: number, | ||
options?: { | ||
isPir: boolean; |
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.
isPIR
?
sources/packages/backend/apps/api/src/services/application/application.service.ts
Outdated
Show resolved
Hide resolved
const offering = await this.offeringService.getOfferingLocationId( | ||
selectedOffering, | ||
); | ||
if (offering?.institutionLocation.id !== locationId) { |
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 we should check if offering exist before doing this validation? Because if the offeringId is not a valid one offering not found
would be more accurate
} | ||
|
||
/** | ||
* Set of validations for existing application and newly |
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 thought. As this class(ApplicationService) is having more than 1500 lines of code already, should we consider creating a service like ApplicationOfferingService
and move this method there?
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 also had similar thought when I was doing this, but this validation is not specific to Application Offering change request
, so I thought its better to do it in application.service
@@ -0,0 +1,20 @@ | |||
<template> |
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 file path has request-a-change.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.
Thanks @dheepak-aot . Nice catch
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.
@@ -72,13 +37,37 @@ export default defineComponent({ | |||
}, | |||
setup(props) { | |||
const { getLocationName } = useInstitutionState(); | |||
const tab = ref(ActiveRequestAChangeTab.AvailableToChangeTab); | |||
const tabItems = ref([ |
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 to see the tabs implemented as routes 👍
.../src/views/institution/locations/request-a-change/request-a-change.vue/AvailableToChange.vue
Outdated
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.
Great work and thanks for taking this forward. Please tale a look at the comments. There is one or another that maybe I am missing something and just need some clarification.
...i/src/route-controllers/program-info-request/program-info-request.institutions.controller.ts
Outdated
Show resolved
Hide resolved
...ckend/apps/api/src/services/education-program-offering/education-program-offering.service.ts
Outdated
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.
Thanks for doing the changes. Minor comments left only.
Kudos, SonarCloud Quality Gate passed!
|
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, look 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.
LGTM, nice work @ann-aot
Thanks for doing the changes, Just one minor comment #2149 (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 👍Thanks for explaining the comment #2149 (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.
Thank You for doing the changes. Nice work 👍
getApplicationInfo
was retrieving assessment details with respect to student assessment in the application and then it was filtering, it is now taking from the current assessment.sources/packages/web/src/components/generic/Banner.vue
removedvalidator
from propertytype
and added type withPropType
as there were some vue warnings in the console.Screenshots





Next PR