In preparation of using attachments for storing diagram images, we should unify the way we get diagram images. If we provide the diagram_cache to capellambse, we can get the cached diagram image directly from the diagram capella object. If the diagram is not in the diagram cache an error image will be generated instead. This way diagrams missing in the diagram cache, but present in the model, would not silently be deleted from Polarion (as it is currently the case) and would get this error image instead.
In preparation of using attachments for storing diagram images, we should unify the way we get diagram images. If we provide the diagram_cache to capellambse, we can get the cached diagram image directly from the diagram capella object. If the diagram is not in the diagram cache an error image will be generated instead. This way diagrams missing in the diagram cache, but present in the model, would not silently be deleted from Polarion (as it is currently the case) and would get this error image instead.