Repository navigation
all/frontend: Edit the settings and the size of a profile - #93
Merged
Merged
Conversation
The page of a profile made by a person has an edit form: the description, the vCPU, the memory and the disk, the secure boot and the SSH
keys, filled with what the profile has. Only what differs is sent to PATCH /v1/tenants/{t}/profiles/{name}.
What the API refuses (a smaller disk while a machine has the profile, less memory while one that has it runs, a size over the limits of
the tenant) is shown as the API says it. The console never stops a machine.
Closes #82
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
The page of a profile a person made gets its edit form, in the section "Change this profile" (it said that a profile cannot change). It follows the rule of #68: the edit is on the page of the object, as for a network.
secureBoot: null) and SSH keys (an empty field removes them,sshPublicKeys: []).PATCH /v1/tenants/{t}/profiles/{name}(Edit a profile in the API phorge-api#135, merged). Nothing different is "Nothing to change." and no request.409,in_use, naming the machines), less memory while one that has it runs (409,running: stop it, change the profile, start it again), a size that takes the tenant over its limits (409,quota_exceeded). The console never stops or starts a machine behind the button.s,mandlhave no form, and thesaveaction refuses them without calling the API.docs/reference/configuration.mdandconsole-patterns.mdare updated.Deployment
The route exists in
mainof the API but is not deployed until the API 0.16.0 is released (phorge-fr/phorge-api#144), which itself waits for #59 to be deployed. Before that, saving this form answers405and the page shows "The profile was not changed" with the API's answer.Tests
pnpm check(0 errors, 0 warnings),pnpm lintandpnpm buildpass; the docs check passes.nulland[]cases and the wording are read from the code, not seen.Closes #82