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

Add name to NamespacePolicy and TablePolicy #2466

Merged
merged 2 commits into from
Jan 20, 2025

Conversation

brfrn169
Copy link
Collaborator

@brfrn169 brfrn169 commented Jan 17, 2025

Description

This PR adds a name to AbacAdmin.NamespacePolicy and AbacAdmin.TablePolicy. Additionally, it modifies some method names and signatures of AbacAdmin accordingly.

Related issues and/or PRs

Changes made

  • Added a name to NamespacePolicy.
  • Added a name to TablePolicy.
  • Renamed the method from applyPolicyToNamespace to createNamespacePolicy.
  • Changed the signature of the enableNamespacePolicy, disableNamespacePolicy, and getNamespacePolicy methods to specify the namespace policy name.
  • Renamed the method applyPolicyToTable to createTablePolicy.
  • Changed the signature of the enableTablePolicy, disableTablePolicy, and getTablePolicy methods to specify the table policy name.

Checklist

  • I have commented my code, particularly in hard-to-understand areas.
  • I have updated the documentation to reflect the changes.
  • Any remaining open issues linked to this PR are documented and up-to-date (Jira, GitHub, etc.).
  • Tests (unit, integration, etc.) have been added for the changes.
  • My changes generate no new warnings.
  • Any dependent changes in other PRs have been merged and published.

Additional notes (optional)

N/A

Release notes

N/A

@brfrn169 brfrn169 self-assigned this Jan 17, 2025
*
* @return the namespace policy name
*/
String getName();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added a name to NamespacePolicy.

*
* @return the table policy name
*/
String getName();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added a name to TablePolicy as well.

* @param policyName the policy name
* @param namespaceName the namespace name
* @throws ExecutionException if the operation fails
*/
default void applyPolicyToNamespace(String policyName, String namespaceName)
default void createNamespacePolicy(
Copy link
Collaborator Author

@brfrn169 brfrn169 Jan 17, 2025

Choose a reason for hiding this comment

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

Renamed applyPolicyToNamespace to createNamespacePolicy.

Also, changed the signature of the enableNamespacePolicy, disableNamespacePolicy, and getNamespacePolicy methods to specify the namespace policy name.

* @param policyName the policy name
* @param namespaceName the namespace name
* @param tableName the table name
* @throws ExecutionException if the operation fails
*/
default void applyPolicyToTable(String policyName, String namespaceName, String tableName)
default void createTablePolicy(
Copy link
Collaborator Author

@brfrn169 brfrn169 Jan 17, 2025

Choose a reason for hiding this comment

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

Renamed applyPolicyToTable to createTablePolicy.

Also, changed the signature of the enableTablePolicy, disableTablePolicy, and getTablePolicy methods to specify the table policy name.

Copy link
Contributor

@komamitsu komamitsu left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

Copy link
Contributor

@Torch3333 Torch3333 left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

Copy link
Contributor

@feeblefakie feeblefakie left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!

@brfrn169 brfrn169 merged commit c021b26 into master Jan 20, 2025
48 checks passed
@brfrn169 brfrn169 deleted the add-name-to-namespace-policy-and-table-policy branch January 20, 2025 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants