-
Notifications
You must be signed in to change notification settings - Fork 32
🎨♻️ cosmetic / refactor: remove default value #8660
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
base: master
Are you sure you want to change the base?
🎨♻️ cosmetic / refactor: remove default value #8660
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## master #8660 +/- ##
===========================================
- Coverage 87.55% 68.46% -19.09%
===========================================
Files 2019 782 -1237
Lines 79254 35552 -43702
Branches 1386 154 -1232
===========================================
- Hits 69393 24342 -45051
- Misses 9465 11161 +1696
+ Partials 396 49 -347
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
🧪 CI InsightsHere's what we observed from your CI run for ef2ee70. 🟢 All jobs passed!But CI Insights is watching 👀 |
sanderegg
left a comment
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.
I hate defaults
GitHK
left a comment
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.
Please make sure to also check that all tests are greeen, then I will have a look at it again to see if other things break
services/director-v2/src/simcore_service_director_v2/modules/dynamic_sidecar/scheduler/_task.py
Show resolved
Hide resolved
services/director-v2/src/simcore_service_director_v2/modules/dynamic_sidecar/scheduler/_abc.py
Show resolved
Hide resolved
...tor-v2/src/simcore_service_director_v2/modules/dynamic_sidecar/scheduler/_core/_scheduler.py
Show resolved
Hide resolved
|



What do these changes do?
I found this by chance while checking some things for the trace-propagation in dv2 (this PR is unrelated to tracing). There is the param
skip_observation_recreationwhich is boolean, and has impact on the behavior of dv2 dy service schedulingBefore, the param would be implicitly
Falseby default, except for 1 case where it is overwritten to True (here https://github.com/mrnicegyu11/osparc-simcore/blob/ae88c2af1a5b4cb52f383ce6117718a1e1cfd522/services/director-v2/src/simcore_service_director_v2/modules/dynamic_sidecar/scheduler/_core/_observer.py#L60 ).Now, for the few occurances of it, the param is always passed explicitly. This makes the behaviour more understandable when reading code.
A very minor change that I suggest, without impact on the behavior :--)
Related issue/s
How to test
Dev-ops