appuio / cloud-portal

APPUiO Cloud Portal (Web Frontend)
Apache License 2.0
5 stars 0 forks source link

Edit existing Billing #523

Closed ccremer closed 1 year ago

ccremer commented 1 year ago

Summary

As Portal user\ I want to edit existing Billing entities\ So that I can update the contact information

Context

The billing entities should also be editable to fix/change an address or invoice recipient.

The "Create Billing" form in #522 is a prerequisite, as it may be using the same form for editing.

Out of Scope

No response

Further links

Acceptance Criteria

Given I can see the "Edit Billing" icon/button for a billing entity
When I click it
Then I am navigated to the "Edit Billing" form
And the form is initially filled with the existing values

Given I have filled out the "Edit Billing" form
When I click the button "Save"
Then the BillingEntity is updated in Kubernetes
And I am navigated back to the previous view.

Implementation Ideas

corvus-ch commented 1 year ago

To elaborate on I can see the "Edit Billing" icon/button:

This is the case if the user has the permission to edit the BillingEntity. This should be checked with the can-i API. Also needs to be checked for each record individually (users might have the permission to edit one BillingEntity but only view to others).