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

Bump the priority of processing paramters to avoid infinite recursion #7588

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

davidfowl
Copy link
Member

Description

Second part to #7500. Since we changed the connection string resource to be a parameter resource (that points to itself), we needed to bump the priority of processing parameters VS connection strings much like we did in manifest parsing.

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No

@Copilot Copilot bot review requested due to automatic review settings February 13, 2025 09:55
@davidfowl
Copy link
Member Author

/backport to release/9.1

Copy link
Contributor

Started backporting to release/9.1: https://github.com/dotnet/aspire/actions/runs/13305007421

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

@@ -634,6 +634,13 @@ BicepValue<string> GetHostValue(string? prefix = null, string? suffix = null)
return (url, secretType);
}

if (value is ParameterResource param)
Copy link
Member

Choose a reason for hiding this comment

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

Consider a comment saying that it's important that this is resolved before connection strings.

But if a test catches a regression then not required.

@davidfowl davidfowl enabled auto-merge (squash) February 13, 2025 10:02
@davidfowl davidfowl disabled auto-merge February 13, 2025 10:04
@davidfowl davidfowl enabled auto-merge (squash) February 13, 2025 10:04
@davidfowl davidfowl merged commit 22a4ed5 into main Feb 13, 2025
70 checks passed
@davidfowl davidfowl deleted the davidfowl/process-parameters branch February 13, 2025 10:09
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.

2 participants