-
Couldn't load subscription status.
- Fork 712
Add hidden to protocol, support in dashboard #9069
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
Add hidden to protocol, support in dashboard #9069
Conversation
| repeated ResourceRelationship relationships = 20; | ||
|
|
||
| // Whether the resource should be visually hidden in the dashboard. | ||
| bool hidden = 21; |
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.
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 don't think we want a tri state bool.
IMO a resource is hidden if hidden property is true or the state is hidden (for backwards compatibility).
|
@adamint I'm working on a copy of your branch integrating the changes I just merged to main and its looking like the dashboard resource is showing up in the dashboard even though the Hidden field is set to true. Are we not filtering on that flag yet in the PR? |
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.
All other bool properties follow is_xxx naming standard.
|
@adamint please confirm that this works for the dashboard resource. |
The hidden field is only set if the AppHost launch profile doesn't set |
| return app.ResourceNotifications.WaitForResourceAsync(resourceName, targetState, cancellationToken); | ||
| } | ||
|
|
||
| #pragma warning disable CS0618 // Type or member is obsolete |
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.
nit: can you place these just around KnownResourceStates.Hidden in the method instead of the entire method
|
Looking good! |
Description
First part of #9063, adds the
hiddenattribute and consumes it in the dashboard. @mitchdennyChecklist
<remarks />and<code />elements on your triple slash comments?doc-ideatemplatebreaking-changetemplatediagnostictemplate