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

ref(js): Remove heavyweight organization #28783

Merged

Conversation

evanpurkhiser
Copy link
Member

@evanpurkhiser evanpurkhiser commented Sep 23, 2021

Completely removes the LightweightOranization type. All organizations are now lightweight.

All usages of org.teams and org.projects have been removed, all components now read out of the projects and teams store, meaning there is no need to ever hydrate the full object.

});
const org = TestStubs.Organization();
delete org.teams;
delete org.projects;
Copy link
Member

Choose a reason for hiding this comment

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

should we remove the properties teams and projects from the Organization Stub?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah we should.

I will be following up with more test cleanup

await tick();
wrapper.update();
expect(wrapper.text()).toContain('Deletion Scheduled');
expect(wrapper.text()).toContain(
Copy link
Member

Choose a reason for hiding this comment

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

this reminds me a lot of RTL 👏😀

Copy link
Member Author

Choose a reason for hiding this comment

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

While it may look like I rewrote these tests, I actually just moved things around 😆

@priscilawebdev
Copy link
Member

Tested this locally and it looks great!! 👏👏

@k-fish
Copy link
Member

k-fish commented Sep 23, 2021

Preload changes look good 👍

{/* A route tree for lightweight organizational detail views.
This is strictly for deprecated URLs that we need to maintain */}
<Route component={errorHandler(LightWeightOrganizationDetails)}>
<Route component={errorHandler(OrganizationDetails)}>
Copy link
Contributor

Choose a reason for hiding this comment

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

eventually should we have these under the same <Route> as the one above?

@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/ref-js-remove-heavyweight-organization branch from 68f6df2 to 58a2299 Compare September 24, 2021 20:02
@evanpurkhiser evanpurkhiser merged commit c171d4a into master Sep 24, 2021
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/ref-js-remove-heavyweight-organization branch September 24, 2021 20:31
@github-actions github-actions bot locked and limited conversation to collaborators Oct 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants