Import Design and File Type Detection #657
Labels
issue/stale
Issue has not had any activity for an extended period of time
kind/enhancement
Improvement in current feature
Uh oh!
There was an error while loading. Please reload this page.
Current Behavior
There's a lack of central and holistically written logic that is singularly used for detecting and processing. The import of infrastructure is code files, as well as infrastructure is design (Meshery) files.
Example: There's duplication in the identification of Docker Compose files. The https://github.com/meshery/meshkit/blob/master/utils/detect_pattern_file_type.go is poorly written and needs to be displaced with the following logic. We're in need of consolidating file detection and file import functions.
Desired Behavior
Refer to the https://github.com/meshery/meshery/pull/13392/files and see the logical flow in pseudo code below.
Implementation
Sample client code in Meshery Server
/server/handlers/design/import.go
Sample MeshKit Logic
Sanitization
/utils/files/sanitize.go
Identification
/utils/files/identify.go
Conversion
/utils/files/convert.go
Acceptance Tests
Notes:
model import
behavior and vice-versa.1. Future: Add support for Meshery Views.
Mockups
Contributor Guides and Handbook
The text was updated successfully, but these errors were encountered: