Skip to content

Conversation

@CodingBangboo
Copy link
Contributor

What changes were proposed in this pull request?

As a follow up of #2736 (comment), we would like to rename the AccessConfig and AccessConfigProvider to StorageAccessConfig and StorageAccessConfigProvider respectively, including renaming AccessConfigProvider's method getAccessConfig to getStorageAccessConfig. This renaming PR adds clarity to differentiating between two types of external services: storage and catalog accesses.

Why are the changes needed?

Does this PR introduce any user-facing change?

How was this patch tested?

CHANGELOG.md

HonahX
HonahX previously approved these changes Oct 24, 2025
Copy link
Contributor

@HonahX HonahX left a comment

Choose a reason for hiding this comment

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

@CodingBangboo Thanks for the contribution! The rename LGTM as it would help avoid confusion when we consolidate and introduce CatalogAccessConfig in the future, per comment.

Would love to hear others' thoughts on this!

cc: @dimas-b @XJDKC

@github-project-automation github-project-automation bot moved this from PRs In Progress to Ready to merge in Basic Kanban Board Oct 24, 2025
@CodingBangboo CodingBangboo marked this pull request as ready for review October 24, 2025 03:17
@HonahX HonahX requested a review from dimas-b October 24, 2025 03:17
dimas-b
dimas-b previously approved these changes Oct 24, 2025
Copy link
Contributor

@dimas-b dimas-b left a comment

Choose a reason for hiding this comment

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

This rename looks reasonable to me 👍 Thanks for your contribution, @CodingBangboo !

* Constructor for success
*
* @param accessConfig credentials
* @param storageAccessConfig credentials
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: this javadoc is no longer accurate. Since the class name is pretty much self-describing now, I do not see a reason to have javadoc for this parameter (can we put anything there that is not covered by the class?).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. I think we can keep it there for consistency with the javadoc in other BaseResult classes. I also added a tiny bit to indicate that it is the result from a successful getSubscopedCredsForEntity().

@dimas-b dimas-b changed the title Rename AccessConfig and AccessConfigProvider for Clarity Rename AccessConfig and AccessConfigProvider for clarity Oct 24, 2025
@CodingBangboo CodingBangboo dismissed stale reviews from dimas-b and HonahX via 558d524 October 25, 2025 01:20
@CodingBangboo CodingBangboo force-pushed the nuoya_rename_AccessConfig branch from 144700b to 558d524 Compare October 25, 2025 01:20
* Constructor for success
*
* @param accessConfig credentials
* @param storageAccessConfig credentials generated by a successful getSubscopedCredsForEntity()
Copy link
Contributor

Choose a reason for hiding this comment

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

As far as this class is concerned, why does it matter that storageAccessConfig is generated by a successful getSubscopedCredsForEntity()?

Copy link
Contributor

@dimas-b dimas-b Nov 3, 2025

Choose a reason for hiding this comment

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

@CodingBangboo @HonahX : I know this is a minor point, but I'd prefer to avoid false requirements in javadoc... WDYT about this one?

To be clear: I propose to remove this javadoc line completely. I believe the java doc on the parameter type is sufficient in this case.

Copy link
Member

@XJDKC XJDKC left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

4 participants