structurizr / lite

Structurizr Lite
https://docs.structurizr.com/lite
MIT License
226 stars 26 forks source link

Structurizr overwrites manual allocation of the elements #130

Closed OlegKunitsyn closed 3 months ago

OlegKunitsyn commented 4 months ago

Description

Views with manual layouts overwritten in structurizr.editable=false mode, anyway. There should be a way to make workspace.json really read-only. Update: Structurizr resets allocations of the elements in the named views voiding the hours of work. It's a bug IMO.

Priority

I have no budget and there's no rush, please add this feature for free

More information

image

OlegKunitsyn commented 4 months ago

Workaround for docker compose: :ro flag mounting the folder Workaround for K8S: set 444 permissions on workspace.json

simonbrowndotje commented 3 months ago

The file system needs to be writeable - Lite parses the DSL file to create the JSON file, with structurizr.editable=false making the diagrams non-editable from the UI. I think you're running into a different issue, but I'm unable to reproduce it given the limited information provided unfortunately.

OlegKunitsyn commented 3 months ago

Non-editable diagrams should be non-editable completely. ATM the embedding via iframe overwrites diagrams.

simonbrowndotje commented 3 months ago

Embedding diagrams via an iframe isn't supported by Lite, so I'd recommend using the on-premises installation instead -> https://docs.structurizr.com/onpremises/embed#iframe-embed

OlegKunitsyn commented 3 months ago

I see the business points, with full respect.

For the community. EmbedController has 2 endpoints for embedding. The Lite can be deployed in the Intranet and integrated with Confluence using iframe and /workspace/embed endpoint.

simonbrowndotje commented 3 months ago

I see the business points, with full respect. For the community.

The on-premises installation is free and open source too, with features specifically designed for embedding via an iframe -> https://github.com/structurizr/onpremises