-
Notifications
You must be signed in to change notification settings - Fork 32
CON-72 admin turn device online mutation #454
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
base: develop
Are you sure you want to change the base?
Conversation
d0f43df
to
361722d
Compare
- allow admin to turn device online after it was offline [Finishes CON-72]
361722d
to
df85120
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.
Mutation works as expected. You could consider enhancing the message as I have advised. Good work.
exact_device = result.filter( | ||
DevicesModel.id == device_id | ||
).first() | ||
if not exact_device: |
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.
@Arusey, you could make the message a bit more specific. When the device is online and the user tries to turn the device online, the message Device not found
is a bit confusing. You can make the message to be Device not found or already turned online
.
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.
noted
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.
Hi @Arusey I cant run migrations, are there changes I need to make in order to test out this PR?
Description
This Pull request allows an administrator for the converge web app to turn a device to online after it was offline.
Type of Change
How can this be tested
make migrate message="migration message"
pip install -r requirements.txt
How has this been tested
Checklist
####Screenshots
JIRA
CON-72