Skip to content

Allow user to commit new files in pipeline editor

Frédéric Caplette requested to merge pipeline-editor-empty-state-3 into master

What does this MR do?

This changes how graphQL mutations work on the FE to commit files. We check if we should create a new file or update an existing one, so users can now create new files if required.

If you want to test it locally:

  • Enable flag pipeline_editor_empty_state_action
  • Create a new project
  • Go in the pipeline editor section (CI/CD => Editor)
  • You will see an empty state
  • Click "get started"
  • Add any text in the editor
  • Commit the file
  • Notice the success message!
  • Change the content again
  • Commit again
  • Should also give you a success message

Note: When typing content in the editor in a project without a repository, you will get a linting error. This is currently being worked on from the BE side: #323223 (closed)

Screenshots (strongly suggested)

Commits

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

We need to make sure the commit functionality keeps working as intented.

Edited by Frédéric Caplette

Merge request reports