Skip to content

Conversation

@adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

Remove AccessPolicy and related code, which is unused and leftover after HDDS-6909.

Motivation (beyond code cleanup): AccessPolicy#deserializePolicyFromJsonString is defined using GSON datatype JsonObject. We should strive to avoid using types defined in third-party libraries as part of public API. Such usage may cause trouble when trying to upgrade/replace these dependencies.

https://issues.apache.org/jira/browse/HDDS-10274

How was this patch tested?

CI:
https://github.com/adoroszlai/ozone/actions/runs/7745385510

@adoroszlai adoroszlai self-assigned this Feb 1, 2024
@adoroszlai adoroszlai marked this pull request as ready for review February 1, 2024 19:54
Copy link
Contributor

@fapifta fapifta left a comment

Choose a reason for hiding this comment

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

Thank you @adoroszlai for joining forces in removing unused code, the change looks good to me.

@fapifta fapifta added the code-cleanup Changes that aim to make code better, without changing functionality. label Feb 2, 2024
Copy link
Contributor

@smengcl smengcl left a comment

Choose a reason for hiding this comment

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

Thanks @adoroszlai . lgtm. cc @prashantpogde

@adoroszlai adoroszlai merged commit 4ebbdcf into apache:master Feb 3, 2024
@adoroszlai adoroszlai deleted the HDDS-10274 branch February 3, 2024 07:22
@adoroszlai
Copy link
Contributor Author

Thanks @fapifta, @smengcl for the review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-cleanup Changes that aim to make code better, without changing functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants