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

mysql_info: Add parameter for __collect method #136

Merged
merged 3 commits into from
Apr 11, 2020

Conversation

lyvivian0077
Copy link
Contributor

SUMMARY

Add parameter for __collect method

By default the class MySQL_Info get all MySQL instance information,
add parameter for __collect to get only what wants to know(information)

ISSUE TYPE

Feature Pull Request

COMPONENT NAME

lib/ansible/modules/database/mysql/mysql_info.py

Add parameter for `__collect` method

By default the class `MySQL_Info` get all MySQL instance information,
add  parameter for `__collect` to  get only what wants to know(information)

Feature Pull Request

lib/ansible/modules/database/mysql/mysql_info.py
@ansibullbot ansibullbot added backport feature This issue/PR relates to a feature request module module new_contributor Help guide this first time contributor stale_ci CI is older than 7 days, rerun before merging labels Apr 9, 2020
Copy link
Contributor

@Andersson007 Andersson007 left a comment

Choose a reason for hiding this comment

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

@lyvivian0077 hi, nice optimization! thanks
LGTM
shipit

@Andersson007
Copy link
Contributor

@lyvivian0077 let's wait a bit, maybe anybody else will want to review it.
(FYI we have some issues to fix / prs to rewrite in old place https://github.com/ansible/ansible/labels/mysql that haven't been moved to here yet. If you decide to implement one of them, please let me know previously:)

@Xyon
Copy link

Xyon commented Apr 10, 2020

Sensible optimisation to me, big fan of pulling only what's needed. shipit

Copy link

@bmalynovytch bmalynovytch left a comment

Choose a reason for hiding this comment

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

ansible/ansible#63371
We finally got it 😉

Thx @lyvivian0077

LGTM
shipit

@Andersson007
Copy link
Contributor

oh, @lyvivian0077 we need a changelog fragment https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html#changelogs.
Please create one in ./changelogs and add the lines below

bugfixes:
- mysql_info - add parameter for __collect to get only what are wanted (https://github.com/ansible-collections/community.general/pull/136).

@gundalow gundalow removed the backport label Apr 10, 2020
@gundalow gundalow changed the title Add wanted mysql_info: Add parameter for __collect method Apr 10, 2020
- bugfixes:
  - mysql_info - add parameter for __collect to get only what are wanted (ansible-collections#136).
@lyvivian0077
Copy link
Contributor Author

@Andersson007
Add changelog, please check it.

@Andersson007 Andersson007 merged commit 5fbe8a1 into ansible-collections:master Apr 11, 2020
@Andersson007
Copy link
Contributor

@lyvivian0077 merged, thanks for the PR!
@bmalynovytch thanks for reviewing!

@Andersson007
Copy link
Contributor

@Xyon thanks for reviewing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request module module new_contributor Help guide this first time contributor stale_ci CI is older than 7 days, rerun before merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants