-
Notifications
You must be signed in to change notification settings - Fork 25
Identify trento installation #472
Identify trento installation #472
Conversation
e32cdc4
to
15bf8bb
Compare
There are many Trento, but which one is the Trento ™️? |
15bf8bb
to
dc6769e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nelsonkopliku It looks good. Added some comments and questions before approving hehe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, but I have some doubts on the naming of the entity/service.
Trento
sounds a bit generic and since @dottorblaster is working on something like SystemSettings
maybe they could be the same Service/share the same entity?
@fabriziosestito That's correct what you say, there's a relation with what @dottorblaster is on. |
Makes me laugh, I was just thinking "how do I manage the ID column", then I saw that basically the Trento ™️ entity overlaps with my SystemSettings work. :D Do you wanna name that so and I rebase against your work @nelsonkopliku? |
dc6769e
to
64c6482
Compare
@dottorblaster sure thing! So my |
21675cd
to
53a941d
Compare
e45eb24
to
4eaaa1d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SMASH THAT MERGE BUTTON
settigsService.On("InitializeIdentifier").Return(uuid.MustParse("59fd8017-b7fd-477b-9ebe-b658c558f3e9"), nil) | ||
|
||
return settigsService | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dottorblaster take a look, we'll need the same approach for the premium/telemetry middleware, by just adding a On
clause to the mock
5aca739
to
7829bca
Compare
7829bca
to
772664e
Compare
This PR introduces Trento installation identification mechanism
This becomes needed when publishing telemetry data to the telemetry service.
A random UUID is generated once at trento startup and it gets stored in the database for future usage in the system
That value would stay unchanged until the database and specifically that simple information, for any reason, gets cleaned up.
In that case we interpreted the scenario as a new installation.