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.rbtoee/lib/remote_development/devfile_operations/flattener.rb. - Move
ee/lib/remote_development/workspace_operations/create/devfile_validator.rbtoee/lib/remote_development/devfile_operations/validator.rb. - Move
parse_devfile_yamllogic fromee/lib/remote_development/workspace_operations/create/devfile_fetcher.rbtoee/lib/remote_development/devfile_operations/yaml_parser.rb. - Introduce
ee/lib/remote_development/devfile_operations/main.rbwhich will be used by the GraphQL endpoint to validate devfile YAMLs. - Remove
ee/lib/remote_development/workspace_operations/create/devfile_validator.rband 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