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

Switchsettings #71

Merged
merged 25 commits into from
Mar 5, 2021
Merged

Switchsettings #71

merged 25 commits into from
Mar 5, 2021

Conversation

RaHoni
Copy link
Member

@RaHoni RaHoni commented Feb 27, 2021

This adds the ability to change the config of a switch via the GUI
One of the Pages for #23

RaHoni and others added 25 commits February 20, 2021 23:13
…e because the test was an or where it should have been an and.
…d renamed them to be lowercase at the beginning
…ommand. In case of an exception the exception gets returned.
Instead of assuming that a command with no return was successful it will now fail without a return.
In case the return is an exception it will now send a Websocket error message.
And now it also support sending a success Fail response.
This is so that it can be modified when the switch needs to be exchanged.
This may be changed in the future if we encounter performance issues with the map.
 because they are needed for the new functions that we are implementing in the web GUI. And because to delete or change a Device you had to shutdown the Server and manually edit the H2 database or just deleted the database and just setup everything again.
Currently it handles only change the config of a switch.
@RaHoni RaHoni added enhancement New feature or request Important Must be done in near future BLL labels Feb 27, 2021
@RaHoni RaHoni added this to the GUI milestone Feb 27, 2021
@RaHoni RaHoni requested a review from maximiliani February 27, 2021 22:51
@RaHoni RaHoni self-assigned this Feb 27, 2021
Copy link
Member

@maximiliani maximiliani left a comment

Choose a reason for hiding this comment

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

Good work!

`state` decimal(5,4) NOT NULL,
`keepState` boolean NOT NULL,
`keepstate` boolean NOT NULL,
Copy link
Member

Choose a reason for hiding this comment

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

WHY?!!! Why do you changed away from camelCase?

Copy link
Member Author

Choose a reason for hiding this comment

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

Simply because it gave weird errors were the higher level API made it to something like keep_state so this was the easiest way.

@RaHoni RaHoni merged commit 566eeaf into Dev Mar 5, 2021
@RaHoni RaHoni deleted the switchsettings branch March 8, 2021 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Important Must be done in near future
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants