-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 organization v2 shapes #18970
Conversation
/gh run recreate-vm Comment triggered a workflow runStarted workflow run: 6629347394
|
/gh run recreate-vm=true Comment triggered a workflow runStarted workflow run: 6675577882
|
be4755b
to
1c87ad6
Compare
1c87ad6
to
a445acf
Compare
a445acf
to
b86086e
Compare
/gh run recreate-vm=true Comment triggered a workflow runStarted workflow run: 6729736370
|
c2332ab
to
f7bc0c2
Compare
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.
Tested and I didn't notice any issues. My biggest question/concern is around the serialization of what we put in the query cache, and starting to store instances of objects vs. plain serialized objects. That's been a problem in a few past projects I've worked on and would be good to avoid if we can.
components/dashboard/src/data/organizations/org-settings-query.ts
Outdated
Show resolved
Hide resolved
components/dashboard/src/data/organizations/org-settings-query.ts
Outdated
Show resolved
Hide resolved
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 retested with JSON-RPC shim and everything seems to work, but #18970 (comment)
I'm not sure whether it is related to this PR, maybe the same in production.
/hold
Since we need to align with Brad about caching. It seems there is another more explicit proposal, but I'm not entirely sure.
I added checks and error logs, and this reveals that we actually stored messages as json before already just didn't notice. 🙈 |
36ca0a1
to
3b5e424
Compare
/gh run recreate-vm Comment triggered a workflow runStarted workflow run: 6759639337
|
8f88790
to
18d47f4
Compare
components/dashboard/src/data/organizations/update-org-settings-mutation.ts
Show resolved
Hide resolved
18d47f4
to
7b15435
Compare
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.
everything seems to work, there are some inconsistency with out styles:
- using plural in List instead of items
- not returning full objects from Update
But I'm happy to reconsider styles now since these are first services.
7b15435
to
0fbe813
Compare
/unhold |
Description
Changes the dashboard to use the shapes of the new Organization API V2.
Summary generated by Copilot
🤖 Generated by Copilot at 8368f16
Refactor the dashboard components and data modules to use the new public API for organizations and members. Add a new
slug
field to theOrganization
type in the public API and the corresponding converter and test methods.Related Issue(s)
Fixes #
How to test
Verify the change has no effect on any of the organization-related functionality in dashboard.
As an owner you should
Join another org as a member and check
As a member you should not be able to change settings.
Documentation
Preview status
Gitpod was successfully deployed to your preview environment.
Build Options
Build
Run the build with werft instead of GHA
Run Leeway with
--dont-test
Publish
Installer
Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
If enabled this will build
install/preview
If enabled this will create the environment on GCE infra
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh
. If enabled,with-preview
andwith-large-vm
will be enabled./hold