Repository navigation
all/frontend: One name for a tenant - #92
Merged
Merged
Conversation
A tenant has one name, a slug. The creation form has one field, which says the rules of the name as the person types, and sends no display name; the tenant page has no form to rename it (the API has no such route any more). The name is what every title, the tenant menu, the list of tenants and the choice of a tenant for an API key show. Closes #59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A tenant has one name: its slug (phorge-fr/phorge-api#118, merged).
/new): one field. The rules of the name are said as the person types (starts with a lowercase letter, lowercase letters, digits and hyphens, 2 to 28 characters), in a polite live region, with the one help text that says the name is in the addresses and the project and cannot change. The form sends{ name }and nothing else.updateaction are gone, withpatchTenant: the API has noPATCHof a tenant any more (405). The page title and header show the name.docs/reference/configuration.mdsays it. ThedisplayNameof an API key is another thing and stays.Order of deployment
The API release with this change (phorge-fr/phorge-api#144, 0.16.0) answers
400to a creation that sendsdisplayName, and405to aPATCHof a tenant. This console no longer sends either, so it must be deployed first; it works against the API as it is today too (nodisplayNameis a normal creation).Tests
pnpm check(0 errors, 0 warnings),pnpm lintandpnpm buildpass; the docs check passes.Closes #59