Skip to content
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

[#6499] improvement(server): Support custom configuration options in the REST API /configs #6501

Merged
merged 2 commits into from
Feb 26, 2025

Conversation

jerqi
Copy link
Contributor

@jerqi jerqi commented Feb 24, 2025

What changes were proposed in this pull request?

Support custom configuration options in the REST API /configs

Why are the changes needed?

Fix: #6499

Does this PR introduce any user-facing change?

Yes. I added the document.

How was this patch tested?

Add a UT.

@jerqi jerqi marked this pull request as draft February 24, 2025 06:49
@jerqi jerqi marked this pull request as ready for review February 24, 2025 06:54
@jerqi jerqi self-assigned this Feb 24, 2025
@@ -37,6 +37,7 @@ The `gravitino.conf` file lists the configuration items in the following table.
| `gravitino.server.shutdown.timeout` | Time in milliseconds to gracefully shut down of the Gravitino webserver. | `3000` | No | 0.2.0 |
| `gravitino.server.webserver.customFilters` | Comma-separated list of filter class names to apply to the API. | (none) | No | 0.4.0 |
| `gravitino.server.rest.extensionPackages` | Comma-separated list of REST API packages to expand | (none) | No | 0.6.0-incubating |
| `gravitino.server.visibleConfigs` | List of configs that are visible in the config servlet | (none) | No | 0.9.0-incubating |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:) This is a pretty honest name. It can be parsed as "... I have many configs, but I can only show you some ...".

serverConfig.set(
Configs.VISIBLE_CONFIGS,
Lists.newArrayList(Configs.AUDIT_LOG_FORMATTER_CLASS_NAME.getKey()));
serverConfig.set(Configs.AUDIT_LOG_FORMATTER_CLASS_NAME, "test");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Em ... this is an interesting test case. Can we use something more realistic? I'm not sure who wants to know the audit log formatter class? Maybe there are something I missed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I can use a more realistic case.

@jerryshao
Copy link
Contributor

What is the usage scenario of this change?

@jerqi
Copy link
Contributor Author

jerqi commented Feb 26, 2025

What is the usage scenario of this change?

It's useful for some users to extend Gravitino service. For example, we can add a Ranger service. We can provide the Ranger information in the configs API. Custom UI can also use the configs API to get the Ranger information to optimize the UI show, too.

@jerryshao jerryshao merged commit 7692654 into apache:main Feb 26, 2025
28 checks passed
@jerqi jerqi deleted the ISSUE-6499 branch February 26, 2025 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improvement] Support custom configuration options in the REST API /configs
3 participants