Skip to content

Conversation

los93sol
Copy link
Contributor

@los93sol los93sol commented Oct 28, 2024

Makes VolumeNameGenerator public #6490

Microsoft Reviewers: Open in CodeFlow

@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Oct 28, 2024
Co-authored-by: Dan Moseley <danmose@microsoft.com>
/// <param name="builder">The resource builder.</param>
/// <param name="suffix">The suffix to append to the volume name.</param>
/// <returns>The volume name.</returns>
/// <exception cref="ArgumentException"></exception>
public static string CreateVolumeName<T>(IResourceBuilder<T> builder, string suffix) where T : IResource
Copy link
Member

Choose a reason for hiding this comment

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

Probably want to think about naming here.. duplicative ? VolumeNameGenerator.Generate ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have no preference on this, simply changed the visibility. I agree though, Generate seems more consistent and it’s an opportunity to polish it a bit. I’ll update it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have updated to change the name from CreateVolumeName to Generate as suggested.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@danmoseley Are you good with the changes made?

Copy link
Member

Choose a reason for hiding this comment

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

seems fine to me. @davidfowl what is the process around public API naming - is this OK?

@los93sol los93sol requested a review from mitchdenny as a code owner October 29, 2024 00:52
@davidfowl
Copy link
Member

cc @DamianEdwards as he wrote this code

Copy link
Member

@danmoseley danmoseley left a comment

Choose a reason for hiding this comment

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

thanks

@danmoseley danmoseley merged commit 51e9a0d into dotnet:main Oct 29, 2024
9 checks passed
@danmoseley
Copy link
Member

@los93sol if you put text like Fixes #6490 in your top post in the PR, merging the PR closes the issue.

Thanks for the contribution, we'd welcome more.

@davidfowl davidfowl added this to the 9.1 milestone Oct 30, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Dec 1, 2024
@github-actions github-actions bot added the area-integrations Issues pertaining to Aspire Integrations packages label Mar 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-integrations Issues pertaining to Aspire Integrations packages community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants