DAST Site profile - Form MVC - Add edit capability - Frontend
- backend counterpart: #227252 (closed)
Summary
This issue is for adding edit capability to the DAST Site profile form. At this point, the form should already have been created and should be able to create new DAST Site profiles. We now want to make it possible to edit existing profiles.
Designs
Implementation plan
-
Adapt the backend to make the edit page accessible. -
Add the edit route to ee/config/routes/project.rb
. -
Add the edit action to the controller ( ee/app/controllers/projects/dast_site_profiles_controller.rb
). -
The edit action should retrieve the profile's data so that it can be passed down to the Vue app down the line. -
Create/update ee/app/views/projects/profiles/site_profiles/edit.html.haml
so that the HAML passes the profile's data down to the Vue app.
-
-
The Vue app populates the fields with the data provided by the HAML. -
Submitting the form triggers a GraphQL mutation for updating the profile in the DB. -
When the mutation succeeds, redirect back to the profiles page. - [-]
Add a link to the edit form from the library.#233401 (closed)
Edited by Paul Gascou-Vaillancourt