Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Major Tom 2: A missão #2031

Merged
merged 1 commit into from Sep 19, 2023

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
core/services/major_tom/requirements.txt Outdated Show resolved Hide resolved
core/services/major_tom/major_tom.py Outdated Show resolved Hide resolved
core/services/major_tom/major_tom.py Outdated Show resolved Hide resolved
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

core/services/major_tom/src/metrics.py Show resolved Hide resolved
core/services/major_tom/major_tom.py Outdated Show resolved Hide resolved
core/services/major_tom/main.py Show resolved Hide resolved
core/services/major_tom/src/metrics.py Outdated Show resolved Hide resolved
core/services/major_tom/src/core.py Outdated Show resolved Hide resolved
core/services/major_tom/src/core.py Outdated Show resolved Hide resolved
core/services/major_tom/src/core.py Outdated Show resolved Hide resolved
core/services/major_tom/src/core.py Outdated Show resolved Hide resolved
core/services/major_tom/setup.py Outdated Show resolved Hide resolved
@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

core/services/major_tom/src/core.py Outdated Show resolved Hide resolved
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
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-needed Change needs to be documented
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants