-
-
Notifications
You must be signed in to change notification settings - Fork 595
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
Support customizable welcome message to display on login page #4131
Support customizable welcome message to display on login page #4131
Conversation
2f6516f
to
f91c8b5
Compare
Added new configProperty return and new configProperty Signed-off-by: Thomas Schauer-Köckeis <thomas.schauer-koeckeis@rohde-schwarz.com>
f91c8b5
to
4a1ebc3
Compare
Signed-off-by: Thomas Schauer-Köckeis <thomas.schauer-koeckeis@rohde-schwarz.com>
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more |
src/main/java/org/dependencytrack/model/ConfigPropertyConstants.java
Outdated
Show resolved
Hide resolved
src/main/java/org/dependencytrack/resources/v1/ConfigPropertyResource.java
Outdated
Show resolved
Hide resolved
that only return if the prop is marked public Signed-off-by: Thomas Schauer-Köckeis <thomas.schauer-koeckeis@rohde-schwarz.com>
src/main/java/org/dependencytrack/resources/v1/ConfigPropertyResource.java
Outdated
Show resolved
Hide resolved
src/test/java/org/dependencytrack/resources/v1/ConfigPropertyResourceTest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Thomas Schauer-Köckeis <thomas.schauer-koeckeis@rohde-schwarz.com>
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!
Description
Adds an API Endpoint, open to anyone, that only can return the custom welcome message given by admins.
Adds 2 ConfigProperties to store the message and if it should be shown.
Addressed Issue
Fixes #863
Additional Details
Checklist
- [ ] This PR fixes a defect, and I have provided tests to verify that the fix is effective- [ ] This PR introduces changes to the database model, and I have added corresponding update logic- [ ] This PR introduces new or alters existing behavior, and I have updated the documentation accordingly