-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into BC-8106-teacher-discoverability
- Loading branch information
Showing
92 changed files
with
763 additions
and
558 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
...ization/api/authorization-reference.uc.ts → ...ference/api/authorization-reference.uc.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tion/api/dto/authorization-body.params.ts → ...ence/api/dto/authorization-body.params.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
apps/server/src/modules/authorization-reference/authorization-reference.config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { LoggerConfig } from '@src/core/logger'; | ||
|
||
export interface AuthorizationReferenceConfig extends LoggerConfig {} |
24 changes: 5 additions & 19 deletions
24
...ization/authorization-reference.module.ts → ...ference/authorization-reference.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 6 additions & 3 deletions
9
...ervice/authorization-reference.service.ts → ...domain/authorization-reference.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
apps/server/src/modules/authorization-reference/domain/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './authorization-reference.service'; | ||
export * from './reference.loader'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export { AuthorizationReferenceModule } from './authorization-reference.module'; | ||
export { AuthorizationReferenceApiModule } from './authorization-reference.api.module'; | ||
export { AuthorizationReferenceService } from './domain/authorization-reference.service'; |
2 changes: 2 additions & 0 deletions
2
apps/server/src/modules/authorization-rules/authorization-rules.config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
export interface AuthorizationRulesConfig {} |
43 changes: 43 additions & 0 deletions
43
apps/server/src/modules/authorization-rules/authorization-rules.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { Module } from '@nestjs/common'; | ||
import { AuthorizationModule } from '@modules/authorization'; | ||
import { | ||
CourseGroupRule, | ||
CourseRule, | ||
GroupRule, | ||
InstanceRule, | ||
LegacySchoolRule, | ||
LessonRule, | ||
SchoolRule, | ||
SchoolSystemOptionsRule, | ||
SubmissionRule, | ||
TaskRule, | ||
TeamRule, | ||
UserLoginMigrationRule, | ||
UserRule, | ||
SystemRule, | ||
} from './rules'; | ||
|
||
@Module({ | ||
imports: [AuthorizationModule], | ||
providers: [ | ||
// rules | ||
CourseGroupRule, | ||
CourseRule, | ||
GroupRule, | ||
LessonRule, | ||
SchoolRule, | ||
SubmissionRule, | ||
TaskRule, | ||
TeamRule, | ||
UserRule, | ||
UserLoginMigrationRule, | ||
LegacySchoolRule, | ||
SystemRule, | ||
SchoolSystemOptionsRule, | ||
InstanceRule, | ||
], | ||
exports: [ | ||
SystemRule, // Why export? This is a no go! | ||
], | ||
}) | ||
export class AuthorizationRulesModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { AuthorizationRulesModule } from './authorization-rules.module'; | ||
export { SystemRule } from './rules/system.rule'; |
Oops, something went wrong.