Skip to content

refactor!: modify the response for query.ALERTS - #119

Merged
palazzem merged 4 commits into
palazzem:mainfrom
xtimmy86x:xtimmy86x/refactor-alerts
Oct 17, 2023
Merged

refactor!: modify the response for query.ALERTS#119
palazzem merged 4 commits into
palazzem:mainfrom
xtimmy86x:xtimmy86x/refactor-alerts

Conversation

@xtimmy86x

Copy link
Copy Markdown
Contributor

Related Issues

Proposed Changes:

This PR propose to modify how the alerts are reported by the query.ALERTS to align the structure as query.SECTORS or query.INPUTS

Testing:

Extra Notes (optional):

old structrure: 'alarm_led': 0
new structure: 0: {"name": "alarm_led", "status": False}

Checklist

  • Related issues and proposed changes are filled
  • Tests are defining the correct and expected behavior
  • Code is well-documented via docstrings

@palazzem palazzem left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I think this is a great change to make consistent responses, especially now that we unified the query() function. The only thing we should discuss is how to handle anomalies_led as in the test it should be False as a value of 1, represents no anomalies.

Let's discuss more!

Comment thread tests/test_client.py Outdated
@palazzem palazzem changed the title refactor: modify the response of query.ALERTS refactor!: modify the response for query.ALERTS Oct 17, 2023

@palazzem palazzem left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Perfect, let's merge it! Thank you so much!

@palazzem
palazzem merged commit 26b4d8a into palazzem:main Oct 17, 2023
@xtimmy86x
xtimmy86x deleted the xtimmy86x/refactor-alerts branch October 20, 2023 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants