Skip to content

feat(device_manager): reset connectivity#74

Merged
Th3Un1q3 merged 5 commits intodevelopmentfrom
device_reset_connectivity
Jul 5, 2022
Merged

feat(device_manager): reset connectivity#74
Th3Un1q3 merged 5 commits intodevelopmentfrom
device_reset_connectivity

Conversation

@ArturLazarenko
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

@Th3Un1q3 Th3Un1q3 left a comment

Choose a reason for hiding this comment

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

There are a few things to fix before it's ready.

Make sure PR follows:
https://github.com/angular/angular/blob/main/CONTRIBUTING.md#commit-body

No exclamation mark, scope of change, description of breaking change.

Comment thread docs/sphinx/examples.rst

Manage device connectivity
~~~~~~~~~~~~~~~~~~~~~~~~~~

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comment thread emnify/modules/device/models.py Outdated

class DeviceConnectivityStatus(BaseModel):
"""
Model for device connectivity status
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No need in such a literal comment. It does not add any info.
Consider what else would user need to know about this class. For example what is connectivity status?

Comment thread tests/test_emnify.py Outdated
def test_reset_connectivity(self):
emnify = emnify_client(app_token=self.token)
device_id = 12132821
emnify.devices.reset_connectivity_data(device_id=device_id)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does it make sense to test response here?

Comment thread tests/test_emnify.py Outdated
def test_reset_connectivity_network(self):
emnify = emnify_client(app_token=self.token)
device_id = 12132821
emnify.devices.reset_connectivity_network(device_id=device_id)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

no test for response

Comment thread emnify/modules/device/manager.py Outdated

def reset_connectivity_network(self, device_id: int) -> True:
"""
Method for resetting device connectivity network
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Here and below comments are not descriptive.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jul 3, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

93.6% 93.6% Coverage
0.0% 0.0% Duplication

@Th3Un1q3 Th3Un1q3 changed the title feat!: device reset connectivity and sonar fixes feat(device_manager): reset connectivity Jul 5, 2022
@Th3Un1q3 Th3Un1q3 merged commit 601dc40 into development Jul 5, 2022
@delete-merged-branch delete-merged-branch Bot deleted the device_reset_connectivity branch July 5, 2022 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants