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

[dashboard] use list members and get invitation api #18920

Closed
wants to merge 6 commits into from

Conversation

mustard-mh
Copy link
Contributor

@mustard-mh mustard-mh commented Oct 13, 2023

Description

Part of #18908 (comment)

‼️ Blocked by #18919 to be deployed Nope, since we bring compatibility to dashboard #18920 (comment)

Summary generated by Copilot

🤖 Generated by Copilot at dc000d0

No summary available (Limit exceeded: required to process 84724 tokens, but only 50000 are allowed per call)

Related Issue(s)

Fixes EXP-775

How to test

  • Go to preview env, organization related stuff should work like before (should try different role owner, member, join my org with link )
    • Members invite
    • Org settings
    • Member role changing
    • Member list

Documentation

Preview status

Gitpod was successfully deployed to your preview environment.

Build Options

Build
  • /werft with-werft
    Run the build with werft instead of GHA
  • leeway-no-cache
  • /werft no-test
    Run Leeway with --dont-test
Publish
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer
  • analytics=segment
  • with-dedicated-emulation
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
  • /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
  • with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh. If enabled, with-preview and with-large-vm will be enabled.
  • with-monitoring

/hold

@akosyakov
Copy link
Member

We discussed with @mustard-mh to try first new APIs and if it returns unimplemented then fallback to old behaviour. It would allows us to decouple from #18908 (comment) and deploy to Cloud already today. cc @easyCZ

@mustard-mh mustard-mh force-pushed the hw/papi-list-team-dashboard branch from dc000d0 to 487da46 Compare October 17, 2023 14:20
@roboquat roboquat added size/L and removed size/XL labels Oct 17, 2023
@mustard-mh mustard-mh marked this pull request as ready for review October 17, 2023 14:58
@mustard-mh mustard-mh requested a review from a team as a code owner October 17, 2023 14:58
@mustard-mh
Copy link
Contributor Author

Tested that unimplemented fallback works

Code Preview
image SCR-20231017-ttvh

@mustard-mh
Copy link
Contributor Author

mustard-mh commented Oct 17, 2023

@akosyakov to bring compatibility, should we add another API like getTeamList instead of deprecated fields on listTeams? Or it can always break dashboard first view if they deploy from an old installer version

If so, I will do it in this PR (with unimplemented fallback for sure)

update: will do it

@roboquat roboquat added size/XL and removed size/L labels Oct 17, 2023
@@ -73,6 +84,9 @@ service TeamsService {
// ListTeams lists the caller has access to.
rpc ListTeams(ListTeamsRequest) returns (ListTeamsResponse) {};

// GetTeamList lists teams that the caller has access to.
rpc GetTeamList(GetTeamListRequest) returns (GetTeamListResponse) {};
Copy link
Member

Choose a reason for hiding this comment

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

It is not consistent then with other functions. Maybe ListTeams2?

What was wrong with making properties optional in ListTeamsResponse?

Copy link
Contributor Author

@mustard-mh mustard-mh Oct 17, 2023

Choose a reason for hiding this comment

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

It is not consistent then with other functions. Maybe ListTeams2?

Sounds good

What was wrong with making properties optional in ListTeamsResponse?

@akosyakov The actual improvement we want is to remove respond of listTeam members property, so we need to update public api server. Once it's been removed, dashboard with old version will be broken.

In this case, deprecate or optional is the same. No compatibility if upgrade from old version

So if we thought this page/APIs are important and need more compatibility, then we should never deprecate related proto, But add new API and deprecate old API after a long time like x months


But I also ask questions for compatibility rollout [slack]. If we add compatibility code, it should be there for x months, I don't like it.

And we also want to introduce real PAPI, then the compatibility code will be 🤯


Or you mean that, check to code to see if optional members and invitation not affect anything important? We check isOwner from members, so it can affect lots of places

Copy link
Member

Choose a reason for hiding this comment

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

We chatted today with Milan/Chris/Sven and outcome was to ensure order of component deployments in Dedicated and Cloud. Maybe it is what we should look next instead.

And particularly this time we will simply wait for complete rollout? let's chat tomorrow?

@mustard-mh
Copy link
Contributor Author

Close since this will be addressed with new papi org service

@mustard-mh mustard-mh closed this Nov 1, 2023
@mustard-mh mustard-mh deleted the hw/papi-list-team-dashboard branch November 1, 2023 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants