Skip to content

Ensure endpoint names are unique to avoid failures later in execution.#4071

Merged
mitchdenny merged 4 commits intomainfrom
mitchdenny/enforce-endpoint-nameuniqueness
May 15, 2024
Merged

Ensure endpoint names are unique to avoid failures later in execution.#4071
mitchdenny merged 4 commits intomainfrom
mitchdenny/enforce-endpoint-nameuniqueness

Conversation

@mitchdenny
Copy link
Copy Markdown
Member

@mitchdenny mitchdenny commented May 3, 2024

Builds upon changes in #4064

Moves the uniqueness check until after the endpoint is constructed and name is derived (to share the various bits of fallback logic).

Added a test case to cover this.

Microsoft Reviewers: Open in CodeFlow

@mitchdenny mitchdenny requested a review from davidfowl May 3, 2024 03:09
@ghost ghost added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label May 3, 2024
@mitchdenny mitchdenny self-assigned this May 3, 2024
@mitchdenny mitchdenny added area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication and removed area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication labels May 3, 2024
@mitchdenny mitchdenny added this to the 8.1 milestone May 3, 2024
Comment thread src/Aspire.Hosting/ResourceBuilderExtensions.cs Outdated
Comment thread src/Aspire.Hosting/ResourceBuilderExtensions.cs Outdated
Comment thread tests/Aspire.Hosting.Tests/WithEndpointTests.cs Outdated
Copy link
Copy Markdown
Member

@timheuer timheuer left a comment

Choose a reason for hiding this comment

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

typos

@dotnet-policy-service dotnet-policy-service Bot added the needs-author-action An issue or pull request that requires more info or actions from the author. label May 9, 2024
@mitchdenny
Copy link
Copy Markdown
Member Author

@timheuer thanks for spotting those!

@mitchdenny mitchdenny requested a review from timheuer May 10, 2024 00:17
@dotnet-policy-service dotnet-policy-service Bot removed the needs-author-action An issue or pull request that requires more info or actions from the author. label May 10, 2024
@mitchdenny
Copy link
Copy Markdown
Member Author

@timheuer can you reset your vote?

@mitchdenny mitchdenny merged commit bcfd748 into main May 15, 2024
@mitchdenny mitchdenny deleted the mitchdenny/enforce-endpoint-nameuniqueness branch May 15, 2024 02:18
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants