balena-supervisor
balena-supervisor copied to clipboard
Remove releaseId and imageId from container names
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
@cywang117 remember to take a look at this when you get a chance
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