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

Zigbee2mqtt : Remove containers when disabling integration #2109

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

Pierre-Gilles
Copy link
Contributor

@Pierre-Gilles Pierre-Gilles commented Aug 5, 2024

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:

  • If your changes affects code, did your write the tests?
  • Are tests passing? (npm test on both front/server)
  • Is the linter passing? (npm run eslint on both front/server)
  • Did you run prettier? (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)
  • Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to the community (french forum/english forum) for testing before merging.

Description of change

Fix #2108 - Remove containers when disabling the integration. It fixes a bug when the user disable then re-enable containers, the new credentials are not taken into account

Copy link

codecov bot commented Aug 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.41%. Comparing base (41755fd) to head (ce00126).
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2109   +/-   ##
=======================================
  Coverage   98.41%   98.41%           
=======================================
  Files         865      865           
  Lines       14169    14171    +2     
=======================================
+ Hits        13945    13947    +2     
  Misses        224      224           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

Deploying gladys-plus with  Cloudflare Pages  Cloudflare Pages

Latest commit: ce00126
Status: ✅  Deploy successful!
Preview URL: https://67b7ea90.gladys-plus.pages.dev
Branch Preview URL: https://fix-zigbee2mqtt-re-configura.gladys-plus.pages.dev

View logs

Copy link

relativeci bot commented Aug 5, 2024

#2675 Bundle Size — 10.18MiB (0%).

ce00126(current) vs 41755fd master#2665(baseline)

Warning

Bundle contains 3 duplicate packages – View duplicate packages

Bundle metrics  no changes
                 Current
#2675
     Baseline
#2665
No change  Initial JS 5.49MiB 5.49MiB
No change  Initial CSS 303.12KiB 303.12KiB
Change  Cache Invalidation 0% 53.79%
No change  Chunks 51 51
No change  Assets 171 171
No change  Modules 1490 1490
No change  Duplicate Modules 21 21
No change  Duplicate Code 0.82% 0.82%
No change  Packages 124 124
No change  Duplicate Packages 3 3
Bundle size by type  no changes
                 Current
#2675
     Baseline
#2665
No change  JS 7.27MiB 7.27MiB
No change  IMG 2.48MiB 2.48MiB
No change  CSS 319.91KiB 319.91KiB
No change  Fonts 93.55KiB 93.55KiB
No change  Other 17.62KiB 17.62KiB
No change  HTML 13.58KiB 13.58KiB

Bundle analysis reportBranch fix-zigbee2mqtt-re-configurationProject dashboard

@Pierre-Gilles
Copy link
Contributor Author

@atrovato @cicoub13 Do you see any side effect on this PR ? I've tested it in real life, and it works great (it fixes the bugs we are seeing on the forum: https://community.gladysassistant.com/t/non-communication-zigbee2mqtt/9027/12?u=pierre-gilles)

@cicoub13
Copy link
Contributor

cicoub13 commented Aug 5, 2024

The PR is good and I see no side effect. It will be cleaner.

Not sure it will solve the password issue or dongle configuration changed (use cases already managed in other parts of the code)

@Pierre-Gilles
Copy link
Contributor Author

Not sure it will solve the password issue or dongle configuration changed (use cases already managed in other parts of the code)

Yes it solves the issues, because when re-installing the containers, it falls into another case and it re-installs everything from scratch (including configuration files).

When the container is just stopped (not removed), the container is just restarted

I've tried in real life, and it works with this version

@Pierre-Gilles Pierre-Gilles merged commit 012cea6 into master Aug 26, 2024
12 checks passed
@Pierre-Gilles Pierre-Gilles deleted the fix-zigbee2mqtt-re-configuration branch August 26, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Zigbee2mqtt : it seems disabling the integration doesn't properly clean everything
2 participants