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

Remove useless deprecation warnings #376

Merged

Conversation

bouthilx
Copy link
Member

@bouthilx bouthilx commented Apr 2, 2020

Why:

There was still access to deprecated options in the core which were
triggering deprecation warnings event though the user was not using
any of these.

How:

Adjust access to config to use the proper configuration values
and update yaml reading to transfer deprecated settings to proper ones
with warning for users.

@bouthilx bouthilx added the v0.1.8 label Apr 2, 2020
@bouthilx bouthilx requested a review from Thomsch April 2, 2020 00:45
@bouthilx
Copy link
Member Author

bouthilx commented Apr 2, 2020

@codecov-io
Copy link

codecov-io commented Apr 2, 2020

Codecov Report

Merging #376 into develop will decrease coverage by 0.02%.
The diff coverage is 28.57%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #376      +/-   ##
===========================================
- Coverage    45.23%   45.20%   -0.03%     
===========================================
  Files           66       66              
  Lines        12412    12424      +12     
  Branches       306      306              
===========================================
+ Hits          5614     5616       +2     
- Misses        6773     6783      +10     
  Partials        25       25              
Impacted Files Coverage Δ
tests/unittests/core/io/test_config.py 15.75% <16.66%> (+0.03%) ⬆️
tests/functional/demo/test_demo.py 97.61% <100.00%> (ø)

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 4dba1f8...bbb089e. Read the comment docs.

Why:

There was still access to deprecated options in the `core` which were
triggering deprecation warnings event though the user was not using
any of these.

How:

Adjust access to config to use the proper configuration values
and update yaml reading to transfer deprecated settings to proper ones
with warning for users.
@bouthilx bouthilx force-pushed the fix/remove_useless_deprecation_warnings branch from 400f86a to 4593144 Compare April 2, 2020 14:37
Copy link
Contributor

@Thomsch Thomsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.
However, as a first PR it's a bit rough. Do you think we could spend 10 minutes going over it together?

@bouthilx
Copy link
Member Author

bouthilx commented Apr 2, 2020

Sure :)

@Thomsch Thomsch merged commit 4f75dd5 into Epistimio:develop Apr 6, 2020
This was referenced Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants