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

Add option to keep states history or not for any device feature #1599

Merged
merged 20 commits into from Sep 12, 2022

Conversation

Pierre-Gilles
Copy link
Contributor

@Pierre-Gilles Pierre-Gilles commented Sep 12, 2022

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 for testing before merging.
  • 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

The user is able to tell Gladys if a device feature should keep the state history or not.

Screenshot 2022-09-12 at 14 29 55

@codecov
Copy link

codecov bot commented Sep 12, 2022

Codecov Report

Base: 96.76% // Head: 96.76% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (4d3637c) compared to base (f2ae7ba).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1599   +/-   ##
=======================================
  Coverage   96.76%   96.76%           
=======================================
  Files         653      654    +1     
  Lines        9640     9658   +18     
=======================================
+ Hits         9328     9346   +18     
  Misses        312      312           
Impacted Files Coverage Δ
server/lib/device/device.create.js 98.66% <100.00%> (+0.18%) ⬆️
server/lib/device/device.purgeStatesByFeatureId.js 100.00% <100.00%> (ø)
server/lib/device/index.js 100.00% <100.00%> (ø)

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Pierre-Gilles Pierre-Gilles marked this pull request as ready for review September 12, 2022 12:31
@Pierre-Gilles Pierre-Gilles mentioned this pull request Sep 12, 2022
6 tasks
@relativeci
Copy link

relativeci bot commented Sep 12, 2022

Job #464: Bundle Size — 7.01MB (+0.07%).

d6f0b2a vs f2ae7ba

Changed metrics (2/10)
Metric Current Baseline
Initial JS 2.98MB(+0.14%) 2.97MB
Cache Invalidation 46.23% 50.89%
Changed assets by type (1/7)
            Current     Baseline
JS 4.98MB (+0.09%) 4.98MB

View Job #464 report on app.relative-ci.com

@Pierre-Gilles Pierre-Gilles merged commit d6f0b2a into master Sep 12, 2022
@Pierre-Gilles Pierre-Gilles deleted the Terdious-features-keep-history branch September 12, 2022 12:59
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.

None yet

2 participants