Skip to content

[dashboard] query cache orgs #16685

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

Merged
merged 1 commit into from
Mar 7, 2023
Merged

Conversation

svenefftinge
Copy link
Contributor

Description

Introduces a custom hook for retrieving organizations backed by react query.

Related Issue(s)

Fixes #16235

How to test

Release Notes

NONE

Documentation

Build Options:

  • /werft with-github-actions
    Experimental feature to run the build with GitHub Actions (and not in Werft).
  • leeway-no-cache
    leeway-target=components:all
  • /werft no-test
    Run Leeway with --dont-test
Publish Options
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer Options
  • with-ee-license
  • with-dedicated-emulation
  • with-ws-manager-mk2
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated

Preview Environment Options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-gce-vm
    If enabled this will create the environment on GCE infra
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh

@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-sefftinge-optimize-team-retrieval-16235.1 because the annotations in the pull request description changed
(with .werft/ from main)

@svenefftinge svenefftinge force-pushed the sefftinge/optimize-team-retrieval-16235 branch 2 times, most recently from 52a4331 to 61e78b9 Compare March 6, 2023 14:15
@svenefftinge svenefftinge marked this pull request as ready for review March 6, 2023 14:15
@svenefftinge svenefftinge requested a review from a team March 6, 2023 14:15
@svenefftinge svenefftinge requested a review from gtsiolis as a code owner March 6, 2023 14:15
@svenefftinge
Copy link
Contributor Author

/hold

@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Mar 6, 2023
@easyCZ
Copy link
Member

easyCZ commented Mar 6, 2023

Unsure if this is caused by this change, or also exists on main, but creating a new team won't switch my context to that newly created team.

@easyCZ
Copy link
Member

easyCZ commented Mar 6, 2023

Otherwise looks to work correctly, thanks for doing this.

@svenefftinge svenefftinge force-pushed the sefftinge/optimize-team-retrieval-16235 branch from 61e78b9 to 7d4110f Compare March 6, 2023 17:30
Copy link
Contributor

@selfcontained selfcontained left a comment

Choose a reason for hiding this comment

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

This is great, thanks for doing this 😄 . Left a few pieces of feedback.

Halfway through I stopped commenting on the unneccessary ? in places (makes me wonder if there's a lint rule that can identify these we just don't have on. They don't hurt though, so def. a nit that would be better if a linter could let us know.

@svenefftinge svenefftinge force-pushed the sefftinge/optimize-team-retrieval-16235 branch from 7d4110f to 67b1c3c Compare March 7, 2023 10:12
@svenefftinge svenefftinge force-pushed the sefftinge/optimize-team-retrieval-16235 branch from 67b1c3c to 612c369 Compare March 7, 2023 11:14
@svenefftinge
Copy link
Contributor Author

/unhold

@roboquat roboquat merged commit 8496ae0 into main Mar 7, 2023
@roboquat roboquat deleted the sefftinge/optimize-team-retrieval-16235 branch March 7, 2023 12:01
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Mar 7, 2023
? "text-red-600 dark:text-red-400 hover:text-red-800 dark:hover:text-red-300"
: "text-gray-400 dark:text-gray-200",
onClick: () => leaveTeamEnabled && removeTeamMember(m.userId),
onClick: () =>
org.data?.isOwner && removeTeamMember(m.userId),
Copy link
Member

Choose a reason for hiding this comment

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

@svenefftinge this read like you would not be able to leave an org as a non-owner.
also, every owner would see "Remaining owner".

Before the change, this would only be shown for the last owner of an org.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh, yes. It should be that you cannot leave if you are the last owner.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've filed an issue #16753

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note-none size/XXL team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optimize Team retrieval on dashboard
5 participants