-
Notifications
You must be signed in to change notification settings - Fork 13
#4726 - Institution based BETA - Backend #5213
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
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.
Pull Request Overview
This PR implements institution-based BETA functionality for the backend system, allowing the restriction of full-time application submissions to designated beta institutions only when the feature flag is enabled.
- Adds a new database column
is_beta_institutionto track beta institution status - Implements validation logic to restrict full-time applications to beta institutions when the feature flag is active
- Updates APIs to filter institution options based on beta status for full-time offerings
Reviewed Changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| sources/packages/backend/libs/sims-db/src/entities/institution-location.model.ts | Adds isBetaInstitution boolean column to the InstitutionLocation entity |
| sources/packages/backend/apps/db-migrations/src/migrations/1758903872348-InstitutionLocationsAddColIsBetaInstitution.ts | Database migration to add the beta institution column |
| sources/packages/backend/libs/utilities/src/config/config.service.ts | Adds configuration property for the beta institutions feature flag |
| sources/packages/backend/apps/api/src/services/application/application.service.ts | Implements validation logic to restrict applications to beta institutions |
| sources/packages/backend/apps/api/src/route-controllers/institution-locations/institution-location.students.controller.ts | Updates options API to filter beta institutions based on offering intensity |
| sources/packages/backend/apps/api/src/services/institution-location/institution-location.service.ts | Adds beta institution filtering to designated locations query |
| Multiple deployment files | Adds ALLOW_BETA_INSTITUTIONS_ONLY environment variable configuration |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
.../packages/backend/apps/api/src/services/institution-location/institution-location.service.ts
Show resolved
Hide resolved
| @Query("offeringIntensity", new ParseEnumQueryPipe(OfferingIntensity)) | ||
| offeringIntensity?: OfferingIntensity, |
Copilot
AI
Sep 26, 2025
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 new query parameter offeringIntensity lacks API documentation. Consider adding OpenAPI decorators like @ApiQuery() to document this optional parameter, its purpose, and possible values for API consumers.
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, looks good 👍
|
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.
Reviewed after column renamed to is_beta, looks good 👍



DB Migration
is_betato the tablesims.institution_locationsto identify the beta institutions.Rollback evidence
API
offeringIntensityto limit the results to beta institutions forfull-timeif the beta institutions flag is enabled.full-timeif the beta institutions flag is enabled.New environment variable
ALLOW_BETA_INSTITUTIONS_ONLYis added to the code and also to github variables inDEV.