balena-supervisor icon indicating copy to clipboard operation
balena-supervisor copied to clipboard

Remove releaseId and imageId from container names

Open pipex opened this issue 2 years ago • 2 comments

The release id and image id are not really necessary for reporting the current state since v3 (it has been replaced by releaseUuid + imageName) and is only kept for backwards compatibility for some supervisor API endpoints.

Until now, both the releaseId and imageId were part of the container name, leading to longer names than desired. This change removes those values from the container name and modifies queries to look for the value in the image database.

This also removes imageId from the log stream, which was no longer used by the backend and should result in some bandwidth usage improvements

Change-type: minor Relates-to: #2077

pipex avatar Mar 02 '23 20:03 pipex

@cywang117 remember to take a look at this when you get a chance

pipex avatar Nov 28 '23 18:11 pipex

Will need to refactor this, I had not considered that, because of the git workflow, in a multi-app world you could have two apps pointing to the same release commit. Will probably need to keep the releaseId

pipex avatar Dec 14 '23 17:12 pipex