Skip to content

Refresh subscription instead of group#618

Merged
alexweininger merged 2 commits intomainfrom
alex/brown-haddock
Mar 22, 2023
Merged

Refresh subscription instead of group#618
alexweininger merged 2 commits intomainfrom
alex/brown-haddock

Conversation

@alexweininger
Copy link
Copy Markdown
Member

Fixes #617

Copy link
Copy Markdown
Member

@nturinski nturinski left a comment

Choose a reason for hiding this comment

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

Could we make the refresh implementation different on the node itself rather than having this weird edge case in the command defintion?

Like, if you call GroupingTreeItem's refresh, it's implementation will handle passing up the subscription/parent node? Or do we not have that capability anymore?

@alexweininger
Copy link
Copy Markdown
Member Author

Could we make the refresh implementation different on the node itself rather than having this weird edge case in the command defintion?

Like, if you call GroupingTreeItem's refresh, it's implementation will handle passing up the subscription/parent node? Or do we not have that capability anymore?

We haven't done it that way for v2, however that's probably a good approach.

@nturinski
Copy link
Copy Markdown
Member

Is it possible to do that now or should I just go ahead and approve this for merge, and we can leave an issue for it later?

@alexweininger
Copy link
Copy Markdown
Member Author

Is it possible to do that now or should I just go ahead and approve this for merge, and we can leave an issue for it later?

I will change it sometime today (hopefully). 😄

@alexweininger
Copy link
Copy Markdown
Member Author

alexweininger commented Mar 22, 2023

Since this is sorta a special case, I think for now this implementation is fine. None of the solutions I have feel right since it's just for this one edge case.

@nturinski
Copy link
Copy Markdown
Member

Alright, definitely something to keep in mind when we convert a hefty boy like Functions.

@alexweininger alexweininger merged commit 0c208b7 into main Mar 22, 2023
@alexweininger alexweininger deleted the alex/brown-haddock branch March 22, 2023 23:03
ext.actions.refreshAzureTree(node);

if (node instanceof GroupingItem) {
ext.actions.refreshAzureTree(node.parent);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

(Too late now but) can we add a comment explaining why?

@microsoft microsoft locked and limited conversation to collaborators May 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refreshing a group item doesn't behave as expected

3 participants