-
-
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
Use device feature for scene action of type turn on/off light/switch #1768
Conversation
Codecov ReportAll modified lines are covered by tests ✅
... and 30 files with indirect coverage changes 📢 Thoughts on this report? Let us know!. |
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.
Thanks for the PR, it works fine on my side ! great work 👏
You need to write a DB migration to update all existing scenes, otherwise all the scene already working will stop working for existing Gladys users.
I wrote other feedbacks in the code.
front/src/routes/scene/edit-scene/actions/TurnOnOffLightParams.jsx
Outdated
Show resolved
Hide resolved
How can I test DB migration? |
@rpochet Currently we don't have any ways to unit test data migration I bet you could write a unit test importing a migration file and then calling the up function if you want to ? :) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Job #1907: Bundle Size — 8.82MiB (~+0.01%).
Warning Bundle contains 3 duplicate packages – View duplicate packages Bundle metrics
Bundle size by type
View job #1907 report View rpochet:scene_device_feature branch activity |
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)npm run compare-translations
on front)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
In scene, provide selection of device feature instance of device in 'Turn ON/OFF light/switch' actions.
Before:
New proposal: