Skip to content

Step FINAL - Add/remove snippet files in the edit view

Paul Slaughter requested to merge 217801-fe-multi-file-snippets into master

What does this MR do?

This MR allows for adding and removing multiple files in snippets. To do this in the best way possible, we need to do a bit of refactoring and move the complexity of calculating "diff actions" (the updates to the snippet used to make commit on the BE) form the parent edit.vue component into the snippet_blob_actions_edit.vue component. Then, it's just a matter of showing/hiding the buttons 😄

PLEASE NOTE: This feature is so good it's behind two feature flags!

Feature.enable(:snippet_multiple_files)
Feature.enable(:snippets_edit_vue)

Screenshots

Here's a walk-through of the original behavior which is preserved with the feature flag off, and the new behavior with the feature flag on:

https://youtu.be/buKsAtTenn0

Add button Delete button
Screen_Shot_2020-08-12_at_1.29.46_PM Screen_Shot_2020-08-12_at_1.30.01_PM

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

References

Edited by Paul Slaughter

Merge request reports