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

fix Error: <WorldUsersProvider/> not found in a more holistic way #1769

Merged
merged 27 commits into from
Jul 10, 2021

Conversation

goran-peoski-work
Copy link
Contributor

@goran-peoski-work goran-peoski-work commented Jul 9, 2021

Should fix Error: <WorldUsersProvider/> not found in Admin components that was introduced in #1703. One such issue is Edit Room in Admin v1 panel.

Partial fix to https://github.com/sparkletown/internal-sparkle-issues/issues/886

partially fixes https://github.com/sparkletown/internal-sparkle-issues/issues/839

fixes https://github.com/sparkletown/internal-sparkle-issues/issues/904

fixes https://github.com/sparkletown/internal-sparkle-issues/issues/905

Reverts and supercedes #1757

@codeclimate
Copy link

codeclimate bot commented Jul 9, 2021

Code Climate has analyzed commit 14c83db and detected 3 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1
Duplication 2

View more on Code Climate.

Copy link
Contributor

@0xdevalias 0xdevalias left a comment

Choose a reason for hiding this comment

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

We probably don't want to add this in to src/components/organisms/WithNavigationBar/WithNavigationBar.tsx I don't think, but should be wrapping at a higher level (eg. potentially in the admin subrouter, or possibly could be around all of the routes maybe..? Not 100%

@goran-peoski-work
Copy link
Contributor Author

goran-peoski-work commented Jul 9, 2021

Possible edge case bug, by @0xdevalias :

because admin lets you jump around between all sorts of venues, not just related venues. And since the venueId is passed into it, and that used to get the sovereign venue, but the sovereign venue cached forever currently, if we switch out of a related venue it will return the wrong users.

OOS for this fix, should be addressed/superseded/rendered moot by latter Admin development PRs

(cc // @mike-lvov FYI)

@goran-peoski-work goran-peoski-work requested review from 0xdevalias and a team July 9, 2021 07:34
@goran-peoski-work
Copy link
Contributor Author

@sofisparkle Ready for review

@0xdevalias 0xdevalias changed the title Add WorldUsersProvider as a wrapper in WithNavigationBar Add WorldUsersProvider as a wrapper in AdminSubrouter Jul 9, 2021
Copy link
Contributor

@0xdevalias 0xdevalias left a comment

Choose a reason for hiding this comment

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

A tiny cleanup + a question about how it actually works.

Also, can you please check if it’s going to be needed for any of the other routes in AppRouter.

I know for a fact that VenueAdminPage (/in/:venueId/admin) needs it, as that’s the one that broke the banner admin (and it’s not part of the admin subrouter), but I expect there will be other places too.

@0xdevalias 0xdevalias added the 🐛 bug A bug, error, issue, problem, etc within the platform. label Jul 9, 2021
@0xdevalias 0xdevalias changed the title Add WorldUsersProvider as a wrapper in AdminSubrouter fix Error: <WorldUsersProvider/> not found in a more wholistic way Jul 9, 2021
@0xdevalias 0xdevalias changed the title fix Error: <WorldUsersProvider/> not found in a more wholistic way fix Error: <WorldUsersProvider/> not found in a more holistic way Jul 9, 2021
@goran-peoski-work goran-peoski-work temporarily deployed to feature-preview July 9, 2021 08:32 Inactive
@github-actions
Copy link

github-actions bot commented Jul 9, 2021

Visit the preview URL for this PR (updated for commit 14c83db):

https://co-reality-staging--preview-pr-1769-x4vdat1z.web.app

(expires Sat, 17 Jul 2021 10:19:25 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

@goran-peoski-work goran-peoski-work temporarily deployed to feature-preview July 9, 2021 09:59 Inactive
@goran-peoski-work goran-peoski-work requested a review from a team July 9, 2021 09:59
@goran-peoski-work
Copy link
Contributor Author

@sofisparkle ready for review

@goran-peoski-work goran-peoski-work temporarily deployed to feature-preview July 9, 2021 10:22 Inactive
@0xdevalias 0xdevalias temporarily deployed to feature-preview July 10, 2021 04:20 Inactive
@0xdevalias 0xdevalias temporarily deployed to feature-preview July 10, 2021 04:29 Inactive
@0xdevalias 0xdevalias temporarily deployed to feature-preview July 10, 2021 06:37 Inactive
@0xdevalias 0xdevalias temporarily deployed to feature-preview July 10, 2021 06:47 Inactive
@ermiaSparkle ermiaSparkle temporarily deployed to feature-preview July 10, 2021 07:12 Inactive
@github-actions github-actions bot added the 💎 styles For (S)CSS style related issues/changes/improvements/etc. label Jul 10, 2021
@0xdevalias
Copy link
Contributor

0xdevalias commented Jul 10, 2021

@ermiaSparkle Why did you do this? You shouldn't be merging anything into this branch..

image

@ermiaSparkle
Copy link
Contributor

@0xdevalias
Soooooooooooooooooo sorry
I was going to apply his changes to mine. not mine to his
:((((((((((((((((((((((((((((((((((((((((((
How can I fix it?

@0xdevalias 0xdevalias temporarily deployed to feature-preview July 10, 2021 10:04 Inactive
@github-actions github-actions bot removed the 💎 styles For (S)CSS style related issues/changes/improvements/etc. label Jul 10, 2021
@0xdevalias
Copy link
Contributor

How can I fix it?

@ermiaSparkle I've pulled the branch and rebased it to remove your commits, then force pushed it, so should be fixed now.

image

@0xdevalias 0xdevalias temporarily deployed to feature-preview July 10, 2021 10:06 Inactive
@0xdevalias 0xdevalias temporarily deployed to feature-preview July 10, 2021 10:13 Inactive
@0xdevalias 0xdevalias temporarily deployed to feature-preview July 10, 2021 10:16 Inactive
@0xdevalias 0xdevalias self-assigned this Jul 10, 2021
Copy link
Contributor

@0xdevalias 0xdevalias left a comment

Choose a reason for hiding this comment

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

LGTM! :shipit: 🚄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug A bug, error, issue, problem, etc within the platform.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants