Skip to content

Conversation

Williangalvani
Copy link
Member

This creates Major Tom, again. The code is mostly by @voorloopnul

This leverages on loguru to store and rotate the data.

@CLAassistant
Copy link

CLAassistant commented Aug 24, 2023

CLA assistant check
All committers have signed the CLA.

@Williangalvani Williangalvani force-pushed the major_tomv2 branch 5 times, most recently from 7d2ef8d to eb7d5f1 Compare August 24, 2023 16:23
@ES-Alexander ES-Alexander added the docs-needed Change needs to be documented label Sep 12, 2023
@Williangalvani Williangalvani force-pushed the major_tomv2 branch 8 times, most recently from 86e574a to 8a4566b Compare September 14, 2023 21:01
@Williangalvani Williangalvani marked this pull request as ready for review September 14, 2023 21:07
def installed_version(self) -> Optional[VersionInfo]:
try:
req = requests.get("http://localhost/version-chooser/v1.0/version/current", timeout=3)
if req.status_code == 200:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if req.status_code == 200:
if req.status_code == http.client.OK:

Copy link
Member Author

Choose a reason for hiding this comment

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

nice

Copy link
Member

Choose a reason for hiding this comment

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

missing

@Williangalvani Williangalvani force-pushed the major_tomv2 branch 6 times, most recently from c94406e to 20b05af Compare September 15, 2023 17:31
@Williangalvani Williangalvani force-pushed the major_tomv2 branch 2 times, most recently from 18672fc to 89edc8a Compare September 18, 2023 16:44
def installed_version(self) -> Optional[VersionInfo]:
try:
req = requests.get("http://localhost/version-chooser/v1.0/version/current", timeout=3)
if req.status_code == 200:
Copy link
Member

Choose a reason for hiding this comment

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

missing

timestamp: str
hardware_id: str
blueos_id: str
data: dict[str, Any]
Copy link
Member

Choose a reason for hiding this comment

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

Since this is a generic dict, aren't we supposed to have the serialized data with a defined type property to specify what is exactly in this field ?

Like:

data: {
    type: 'AnonymousTelemetryRecord'
    ...
}

Copy link
Member

@patrickelectric patrickelectric left a comment

Choose a reason for hiding this comment

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

Nice!

@patrickelectric patrickelectric merged commit ad81419 into bluerobotics:master Sep 19, 2023
@ES-Alexander ES-Alexander removed the docs-needed Change needs to be documented label Oct 6, 2024
@ES-Alexander
Copy link
Collaborator

Feature was removed before being in a stable release, so no need for docs.

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.

5 participants