You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "lasdf1234 (via GitHub)" <gi...@apache.org> on 2026/08/18 12:42:33 UTC

[PR] [#12493] feat(idp): Add optional comment to idp_group_meta [gravitino]

lasdf1234 opened a new pull request, #12494:
URL: https://github.com/apache/gravitino/pull/12494

   ### What changes were proposed in this pull request?
   
   Add an optional description for built-in IdP groups.
   
   - Persist `group_comment VARCHAR(256) DEFAULT ''` on `idp_group_meta` (aligned with `tag_comment` / `column_comment`).
   - Expose optional REST JSON field `comment` on group create (`POST /api/idp/groups`) and get.
     - Omit on create → store empty string.
     - Existing rows get `''` via column default / 1.3.0 → 2.0.0 upgrade.
   - Schema: 2.0.0 CREATE + 1.3.0 → 2.0.0 ALTER for MySQL, PostgreSQL, and H2. Released 1.3.0 schema is unchanged.
   - OpenAPI and `docs/security/local-users-and-groups.md` updated.
   
   Update-group REST (`PUT /api/idp/groups/{group}`) is out of scope; create writes the comment and GET returns it.
   
   ### Why are the changes needed?
   
   Local IdP groups currently store only `group_name`. Operators have no place to record a short description (purpose, owner, etc.) when creating a group.
   
   Fix: #12493
   
   ### Does this PR introduce _any_ user-facing change?
   
   - Optional `comment` on `POST /api/idp/groups` request body (max 256 characters).
   - `comment` returned on group GET responses.
   - New `idp_group_meta.group_comment` column after upgrade to 2.0.0.
   
   ### How was this patch tested?
   
   - Unit tests: `TestIdpUserGroupManager`, `TestAddGroupRequest`, `TestIdpGroupDTO`, `TestIdpGroupPO`, `TestIdpGroupMetaStorage`, `TestIdpOperations`.
   
   Made with [Cursor](https://cursor.com)


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#12493] feat(idp): Add optional comment to idp_group_meta [gravitino]

Posted by "roryqi (via GitHub)" <gi...@apache.org>.
roryqi merged PR #12494:
URL: https://github.com/apache/gravitino/pull/12494


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#12493] feat(idp): Add optional comment to idp_group_meta [gravitino]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #12494:
URL: https://github.com/apache/gravitino/pull/12494#issuecomment-5330759148

   <!-- coverage-report -->
   ### Code Coverage Report
   |Overall Project|68.8% **`+0.05%`**|:green_circle:|
   |:-|:-|:-:|
   |Files changed|86.96%|:green_circle:|
   <br>
   
   |Module|Coverage||
   |:-|:-|:-:|
   |aliyun|1.72%|:red_circle:|
   |api|49.31%|:green_circle:|
   |authorization-common|85.96%|:green_circle:|
   |aws|42.04%|:green_circle:|
   |azure|2.47%|:red_circle:|
   |catalog-common|9.92%|:red_circle:|
   |catalog-fileset|79.77%|:green_circle:|
   |catalog-glue|68.95%|:green_circle:|
   |catalog-hive|82.96%|:green_circle:|
   |catalog-jdbc-common|45.7%|:green_circle:|
   |catalog-jdbc-doris|81.8%|:green_circle:|
   |catalog-jdbc-mysql|79.33%|:green_circle:|
   |catalog-jdbc-postgresql|83.39%|:green_circle:|
   |catalog-jdbc-starrocks|79.16%|:green_circle:|
   |catalog-kafka|77.01%|:green_circle:|
   |catalog-lakehouse-generic|59.18%|:green_circle:|
   |catalog-lakehouse-hudi|79.1%|:green_circle:|
   |catalog-lakehouse-iceberg|85.93%|:green_circle:|
   |catalog-lakehouse-paimon|84.23%|:green_circle:|
   |catalog-model|77.72%|:green_circle:|
   |cli|44.48%|:green_circle:|
   |client-java|78.56%|:green_circle:|
   |common|52.75% **`+0.09%`**|:green_circle:|
   |core|83.65%|:green_circle:|
   |filesystem-hadoop3|77.28%|:green_circle:|
   |flink|0.0%|:red_circle:|
   |flink-common|48.68%|:green_circle:|
   |flink-runtime|0.0%|:red_circle:|
   |gcp|14.12%|:red_circle:|
   |hadoop-auth|68.0%|:green_circle:|
   |hadoop-common|12.7%|:red_circle:|
   |hive-metastore-common|53.4%|:green_circle:|
   |iceberg-aliyun-bundle|0.0%|:red_circle:|
   |iceberg-common|64.75%|:green_circle:|
   |iceberg-rest-server|75.0%|:green_circle:|
   |idp-basic|85.98% **`+0.55%`**|:green_circle:|
   |integration-test-common|0.0%|:red_circle:|
   |jobs|62.92%|:green_circle:|
   |lance-common|31.63%|:red_circle:|
   |lance-rest-server|63.47%|:green_circle:|
   |lineage|53.02%|:green_circle:|
   |optimizer|83.17%|:green_circle:|
   |optimizer-api|21.95%|:red_circle:|
   |server|87.25%|:green_circle:|
   |server-common|79.57%|:green_circle:|
   |spark|28.57%|:red_circle:|
   |spark-common|45.89%|:green_circle:|
   |tencent|69.84%|:green_circle:|
   |trino-connector|41.56%|:green_circle:|
   
   <details>
   <summary>Files</summary>
   
   |Module|File|Coverage||
   |:-|:-|:-|:-:|
   |common|[CallerContext.java](https://github.com/lasdf1234/gravitino/blob/2f4f81d4975ef7bc993499b03839828e05875deb/common/src/main/java/org/apache/gravitino/audit/CallerContext.java)|78.26%|:green_circle:|
   |idp-basic|[IdpCredentialValidator.java](https://github.com/lasdf1234/gravitino/blob/2f4f81d4975ef7bc993499b03839828e05875deb/plugins/idp-basic/src/main/java/org/apache/gravitino/idp/basic/IdpCredentialValidator.java)|100.0%|:green_circle:|
   ||[IdpGroupDTO.java](https://github.com/lasdf1234/gravitino/blob/2f4f81d4975ef7bc993499b03839828e05875deb/plugins/idp-basic/src/main/java/org/apache/gravitino/idp/dto/IdpGroupDTO.java)|100.0%|:green_circle:|
   ||[IdpGroupMetaBaseSQLProvider.java](https://github.com/lasdf1234/gravitino/blob/2f4f81d4975ef7bc993499b03839828e05875deb/plugins/idp-basic/src/main/java/org/apache/gravitino/idp/storage/mapper/provider/base/IdpGroupMetaBaseSQLProvider.java)|100.0%|:green_circle:|
   ||[IdpGroupMetaH2Provider.java](https://github.com/lasdf1234/gravitino/blob/2f4f81d4975ef7bc993499b03839828e05875deb/plugins/idp-basic/src/main/java/org/apache/gravitino/idp/storage/mapper/provider/h2/IdpGroupMetaH2Provider.java)|100.0%|:green_circle:|
   ||[IdpGroupMetaPostgreSQLProvider.java](https://github.com/lasdf1234/gravitino/blob/2f4f81d4975ef7bc993499b03839828e05875deb/plugins/idp-basic/src/main/java/org/apache/gravitino/idp/storage/mapper/provider/postgresql/IdpGroupMetaPostgreSQLProvider.java)|100.0%|:green_circle:|
   ||[IdpGroupOperations.java](https://github.com/lasdf1234/gravitino/blob/2f4f81d4975ef7bc993499b03839828e05875deb/plugins/idp-basic/src/main/java/org/apache/gravitino/idp/web/rest/IdpGroupOperations.java)|100.0%|:green_circle:|
   ||[AddGroupRequest.java](https://github.com/lasdf1234/gravitino/blob/2f4f81d4975ef7bc993499b03839828e05875deb/plugins/idp-basic/src/main/java/org/apache/gravitino/idp/dto/requests/AddGroupRequest.java)|93.75%|:green_circle:|
   ||[IdpUserGroupManager.java](https://github.com/lasdf1234/gravitino/blob/2f4f81d4975ef7bc993499b03839828e05875deb/plugins/idp-basic/src/main/java/org/apache/gravitino/idp/IdpUserGroupManager.java)|92.94%|:green_circle:|
   ||[IdpGroupPO.java](https://github.com/lasdf1234/gravitino/blob/2f4f81d4975ef7bc993499b03839828e05875deb/plugins/idp-basic/src/main/java/org/apache/gravitino/idp/storage/po/IdpGroupPO.java)|90.0%|:green_circle:|
   ||[IdpPOConverters.java](https://github.com/lasdf1234/gravitino/blob/2f4f81d4975ef7bc993499b03839828e05875deb/plugins/idp-basic/src/main/java/org/apache/gravitino/idp/storage/relational/utils/IdpPOConverters.java)|71.43%|:green_circle:|
   ||[IdpGroup.java](https://github.com/lasdf1234/gravitino/blob/2f4f81d4975ef7bc993499b03839828e05875deb/plugins/idp-basic/src/main/java/org/apache/gravitino/idp/model/IdpGroup.java)|42.86%|:red_circle:|
   ||[IdpGroupWithUsersPO.java](https://github.com/lasdf1234/gravitino/blob/2f4f81d4975ef7bc993499b03839828e05875deb/plugins/idp-basic/src/main/java/org/apache/gravitino/idp/storage/po/IdpGroupWithUsersPO.java)|42.86%|:red_circle:|
   
   </details>


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org