Skip to content

Commit

Permalink
Programming exercises: Fix an issue with the access log in exam exerc…
Browse files Browse the repository at this point in the history
…ises (#9872)
  • Loading branch information
SimonEntholzer authored Nov 26, 2024
1 parent e8ecd40 commit 1539df5
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions src/main/webapp/app/exam/manage/exam-management.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ import { RepositoryViewComponent } from 'app/localvc/repository-view/repository-
import { LocalVCGuard } from 'app/localvc/localvc-guard.service';
import { CommitHistoryComponent } from 'app/localvc/commit-history/commit-history.component';
import { CommitDetailsViewComponent } from 'app/localvc/commit-details-view/commit-details-view.component';
import { VcsRepositoryAccessLogViewComponent } from 'app/localvc/vcs-repository-access-log-view/vcs-repository-access-log-view.component';

export const examManagementRoute: Routes = [
{
Expand Down Expand Up @@ -652,6 +653,30 @@ export const examManagementRoute: Routes = [
},
canActivate: [UserRouteAccessService, LocalVCGuard],
},
{
path: ':examId/exercise-groups/:exerciseGroupId/programming-exercises/:exerciseId/repository/:repositoryType/vcs-access-log',
component: VcsRepositoryAccessLogViewComponent,
data: {
authorities: [Authority.ADMIN, Authority.INSTRUCTOR],
pageTitle: 'artemisApp.repository.title',
flushRepositoryCacheAfter: 900000, // 15 min
participationCache: {},
repositoryCache: {},
},
canActivate: [UserRouteAccessService, LocalVCGuard],
},
{
path: ':examId/exercise-groups/:exerciseGroupId/programming-exercises/:exerciseId/repository/:repositoryType/repo/:repositoryId',
component: RepositoryViewComponent,
data: {
authorities: [Authority.ADMIN, Authority.INSTRUCTOR, Authority.EDITOR, Authority.TA],
pageTitle: 'artemisApp.repository.title',
flushRepositoryCacheAfter: 900000, // 15 min
participationCache: {},
repositoryCache: {},
},
canActivate: [UserRouteAccessService, LocalVCGuard],
},
{
path: ':examId/exercise-groups/:exerciseGroupId/programming-exercises/:exerciseId/repository/:repositoryType/commit-history',
component: CommitHistoryComponent,
Expand Down Expand Up @@ -688,6 +713,18 @@ export const examManagementRoute: Routes = [
},
canActivate: [UserRouteAccessService, LocalVCGuard],
},
{
path: ':examId/exercise-groups/:exerciseGroupId/programming-exercises/:exerciseId/participations/:participationId/repository/vcs-access-log',
component: VcsRepositoryAccessLogViewComponent,
data: {
authorities: [Authority.ADMIN, Authority.INSTRUCTOR],
pageTitle: 'artemisApp.repository.title',
flushRepositoryCacheAfter: 900000, // 15 min
participationCache: {},
repositoryCache: {},
},
canActivate: [UserRouteAccessService, LocalVCGuard],
},
{
path: ':examId/exercise-groups/:exerciseGroupId/programming-exercises/:exerciseId/participations/:participationId/repository/commit-history',
component: CommitHistoryComponent,
Expand Down

0 comments on commit 1539df5

Please sign in to comment.