Skip to content

Conversation

@tsagadar
Copy link
Collaborator

@tsagadar tsagadar commented Apr 2, 2025

The following commits address the issues raised in #279 / #280.

Create a draft pull request to get quick initial feedback on the implementation. Also will have to do manual testing, current changes are only validated by the unit tests.

Note: it contains a breaking change moving from ddi to the default tenant endpoint. In existing installations this can be reverted by setting the config.

Copy link
Member

@b-rowan b-rowan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good I think, but not sure I like using id as a variable name since it is a built-in, maybe device_id is better?

tsagadar added 3 commits April 2, 2025 16:18
Migrating from hawkBit it is likely to have tenant default in use.
So this change makes it less painful to migrate while existing installations
can overwrite the setting to the previous value "ddi".
Running `poetry run pre-commit run --all-files` resulted in the following error:
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate

Not loosing much if html|md|yml|yaml are no longer formatted. Maybe someone
finds a fix / better solution for this.
@tsagadar tsagadar force-pushed the mm/base-functionality-fixes branch from 8b1e2b9 to 34ce050 Compare April 2, 2025 14:20
@tsagadar tsagadar marked this pull request as ready for review April 2, 2025 14:27
tsagadar added 5 commits April 2, 2025 16:31
The id can be any string with max length of 255 characters. So calling
it uuid is just confusing.
swupdate does not only support SemVer. So the version handling logic
should be wrapped in our own implementation so that the swupdate
behavior can be replicated.
This allows for a simple setup where one has only one type of hardware.
@tsagadar tsagadar force-pushed the mm/base-functionality-fixes branch from 34ce050 to dc33284 Compare April 2, 2025 14:31
@tsagadar tsagadar merged commit 86cf2ff into UpstreamDataInc:master Apr 2, 2025
5 checks passed
@tsagadar tsagadar deleted the mm/base-functionality-fixes branch April 2, 2025 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants