-
Notifications
You must be signed in to change notification settings - Fork 321
Development
: Allow disabling lecture module in server and client
#10652
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
…ead of generic "PROFILE_CORE"
End-to-End (E2E) Test Results Summary
|
End-to-End (E2E) Test Results Summary
|
End-to-End (E2E) Test Results Summary
|
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.
see my inline comments
|
||
/** | ||
* Condition to check if the Lecture module is enabled. | ||
* Based on this condition, Spring components concerning atlas functionality can be enabled or disabled. |
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.
* Based on this condition, Spring components concerning atlas functionality can be enabled or disabled. | |
* Based on this condition, Spring components concerning lecture functionality can be enabled or disabled. |
<span class="d-none d-xl-inline" jhiTranslate="entity.action.lecture"></span> | ||
</a> | ||
<jhi-feature-overlay [enabled]="lectureEnabled"> | ||
<a |
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.
i think this is inconsistent now. We hide it in the sidebar, but it's greyed out on the course card.
@@ -13,10 +13,12 @@ | |||
<span class="tab-link-text" jhiTranslate="artemisApp.courseOverview.menu.exercises"></span> | |||
</a> | |||
@if (course.isAtLeastEditor) { | |||
<a class="tab-link" [routerLink]="['/course-management', course.id, 'lectures']" id="lectures" routerLinkActive="active"> | |||
<fa-icon [icon]="faFilePdf" /> | |||
<span class="tab-link-text" jhiTranslate="artemisApp.courseOverview.menu.lectures"></span> |
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.
this component is unused afaik
End-to-End (E2E) Test Results Summary
|
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
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 server does now start locally with artemis.lecture.enabled:false
Add Lecture
should not be displayed (or enabled)

-
Also, shouldn't we disable the lecture related routes in the client?
If I press on theAdd Lecture
button in the quick actions I am forwarded to the page http://localhost:9000/course-management/21/lectures/new - I would have expected that the router returns a page not found. -
There are errors thrown in the competency section when adding / editing new competencies, this should not be the case
http://localhost:9000/course-management/21/competency-management/1/edit
Request URL:
http://localhost:9000/api/lecture/courses/21/lectures?withLectureUnits=1
Request Method:
GET
Status Code:
Screen.Recording.2025-05-08.at.12.05.37.mov
End-to-End (E2E) Test Results Summary
|
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.
There hasn't been any activity on this pull request recently. Therefore, this pull request has been automatically marked as stale and will be closed if no further activity occurs within seven days. Thank you for your contributions. |
@ole-ve please finish this PR asap |
There hasn't been any activity on this pull request recently. Therefore, this pull request has been automatically marked as stale and will be closed if no further activity occurs within seven days. Thank you for your contributions. |
Checklist
General
Server
Client
authorities
to all new routes and checked the course groups for displaying navigation elements (links, buttons).Motivation and Context
In particular for local development, we want to allow disabling certain modules like the lecture module in this PR.
Description
Make Spring components in the lecture-module be autowired based on the value of a custom property, instead of the generic
PROFILE_CORE
.This also includes client changes to reflect this.
Disclaimer
: Because this is mainly intended to be used for local development, there might be edge cases that cause issues.Steps for Testing
Note
: Needs local testing.artemis.lecture.enabled=false
in yourapplication-local.yml
Testserver States
You can manage test servers using Helios. Check environment statuses in the environment list. To deploy to a test server, go to the CI/CD page, find your PR or branch, and trigger the deployment.
Review Progress
Code Review
Manual Tests
Screenshots
S1: Management Course Card View

S2: Management Tab Card View

Summary by CodeRabbit