xxubai opened a new issue, #11787:
URL: https://github.com/apache/gravitino/issues/11787

   ### What would you like to be improved?
   
   The Web UI policy creation dialog currently only exposes the `Custom` policy 
type. However, Gravitino already supports the built-in Iceberg compaction 
policy type `system_iceberg_compaction` through the REST API and Java client.
   
   As a result, users can create an Iceberg compaction policy with REST, but 
cannot do the same from the Web UI.
   
   Relevant current behavior:
   - `web-v2/web/src/app/compliance/policies/CreatePolicyDialog.js` defaults 
`policyType` to `custom`.
   - The policy type `<Select>` only contains `Custom`.
   - The submit payload always builds custom policy content with `customRules`, 
`supportedObjectTypes`, and `properties`.
   
   ### How should we improve?
   
   Add Web UI support for creating and viewing/editing built-in Iceberg 
compaction policies.
   
   Suggested scope:
   - Add `system_iceberg_compaction` as a policy type option in the policy 
creation dialog.
   - For this type, submit typed Iceberg compaction content instead of custom 
policy content.
   - Support default content `{}` so the backend can apply the default 
compaction policy values.
   - Optionally expose advanced fields such as `minDataFileMse`, 
`minDeleteFileNumber`, `dataFileMseWeight`, `deleteFileNumberWeight`, 
`maxPartitionNum`, and `rewriteOptions`.
   - Ensure the policy details drawer can display typed built-in policy 
rules/properties clearly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to