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

Add API based filtering for organizations #1472

Merged
merged 8 commits into from
Jun 13, 2023
Merged

Conversation

dbanck
Copy link
Member

@dbanck dbanck commented Jun 7, 2023

This PR adds API-based filtering for organisations, based on work done for filtering projects in #1455.

As a result of discussion in Slack, it also adds the ability to open the browser to create organisations and refresh the list. This improves the workflow for users starting with an empty TFC account.

UX

Empty account
CleanShot 2023-06-12 at 14 30 22@2x

Some existing organizations
CleanShot 2023-06-12 at 14 36 21@2x

@dbanck dbanck self-assigned this Jun 7, 2023
@dbanck dbanck force-pushed the f-tfc-filter-org-pick branch from 9f462ae to 426fe09 Compare June 9, 2023 11:23
@dbanck dbanck force-pushed the f-tfc-filter-org-pick branch from 426fe09 to 7e825f7 Compare June 12, 2023 09:20
@dbanck dbanck marked this pull request as ready for review June 12, 2023 14:07
@dbanck dbanck requested a review from a team as a code owner June 12, 2023 14:07
Copy link
Contributor

@jpogran jpogran left a comment

Choose a reason for hiding this comment

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

Other than the file placement question, LGTM!

fetchItems(query?: string): Promise<vscode.QuickPickItem[]>;
}

export class APIQuickPick {
Copy link
Contributor

Choose a reason for hiding this comment

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

Would have expected this to be inside the terraformCloud folder as while it's a generic VSCode UI thing, its only really going to be used by the tfc stuff

@dbanck dbanck merged commit de2cf8e into f-tfc Jun 13, 2023
@dbanck dbanck deleted the f-tfc-filter-org-pick branch June 13, 2023 13:11
dbanck added a commit that referenced this pull request Jun 19, 2023
* Build abstract api filtering quick pick

* Use new APIQuickPick for project filter

* Move TerraformCloudHost

We need this to open the browser for organziation creation

* Add search query parameter to organizations API

* Improve APIQuickPick hide and show behavior

* Implement OrganizationAPIResource

* Use OrganizationAPIResource to pick an organization

* Move uiHelpers file
@jpogran jpogran added enhancement New feature or request terraform-cloud Features or bugs related to TFC integration in the editor labels Jun 22, 2023
dbanck added a commit that referenced this pull request Jul 11, 2023
* Build abstract api filtering quick pick

* Use new APIQuickPick for project filter

* Move TerraformCloudHost

We need this to open the browser for organziation creation

* Add search query parameter to organizations API

* Improve APIQuickPick hide and show behavior

* Implement OrganizationAPIResource

* Use OrganizationAPIResource to pick an organization

* Move uiHelpers file
jpogran pushed a commit that referenced this pull request Jul 11, 2023
* Build abstract api filtering quick pick

* Use new APIQuickPick for project filter

* Move TerraformCloudHost

We need this to open the browser for organziation creation

* Add search query parameter to organizations API

* Improve APIQuickPick hide and show behavior

* Implement OrganizationAPIResource

* Use OrganizationAPIResource to pick an organization

* Move uiHelpers file
@jpogran jpogran mentioned this pull request Jul 12, 2023
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request terraform-cloud Features or bugs related to TFC integration in the editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants