-
Notifications
You must be signed in to change notification settings - Fork 724
Link resources in more cases #8425
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -591,6 +591,9 @@ public async Task AddProjectWithArgs() | |
| Assert.Collection(args, | ||
| arg => Assert.Equal("arg1", arg), | ||
| arg => Assert.Equal("http://localhost:1234", arg)); | ||
|
|
||
| // We don't yet process relationships set via the callbacks | ||
| Assert.False(project.Resource.TryGetAnnotationsOfType<ResourceRelationshipAnnotation>(out var relationships)); | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a case we're not handling #8426
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How might we solve this in the future. I think it makes sense to immediately add resource relationships when you can like this, but being able to catch these late discovered relationships is also useful. So do we put the logic in two places. If we try to put the logic in one place like in DCP integration, then any non-DCP resources won't be able to play (anything that evaluates expressions would need to the logic to add these relationships).
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I started that way but decided to back out for 9.2. We’d do it in the application orchestrator before start. |
||
| } | ||
|
|
||
| [Theory] | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the difference between this and
WithRelationship? Just hardcoding a relationship type ofReference?ResourceRelationshipis a generic name that doesn't mean anything. Aren't all relationships between resources resource relationships?Shouldn't this be called
WithReferenceRelationship?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not hung up on the naming, and yes it's to avoid the magic "Reference" string.