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 scheduled trigger in scenes #673

Merged
merged 9 commits into from
Mar 7, 2020

Conversation

Pierre-Gilles
Copy link
Contributor

@Pierre-Gilles Pierre-Gilles commented Mar 2, 2020

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 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.json) 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

Please provide a description of the change here. It's always best with screenshots, so don't hesitate to add some!

@codecov
Copy link

codecov bot commented Mar 2, 2020

Codecov Report

Merging #673 into master will increase coverage by 0.11%.
The diff coverage is 95.31%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #673      +/-   ##
==========================================
+ Coverage   91.75%   91.87%   +0.11%     
==========================================
  Files         392      393       +1     
  Lines        4899     4958      +59     
==========================================
+ Hits         4495     4555      +60     
+ Misses        404      403       -1
Flag Coverage Δ
#server 91.87% <95.31%> (+0.11%) ⬆️
Impacted Files Coverage Δ
server/seeders/20190227043234-scene.js 100% <ø> (ø) ⬆️
server/utils/constants.js 100% <ø> (ø) ⬆️
server/api/websockets/index.js 33.33% <ø> (+1.12%) ⬆️
server/models/scene.js 93.75% <100%> (+12.5%) ⬆️
server/lib/scene/scene.triggers.js 87.5% <100%> (+1.78%) ⬆️
server/lib/scene/index.js 100% <100%> (ø) ⬆️
server/lib/scene/scene.cancelTriggers.js 100% <100%> (ø)
server/lib/scene/scene.destroy.js 100% <100%> (ø) ⬆️
server/lib/scene/scene.addScene.js 94% <93.75%> (-6%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 46238ea...7da803c. Read the comment docs.

@Pierre-Gilles Pierre-Gilles merged commit 1631d3c into master Mar 7, 2020
@Pierre-Gilles Pierre-Gilles deleted the add-time-base-trigger-in-scene branch March 7, 2020 17:45
R6n0 pushed a commit to R6n0/Gladys that referenced this pull request Dec 2, 2020
* Scheduled Trigger front part

* Add default value for interval unit + change timeIntervals in UI

* First version of backend working

* Add a way to select multiple days in week view

* Fix tests & add some

* Fix post /api/v1/scene test

* Add tests on cancelTriggers function

* Add more tests to scene.addScene
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.

1 participant