-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more configuration properties (#80)
This pull request introduces several changes to the `README.md` documentation and the Spring Boot auto-configuration for OpenFGA. The major changes include: - Extensive updates to the configuration properties. - Addition of telemetry configuration. - Improvements to the codebase structure. ## Description ### Documentation updates: - `README.md`: Reformatted the text for better readability and added a full example of the configuration in YAML format. Included detailed descriptions for each configuration property. - Reformatting and content updates for better readability and completeness. - Added a YAML configuration example and detailed property descriptions. ### Spring Boot auto-configuration improvements: - `OpenFgaAutoConfiguration.java`: Refactored to use `PropertyMapper` for mapping configuration properties to `ClientConfiguration`. Added support for new properties such as `userAgent`, `readTimeout`, `connectTimeout`, `maxRetries`, `minimumRetryDelay`, `defaultHeaders`, and `telemetryConfiguration`. - Improved property mapping using `PropertyMapper`. - Added new configuration properties. - `OpenFgaProperties.java`: Added new configuration properties for user agent, timeouts, retries, default headers, and telemetry configuration. - Added new configuration properties. - Updated property handling logic. ### Telemetry configuration: - `TelemetryAttribute.java`: Added an enum to represent telemetry attributes. - New enum for telemetry attributes. - `TelemetryMetric.java`: Added an enum to represent telemetry metrics. - New enum for telemetry metrics. ### Testing improvements: - `OpenFgaTest.java`: Removed public modifiers from test methods to adhere to JUnit 5 conventions. - Adhered to JUnit 5 conventions by removing public modifiers from test methods. ## References - #70 ## Review Checklist - [x] I have clicked on ["allow edits by maintainers"](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork). - [x] I have added documentation for new/changed functionality in this PR or in a PR to [openfga.dev](https://github.com/openfga/openfga.dev) [Provide a link to any relevant PRs in the references section above] - [x] The correct base branch is being used, if not `main` - [x] I have added tests to validate that the change in functionality is working as expected
- Loading branch information
Showing
17 changed files
with
1,217 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
services: | ||
openfga: | ||
image: openfga/openfga:latest | ||
command: run | ||
ports: | ||
- "4000:8080" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.