Skip to content
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

#1786 - Enable Search Student for Institutions part 2 #1887

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import {
EducationProgramOfferingService,
StudentService,
EducationProgramOfferingValidationService,
InstitutionLocationService,
DesignationAgreementLocationService,
} from "./services";
import {
DisbursementOverawardService,
Expand Down Expand Up @@ -48,6 +50,8 @@ import { AuthModule } from "./auth/auth.module";
StudentRestrictionSharedService,
DisbursementOverawardService,
NoteSharedService,
InstitutionLocationService,
DesignationAgreementLocationService,
],
})
export class AppSupportingUsersModule {}
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,7 @@ export const DUPLICATE_INSTITUTION_LOCATION_CODE =
* Duplicate SABC code for the institution.
*/
export const DUPLICATE_SABC_CODE = "DUPLICATE_SABC_CODE";
/**
* Institution location not valid.
*/
export const INSTITUTION_LOCATION_NOT_VALID = "INSTITUTION_LOCATION_NOT_VALID";
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ import { AuthorizedParties } from "../../auth/authorized-parties.enum";
import { ApiProcessError, ClientTypeBaseRoute } from "../../types";
import { getPIRDeniedReason, PIR_OR_DATE_OVERLAP_ERROR } from "../../utilities";
import {
INSTITUTION_LOCATION_NOT_VALID,
INVALID_APPLICATION_NUMBER,
OFFERING_NOT_VALID,
} from "../../constants";
Expand Down Expand Up @@ -154,7 +155,7 @@ export class ApplicationStudentsController extends BaseController {
"Selected offering id is invalid or " +
"invalid study dates or selected study start date is not within the program year" +
"or APPLICATION_NOT_VALID or INVALID_OPERATION_IN_THE_CURRENT_STATUS or ASSESSMENT_INVALID_OPERATION_IN_THE_CURRENT_STATE " +
"or OFFERING_NOT_VALID.",
"or INSTITUTION_LOCATION_NOT_VALID or OFFERING_NOT_VALID.",
})
@ApiBadRequestResponse({ description: "Form validation failed." })
@ApiNotFoundResponse({ description: "Application not found." })
Expand Down Expand Up @@ -246,6 +247,7 @@ export class ApplicationStudentsController extends BaseController {
case APPLICATION_NOT_VALID:
case INVALID_OPERATION_IN_THE_CURRENT_STATUS:
case PIR_OR_DATE_OVERLAP_ERROR:
case INSTITUTION_LOCATION_NOT_VALID:
case OFFERING_NOT_VALID:
throw new UnprocessableEntityException(
new ApiProcessError(error.message, error.name),
Expand Down
Loading