-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Migrate npm #642
Migrate npm #642
Conversation
Codecov Report
@@ Coverage Diff @@
## main #642 +/- ##
==========================================
- Coverage 99.81% 96.39% -3.42%
==========================================
Files 54 54
Lines 2159 2165 +6
Branches 697 703 +6
==========================================
- Hits 2155 2087 -68
- Misses 4 78 +74
... and 4 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Kudos, SonarCloud Quality Gate passed! |
* save * disable scenarios tests for the moment
* Support querying and updating UniFi Networks Added INetwork.ts to provide a contract for the Network entity Added Network.ts to represent a network in UniFi Added Networks.ts to allow for querying all existing networks Updated Controller.ts to provide API to getNetworks Added unit tests for Network.ts Added unit tests for Networks.ts * update gitignore * 2FA don't work on non unifiOS (#639) * upgrade deps * fix(CI): repair snyk CI * fix(deps): fix dependencies * fix(deps): include lock file * unifi-client-638 2FA don't work on non unifiOS * follow sonar recommendation * Migrate npm (#642) * save * disable scenarios tests for the moment * move security snyk check on weekly actions * Support querying and updating UniFi Networks Added INetwork.ts to provide a contract for the Network entity Added Network.ts to represent a network in UniFi Added Networks.ts to allow for querying all existing networks Updated Controller.ts to provide API to getNetworks Added unit tests for Network.ts Added unit tests for Networks.ts * update gitignore * Address code review feedback for PR #641 Update Controller and IController to remove exposure of Networks - Networks are based on a Site and should not be exposed at that level Update Network - Renamed `save()` to `setEnabed()` to better describe the intent - Renamed `_updateDevice()` to `_update()` as this does not update a device and should be generic. Note that this is a protected method only called by `setEnabled()` currently. * Address code review feedback for PR #641 - Remove unused reference from IController (lint is your friend) - Update Network to require _id as opposed to name. The reason being that the _id is required to update or save a network with UniFi, not the name. - Update Network to support update() by taking a Partial<INetwork> requiring an _id. - Update Network to clean up the save() method. - Update Network.test - add support method expectNetworkEqual() - update construct::network tests to expect _id vs name - update functions::save tests to expect _id - update functions::update to test updating a network with only an id (no reason to query before) * Address code review feedback for PR #641 - Update Network to set _id as a readonly property in the constructor - Moved debug initialization out of import() - Modified update() - Omit the _id from the passed properties - Ensure that this._id is valid - Merge passed properties into this - Modifed save() - Ensure that this._id is valid - Remove merge of response as it's empty - Modified update unit tests - Removed check for a valid _id as it's now ignored - Added test that passes _id as properties to ensure it's correctly omitted * try CI permissions --------- Co-authored-by: Thibaut SEVERAC <thib3113@gmail.com>
* save * disable scenarios tests for the moment
* Support querying and updating UniFi Networks Added INetwork.ts to provide a contract for the Network entity Added Network.ts to represent a network in UniFi Added Networks.ts to allow for querying all existing networks Updated Controller.ts to provide API to getNetworks Added unit tests for Network.ts Added unit tests for Networks.ts * update gitignore * 2FA don't work on non unifiOS (thib3113#639) * upgrade deps * fix(CI): repair snyk CI * fix(deps): fix dependencies * fix(deps): include lock file * unifi-client-638 2FA don't work on non unifiOS * follow sonar recommendation * Migrate npm (thib3113#642) * save * disable scenarios tests for the moment * move security snyk check on weekly actions * Support querying and updating UniFi Networks Added INetwork.ts to provide a contract for the Network entity Added Network.ts to represent a network in UniFi Added Networks.ts to allow for querying all existing networks Updated Controller.ts to provide API to getNetworks Added unit tests for Network.ts Added unit tests for Networks.ts * update gitignore * Address code review feedback for PR thib3113#641 Update Controller and IController to remove exposure of Networks - Networks are based on a Site and should not be exposed at that level Update Network - Renamed `save()` to `setEnabed()` to better describe the intent - Renamed `_updateDevice()` to `_update()` as this does not update a device and should be generic. Note that this is a protected method only called by `setEnabled()` currently. * Address code review feedback for PR thib3113#641 - Remove unused reference from IController (lint is your friend) - Update Network to require _id as opposed to name. The reason being that the _id is required to update or save a network with UniFi, not the name. - Update Network to support update() by taking a Partial<INetwork> requiring an _id. - Update Network to clean up the save() method. - Update Network.test - add support method expectNetworkEqual() - update construct::network tests to expect _id vs name - update functions::save tests to expect _id - update functions::update to test updating a network with only an id (no reason to query before) * Address code review feedback for PR thib3113#641 - Update Network to set _id as a readonly property in the constructor - Moved debug initialization out of import() - Modified update() - Omit the _id from the passed properties - Ensure that this._id is valid - Merge passed properties into this - Modifed save() - Ensure that this._id is valid - Remove merge of response as it's empty - Modified update unit tests - Removed check for a valid _id as it's now ignored - Added test that passes _id as properties to ensure it's correctly omitted * try CI permissions --------- Co-authored-by: Thibaut SEVERAC <thib3113@gmail.com>
* save * disable scenarios tests for the moment
* Support querying and updating UniFi Networks Added INetwork.ts to provide a contract for the Network entity Added Network.ts to represent a network in UniFi Added Networks.ts to allow for querying all existing networks Updated Controller.ts to provide API to getNetworks Added unit tests for Network.ts Added unit tests for Networks.ts * update gitignore * 2FA don't work on non unifiOS (thib3113#639) * upgrade deps * fix(CI): repair snyk CI * fix(deps): fix dependencies * fix(deps): include lock file * unifi-client-638 2FA don't work on non unifiOS * follow sonar recommendation * Migrate npm (thib3113#642) * save * disable scenarios tests for the moment * move security snyk check on weekly actions * Support querying and updating UniFi Networks Added INetwork.ts to provide a contract for the Network entity Added Network.ts to represent a network in UniFi Added Networks.ts to allow for querying all existing networks Updated Controller.ts to provide API to getNetworks Added unit tests for Network.ts Added unit tests for Networks.ts * update gitignore * Address code review feedback for PR thib3113#641 Update Controller and IController to remove exposure of Networks - Networks are based on a Site and should not be exposed at that level Update Network - Renamed `save()` to `setEnabed()` to better describe the intent - Renamed `_updateDevice()` to `_update()` as this does not update a device and should be generic. Note that this is a protected method only called by `setEnabled()` currently. * Address code review feedback for PR thib3113#641 - Remove unused reference from IController (lint is your friend) - Update Network to require _id as opposed to name. The reason being that the _id is required to update or save a network with UniFi, not the name. - Update Network to support update() by taking a Partial<INetwork> requiring an _id. - Update Network to clean up the save() method. - Update Network.test - add support method expectNetworkEqual() - update construct::network tests to expect _id vs name - update functions::save tests to expect _id - update functions::update to test updating a network with only an id (no reason to query before) * Address code review feedback for PR thib3113#641 - Update Network to set _id as a readonly property in the constructor - Moved debug initialization out of import() - Modified update() - Omit the _id from the passed properties - Ensure that this._id is valid - Merge passed properties into this - Modifed save() - Ensure that this._id is valid - Remove merge of response as it's empty - Modified update unit tests - Removed check for a valid _id as it's now ignored - Added test that passes _id as properties to ensure it's correctly omitted * try CI permissions --------- Co-authored-by: Thibaut SEVERAC <thib3113@gmail.com>
migrate to npm, an try to repair scenario tests (failed => disabled)