Introduce devfile operations module

Issue: Backend: Add devfile_operations module to handl... (#545662 - closed)

What does this MR do and why?

Introduce devfile operations module

This module will be used to perform devfile validation operations. When creating a workspace, we will call the files from this module.

The changes done in this MR are as follows

  • Move ee/lib/remote_development/workspace_operations/create/devfile_flattener.rb to ee/lib/remote_development/devfile_operations/flattener.rb.
  • Move ee/lib/remote_development/workspace_operations/create/devfile_validator.rb to ee/lib/remote_development/devfile_operations/validator.rb.
  • Move parse_devfile_yaml logic from ee/lib/remote_development/workspace_operations/create/devfile_fetcher.rb to ee/lib/remote_development/devfile_operations/yaml_parser.rb.
  • Introduce ee/lib/remote_development/devfile_operations/main.rb which will be used by the GraphQL endpoint to validate devfile YAMLs.
  • Remove ee/lib/remote_development/workspace_operations/create/devfile_validator.rb and call the devfile validation processing directly.

References

Screenshots or screen recordings

Before After

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Vishal Tak

Merge request reports

Loading