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

Refactor 'normalizedContextURL' property from Java class 'WorkspaceContext' as Optional #10596

Merged
merged 1 commit into from
Jun 13, 2022

Conversation

felladrin
Copy link
Contributor

@felladrin felladrin commented Jun 10, 2022

Description

Refactor 'normalizedContextURL' property from Java class 'WorkspaceContext' as Optional, because it can come null from the server, as you can see on the interface WorkspaceContext from components/gitpod-protocol/src/protocol.ts.

normalizedContextURL?: string;

Related Issue(s)

Issue raised by @mustard-mh in #10377 (review)

How to test

I haven't seen a case where the 'normalizedContextURL' of a workspace was null. And don't know if we can simulate it, but following the same How to test from #10377 should show it's working as expected. The difference is that we should use the gateway-plugin build generated by this PR instead.

Release Notes

NONE

Documentation

  • /werft --no-preview=true

Because it can come null from the server, as you can see on interface WorkspaceContext from `components/gitpod-protocol/src/protocol.ts`.
Copy link
Contributor

@mustard-mh mustard-mh left a comment

Choose a reason for hiding this comment

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

Test good in Gateway 2022.1.3

Img
image

I build a prev env which makes server.getWorkspaces and server.getWorkspace API respond without field normalizedContextURL, and it works well too

return res.map((e) => {
delete e.workspace.context.normalizedContextURL;
return e;
});

Workspaces Connection
image image

@roboquat roboquat merged commit 853b9e7 into main Jun 13, 2022
@roboquat roboquat deleted the felladrin/refactor-optional-property branch June 13, 2022 04:18
@roboquat roboquat added deployed: IDE IDE change is running in production deployed Change is completely running in production labels Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: IDE IDE change is running in production deployed Change is completely running in production editor: jetbrains release-note-none size/S team: IDE
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants