-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
ref(js): Remove heavyweight organization #28783
ref(js): Remove heavyweight organization #28783
Conversation
153f114
to
2f4a881
Compare
}); | ||
const org = TestStubs.Organization(); | ||
delete org.teams; | ||
delete org.projects; |
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.
should we remove the properties teams
and projects
from the Organization Stub?
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.
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( |
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.
this reminds me a lot of RTL 👏😀
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.
While it may look like I rewrote these tests, I actually just moved things around 😆
Tested this locally and it looks great!! 👏👏 |
Preload changes look good 👍 |
2f4a881
to
68f6df2
Compare
{/* 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)}> |
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.
eventually should we have these under the same <Route>
as the one above?
68f6df2
to
58a2299
Compare
Completely removes the
LightweightOranization
type. All organizations are now lightweight.All usages of
org.teams
andorg.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.