-
-
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 assigning of teams for portfolio ACL when creating a project #4093
Support assigning of teams for portfolio ACL when creating a project #4093
Conversation
src/main/java/org/dependencytrack/resources/v1/TeamResource.java
Outdated
Show resolved
Hide resolved
src/main/java/org/dependencytrack/resources/v1/TeamResource.java
Outdated
Show resolved
Hide resolved
a9f950f
to
12c72d4
Compare
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/resources/v1/TeamResource.java
Outdated
Show resolved
Hide resolved
7ffc4ee
to
fc26e7a
Compare
fc26e7a
to
7ce8e04
Compare
…Team is given to the project Signed-off-by: Thomas Schauer-Koeckeis <[email protected]>
Signed-off-by: Thomas Schauer-Koeckeis <[email protected]>
Signed-off-by: Thomas Schauer-Koeckeis <[email protected]>
Signed-off-by: Thomas Schauer-Koeckeis <[email protected]>
Signed-off-by: Thomas Schauer-Koeckeis <[email protected]>
Signed-off-by: Thomas Schauer-Koeckeis <[email protected]>
Signed-off-by: Thomas Schauer-Koeckeis <[email protected]>
Signed-off-by: Thomas Schauer-Koeckeis <[email protected]>
Signed-off-by: Thomas Schauer-Koeckeis <[email protected]>
Signed-off-by: Thomas Schauer-Köckeis <[email protected]>
Signed-off-by: Thomas Schauer-Köckeis <[email protected]>
…-create-proect-button
@nscuro Is there a chance that will get into 4.12, we would love to use it. |
src/test/java/org/dependencytrack/resources/v1/ProjectResourceTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/dependencytrack/resources/v1/ProjectResourceTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/dependencytrack/resources/v1/ProjectResourceTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/dependencytrack/resources/v1/ProjectResourceTest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/dependencytrack/resources/v1/ProjectResource.java
Outdated
Show resolved
Hide resolved
src/main/java/org/dependencytrack/resources/v1/TeamResource.java
Outdated
Show resolved
Hide resolved
src/main/java/org/dependencytrack/resources/v1/TeamResource.java
Outdated
Show resolved
Hide resolved
…-create-proect-button
…-create-proect-button
Signed-off-by: Thomas Schauer-Köckeis <[email protected]>
…hub.com:Gepardgame/dependency-track into feat/add-team-selection-in-create-proect-button
tests Signed-off-by: Thomas Schauer-Köckeis <[email protected]>
…-create-proect-button
With DependencyTrack#4093, the `accessTeams` field became a required request parameter if portfolio ACL is enabled. While it does make sense to enforce team assignment, it is a breaking change in the REST API and as such cannot be done in a minor version release. Make `accessTeams` optional. Also: * Enable `accessTeams` to be specified by `name`, not only by `uuid` * Document this feature in the OpenAPI spec * Reduce nesting in the `ProjectResource#createProject` method * Enhance tests to be more explicit and assert response content Signed-off-by: nscuro <[email protected]>
Description
Adds a option to the Create Project dialog to add a team
Added API endpoint to get available Teams. Also needed to create two new classes, for returning.
Altered create Project API Point, to be able to also add a initial Team to the project.
Addressed Issue
Fixes #4092
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