Skip to content

LocalFileModelRepository - Add support for "safe names" for predictable file paths #259

@mbrdev

Description

@mbrdev

Is your feature request related to a problem? Please describe.
Currently we are using things like Experiment Name and Deployment Name as part of file paths in the LocalFileModelRepository, if either of these names contain invalid characters for a file system path then we will be unable to save the files.

Describe the solution you'd like

  • Experiments would have a "safe name" that can be used in URLs and file paths, it would only support alphanumeric, hyphens, underscores and dot characters.
  • Deployments would have a "safe name" that can be used in URLs and file paths, it would only support alphanumeric, hyphens, underscores and dot characters.
  • All folder paths and/or URLs would use these safe names.

Describe alternatives you've considered

  • We discussed cleaning the names to remove any invalid character from the path, this however would result in unpredictable file paths
  • We discussed using just the IDs to form the paths but then this would make all paths unreadable
  • We discussed restricting the characters that can be used for naming but this may be undesired to change UI behaviour and display based on file system requirements

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions