-
-
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
Fix #1331 : In scene, add OR condition to check-time action #1425
Conversation
Job #180: Bundle Size — 6.67MB (0%).
|
Codecov Report
@@ Coverage Diff @@
## master #1425 +/- ##
=======================================
Coverage 96.54% 96.54%
=======================================
Files 613 613
Lines 8738 8747 +9
=======================================
+ Hits 8436 8445 +9
Misses 302 302
Continue to review 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.
Code is OK (thanks for the Boy Scout rule application on tests 😉 )
Tested locally with some functional cases => OK for me
2022-01-31T13:54:37+0100 <debug> scene.actions.js:161 (Object.condition.check-time) Check time before: 13:54 < 09:10 condition is not verified.
2022-01-31T13:54:37+0100 <debug> scene.actions.js:176 (Object.condition.check-time) Check time after: 13:54 > 13:35 condition is valid.
2022-01-31T13:54:37+0100 <debug> scene.actions.js:192 (Object.condition.check-time) Check time: Condition OR verified.
Thanks for the review @cicoub13 ! 🙏 What's the "Boy Scout rule application on tests" ? 😂 |
Boy Scout Rule in IT = "Always leave the code better than you found it" You used this fix opportunity to move test code in dedicated file 💪 https://biratkirat.medium.com/step-8-the-boy-scout-rule-robert-c-martin-uncle-bob-9ac839778385 |
Oh yes indeed 👍 |
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.
Code is good enough to me, I didn't test it in real life, I suppose others will ;)
scope, | ||
); | ||
} catch (e) { | ||
console.log(e); |
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.
Unexpected console statement!
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
This let the user use conditional time check when after time is before the before time.