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

fix: add deprecated warning message in insights.combiners.mounts #3613

Merged
merged 0 commits into from
Dec 1, 2022

Conversation

chenlizhong
Copy link
Contributor

Signed-off-by: Chen lizhong [email protected]

All Pull Requests:

Check all that apply:

  • Have you followed the guidelines in our Contributing document, including the instructions about commit messages?
  • Is this PR to correct an issue?
  • Is this PR an enhancement?

Complete Description of Additions/Changes:

Before remove the combiner.mounts, give deprecate warning by this MR.
#3606

@@ -42,6 +43,7 @@ class Mounts(object):
"""

def __init__(self, binmount, procmounts, mountinfo):
deprecated(Mounts, "Use the parsers in insights.mount module instead", "3.1.0")
Copy link
Contributor

Choose a reason for hiding this comment

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

@chenlizhong Please make it 3.1.25 which means we can remove it after the release of 3.2.0 which is roughly six months from now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

Copy link
Contributor

@xiangce xiangce left a comment

Choose a reason for hiding this comment

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

It's also recommended to add related warnings to the docstring of the combiner when deprecating it.

Copy link
Contributor

@xiangce xiangce left a comment

Choose a reason for hiding this comment

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

Good to me. But TBH, a Wanning would be better than a Note in the doc.

@xiangce xiangce merged commit c79bf52 into master Dec 1, 2022
@xiangce xiangce deleted the deprecate_combiner_mounts branch December 1, 2022 01:15
xiangce pushed a commit that referenced this pull request Dec 1, 2022
* fix: add deprecated warning message in insights.combiners.mounts

Signed-off-by: Chen lizhong <[email protected]>

* fix: update version to 3.1.25

Signed-off-by: Chen lizhong <[email protected]>

* docs: add deprecated info into doc string

Signed-off-by: Chen lizhong <[email protected]>

* docs: use warning instead of note

Signed-off-by: Chen lizhong <[email protected]>
(cherry picked from commit c79bf52)
xiangce pushed a commit that referenced this pull request Sep 6, 2024
* fix: add deprecated warning message in insights.combiners.mounts

Signed-off-by: Chen lizhong <[email protected]>

* fix: update version to 3.1.25

Signed-off-by: Chen lizhong <[email protected]>

* docs: add deprecated info into doc string

Signed-off-by: Chen lizhong <[email protected]>

* docs: use warning instead of note

Signed-off-by: Chen lizhong <[email protected]>
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.

3 participants