-
-
Notifications
You must be signed in to change notification settings - Fork 288
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
Z2m clean code #1639
Z2m clean code #1639
Conversation
Codecov ReportBase: 96.81% // Head: 96.81% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #1639 +/- ##
==========================================
- Coverage 96.81% 96.81% -0.01%
==========================================
Files 660 662 +2
Lines 9650 9647 -3
==========================================
- Hits 9343 9340 -3
Misses 307 307
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
Looks super clean to me, thanks for this big clean! 👏
I'll merge, but next release we need some testers on the :dev
tag before releasing to ensure there is no regression
Job #775: Bundle Size — 7MiB (0%).
Metrics (no changes)
Total size by type (no changes)
|
@Pierre-Gilles I will merge in my influxdb branch and deploy to my production. |
@atrovato @Pierre-Gilles everything fine on my side. 👍 |
Pull Request check-list
To ensure your Pull Request can be accepted as fast as possible, make sure to review and check all of these items:
npm test
on both front/server)npm run eslint
on both front/server)npm run prettier
on both front/server)[ ] If you are adding a new features/services, did you run integration comparator? (npm run compare-translations
on front)[ ] If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)[ ] If you are adding a new features/services which needs explanation, did you modify the user documentation? See the GitHub repo and the website.[ ] Did you add fake requests data for the demo mode (front/src/config/demo.js
) so that the demo website is working without a backend? (if needed) See https://demo.gladysassistant.com.NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
Description of change
This PR prepares the "z2m backup" feature.
The z2m code is a bit disorganized, so to add features in it, it looks difficult and risky.
So I just ran a cleaning and organization phase.
It cleans the current z2m service code to:
I tested it in real life, in both upgrading and new install modes.
It looks good.