-
Notifications
You must be signed in to change notification settings - Fork 297
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
Exam mode
: Fix navigation when clicking open repository
#8898
Conversation
WalkthroughThe changes enhance the routing system of the web application by integrating additional routes for repository views and participation in exercises across courses and exams. This involves introducing new components like Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant AppRoutingModule
participant RepositoryViewComponent
participant CommitHistoryComponent
participant CommitDetailsViewComponent
participant UserRouteAccessService
participant LocalVCGuard
User ->> AppRoutingModule: Access Repository View URL
AppRoutingModule ->> UserRouteAccessService: Check User Access
UserRouteAccessService -->> AppRoutingModule: Access Granted
AppRoutingModule ->> RepositoryViewComponent: Load Repository View
RepositoryViewComponent ->> LocalVCGuard: Check Local VC Guard
LocalVCGuard -->> RepositoryViewComponent: Guard Passed
RepositoryViewComponent -->> User: Display Repository View
User ->> AppRoutingModule: Access Commit History URL
AppRoutingModule ->> UserRouteAccessService: Check User Access
UserRouteAccessService -->> AppRoutingModule: Access Granted
AppRoutingModule ->> CommitHistoryComponent: Load Commit History
CommitHistoryComponent ->> LocalVCGuard: Check Local VC Guard
LocalVCGuard -->> CommitHistoryComponent: Guard Passed
CommitHistoryComponent -->> User: Display Commit History
User ->> AppRoutingModule: Access Commit Details URL
AppRoutingModule ->> UserRouteAccessService: Check User Access
UserRouteAccessService -->> AppRoutingModule: Access Granted
AppRoutingModule ->> CommitDetailsViewComponent: Load Commit Details
CommitDetailsViewComponent ->> LocalVCGuard: Check Local VC Guard
LocalVCGuard -->> CommitDetailsViewComponent: Guard Passed
CommitDetailsViewComponent -->> User: Display Commit Details
sequenceDiagram
participant User
participant AppRoutingModule
participant ArtemisProgrammingRepositoryRoutingModule
User ->> AppRoutingModule: Access Programming Repository URL
AppRoutingModule ->> ArtemisProgrammingRepositoryRoutingModule: Load Programming Repository Module
ArtemisProgrammingRepositoryRoutingModule -->> User: Display Programming Repository Interfaces
Recent review detailsConfiguration used: .coderabbit.yaml Files selected for processing (1)
Additional context usedPath-based instructions (1)
Additional comments not posted (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 2
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 fixing this. Tested on TS1; works as expected 👍
Exam Mode
: Adapt routing for open repository button Exam mode
: Fix routing for open repository button
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.
Approve code, thanks for removing the outdated routing code :)
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.
Code LGTM
Exam mode
: Fix routing for open repository button Exam mode
: Fix navigation when clicking open repository
Exam mode
: Fix navigation when clicking open repository Exam mode
: Fix navigation when clicking open repository
Checklist
General
Client
authorities
to all new routes and checked the course groups for displaying navigation elements (links, buttons).Motivation and Context
#8878
Description
When clicking on "Open Repository", "Open Commit History" or a Commit Hash the user was redirected to the exam overview page.
Steps for Testing
Prerequisites:
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.
Review Progress
Performance Review
Code Review
Manual Tests
Exam Mode Test
Screenshots
https://github.com/ls1intum/Artemis/assets/75392103/63d99ccd-4565-4f0f-97d0-038f17d62d14
Summary by CodeRabbit
New Features
Removals
RepositoryViewComponent
,CommitHistoryComponent
, andCommitDetailsViewComponent
from exam participation routes.