-
Notifications
You must be signed in to change notification settings - Fork 36
Add confidentiality agreement configuration to admin-api, expose with api/v1/frontend/configuration #1146
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
… api/v1/frontend/configuration
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.
Pull Request Overview
This PR adds confidentiality agreement configuration support to the admin-api, allowing users to configure and display a confidentiality agreement in the frontend. The implementation includes XML schema updates, entity classes, configuration service integration, and API endpoint exposure.
Key changes:
- Added confidentiality agreement XML schema and entity classes for configuration
- Extended API configuration service to handle confidentiality agreement settings
- Exposed confidentiality agreement configuration through the frontend API endpoint
Reviewed Changes
Copilot reviewed 32 out of 32 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
config.xsd | Added confidentiality-agreement XML schema definition |
CAEntity.java | New entity class for confidentiality agreement configuration |
ApiConfigurationService.java | Extended service interface to include confidentiality agreement methods |
ApiConfigurationServiceImpl.java | Added implementation for confidentiality agreement handling |
ApiConfigurator.java | Updated to configure confidentiality agreement from XML entity |
ConfidentialityAgreement.java | New API model class for confidentiality agreement |
GatewayConfiguration.java | Added confidentiality agreement field to gateway configuration |
FrontendResourceImpl.java | Updated to include confidentiality agreement in API response |
AdminApiEntity.java | Added confidentiality agreement field to admin API entity |
test-config.xml | Added test configuration for confidentiality agreement |
Various test files | Updated method calls to match refactored API |
OpenAPI schema files | Added confidentiality agreement schema definitions |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
@@ -0,0 +1,41 @@ | |||
package com.hivemq.api.model.components; |
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.
Missing file header comment with copyright notice. All other files in the project include the Apache 2.0 license header.
Copilot uses AI. Check for mistakes.
@@ -0,0 +1,11 @@ | |||
type: object | |||
description: A list of resources to render |
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 description 'A list of resources to render' is incorrect for a confidentiality agreement. This should describe what a confidentiality agreement is, not reference resources.
description: A list of resources to render | |
description: A confidentiality agreement is a legal document or statement that restricts the sharing of certain information. |
Copilot uses AI. Check for mistakes.
- items | ||
ConfidentialityAgreement: | ||
type: object | ||
description: A list of resources to render |
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 description 'A list of resources to render' is incorrect for a confidentiality agreement. This should describe what a confidentiality agreement is, not reference resources.
description: A list of resources to render | |
description: Represents a confidentiality agreement, including its text and whether it should be shown to users prior to login. |
Copilot uses AI. Check for mistakes.
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 left some comments. Overall, it looks good to me.
this.content = content; | ||
} | ||
|
||
public boolean getEnabled() { |
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.
isEnabled()?
@XmlElementWrapper(name = "users") | ||
@XmlElementRef(required = false) | ||
private @NotNull ApiJwsEntity jws = new ApiJwsEntity(); | ||
private @NotNull List<UserEntity> users; |
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.
Can be final?
@XmlElementRef(required = false, type = HttpListenerEntity.class), | ||
@XmlElementRef(required = false, type = HttpsListenerEntity.class)}) | ||
private @NotNull List<ApiListenerEntity> listeners = new ArrayList<>(); | ||
private @NotNull List<ApiListenerEntity> listeners; |
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.
Can be final?
private @JsonProperty("cloudLink") final @NotNull Link cloudLink; | ||
private @JsonProperty("gitHubLink") final @NotNull Link gitHubLink; | ||
private @JsonProperty("documentationLink") final @NotNull Link documentationLink; | ||
private @JsonProperty("ctas") |
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.
All private
can be after @JsonProperty
.
replaced by #1148 |
card: https://hivemq.kanbanize.com/ctrl_board/57/cards/35773/details/
with
the result is:
with config: