Repository navigation
Remove @payloadcms/plugin-multi-tenant - #570
Conversation
14d1156 to
37a3c8a
Compare
37a3c8a to
2961b1a
Compare
b4d9bfe to
45eabc6
Compare
There was a problem hiding this comment.
What am I missing here?
There was a problem hiding this comment.
Can we make this a decision doc instead?
stevekuznetsov
left a comment
There was a problem hiding this comment.
Mechanically looks right
busbyk
left a comment
There was a problem hiding this comment.
Do we need to colocate the code we're taking from the multi tenant plugin in it's own @/plugins directory? I'm assuming that we're going to start modifying this code as some point and was thinking that we would integrate it fully into our codebase. So using our current organizational structure with fields, components, providers, utilities, etc.
I'm just thinking about how multi tenancy is core to our application vs. being truly a plugin. Thoughts?
I left comments on each file where I think they should go and the rest in the @/plugins/multiTenant folder could go in @/utilities/tenancy.
| .tenantField { | ||
| &__wrapper { | ||
| margin-top: calc(-0.75 * var(--spacing-field)); | ||
| margin-bottom: var(--spacing-field); | ||
| width: 25%; | ||
| } | ||
| &__hr { | ||
| width: calc(100% + 2 * var(--gutter-h)); | ||
| margin-left: calc(-1 * var(--gutter-h)); | ||
| background-color: var(--theme-elevation-100); | ||
| height: 1px; | ||
| margin-bottom: var(--spacing-field); | ||
| } | ||
| } |
There was a problem hiding this comment.
We never display this field right? Could we remove these styles if they'll never be applied? Maybe we do actually want them for when the debug option is true in case we ever want that locally?
There was a problem hiding this comment.
We do use this field as the field component - it should make more sense now with the code in the proper folders
There was a problem hiding this comment.
Can we make this a decision doc instead?
I thought we wanted to try to maintain it as a plugin, but it makes sense to fold it into our current structure. I moved everything into their respective folders. |
busbyk
left a comment
There was a problem hiding this comment.
Looks good!
Are we still getting that behavior with the GlobalViewRedirect where there's an infinite redirect loop when a document doesn't exist yet for a tenant?
I am not sure. I removed a home page locally for an AC and it did not loop. We might see it again when we add a new AC |
Description
TenantSelectorto plugin folderIssue
Resolves #552