dirigible icon indicating copy to clipboard operation
dirigible copied to clipboard

[IDE] Generated application from Datasource with a space in the name puts spaces in areas not allowed

Open g051051 opened this issue 1 year ago • 1 comments

Describe the bug Generating an application from a model, which was itself generated from a Datasource, allows spaces in places where they shouldn't be allowed. If the Datasource has a space in the name, the resulting application, while functional, will contain spaces in places where they aren't technically allowed. For example, consider a project generated from a Datasource called "My DEV". The generated project will be named "My DEV", and the generated application will contain perspective.extension and perspective-portal.extension files which contain a space, which the perspective editor considers to be invalid: My DEV/gen/ui/api_token/perspective.js.

To Reproduce Follow the steps in the "Generate Application from Datasource" tutorial (https://www.dirigible.io/help/tutorials/modeling/generate-application-from-datasource/), but when creating the Datasource, use a space in the name.

Expected behavior A valid project and application is generated

Screenshots N/A

Desktop (please complete the following information):

  • OS: Linux
  • Browser: Microsoft Edge
  • Version: 123.0.2420.65

Smartphone (please complete the following information): N/A

Additional context Add any other context about the problem here.

g051051 avatar Apr 03 '24 16:04 g051051

Related to #3793

StanZGenchev avatar Apr 24 '24 06:04 StanZGenchev