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

gitlab_project_members: improve project name matching #3602

Merged
merged 6 commits into from
Oct 30, 2021
Merged

gitlab_project_members: improve project name matching #3602

merged 6 commits into from
Oct 30, 2021

Conversation

paytroff
Copy link
Contributor

The actual search method doesn't accept path with namespace for project_name. If you have many project with same name, this module gitlab_project_members can't work.

SUMMARY
ISSUE TYPE
  • Bugfix Pull Request
  • Docs Pull Request
  • Feature Pull Request
  • New Module Pull Request
COMPONENT NAME
ADDITIONAL INFORMATION

The actual search method doesn't accept path with namespace for project_name. If you have many project with same name, this module gitlab_project_members can't work.
@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added bug This issue/PR relates to a bug gitlab module module new_contributor Help guide this first time contributor plugins plugin (any type) source_control labels Oct 23, 2021
Copy link
Collaborator

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution! Can you please add a changelog fragment?

About the change itself: is it possible to do something similar to https://github.com/ansible-collections/community.general/pull/3400/files instead?

@felixfontein felixfontein changed the title Update gitlab_project_members.py gitlab_project_members: improve project name matching Oct 23, 2021
@felixfontein felixfontein added the check-before-release PR will be looked at again shortly before release and merged if possible. label Oct 23, 2021
@paytroff
Copy link
Contributor Author

paytroff commented Oct 23, 2021

Changelog Done.
About the change, I tried but it's not possible, the search method Project API Gitlab is different from Group API search.

@ansibullbot

This comment has been minimized.

@ansibullbot ansibullbot added ci_verified Push fixes to PR branch to re-run CI needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels Oct 23, 2021
@ansibullbot ansibullbot removed the ci_verified Push fixes to PR branch to re-run CI label Oct 23, 2021
@paytroff paytroff requested a review from felixfontein October 23, 2021 13:35
@ansibullbot ansibullbot removed the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Oct 23, 2021
@felixfontein
Copy link
Collaborator

In case you tried adding a changelog fragment, you forgot to add/push it because it isn't there in this PR yet :)

@paytroff
Copy link
Contributor Author

Yes you're right. It's all good now.

@ansibullbot

This comment has been minimized.

@ansibullbot ansibullbot added ci_verified Push fixes to PR branch to re-run CI needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels Oct 24, 2021
…fix-gitlab_project_members-improve-search-method.yml
@ansibullbot ansibullbot removed ci_verified Push fixes to PR branch to re-run CI needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels Oct 24, 2021
Copy link
Collaborator

@felixfontein felixfontein 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 to me. Would be glad if one of the GitLab maintainers could also take a look at this one :)

@felixfontein
Copy link
Collaborator

If nobody complains, I'll merge this weekend.

@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Oct 30, 2021
@felixfontein felixfontein merged commit cdfc4dc into ansible-collections:main Oct 30, 2021
@patchback
Copy link

patchback bot commented Oct 30, 2021

Backport to stable-2: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-2/cdfc4dcf498e6fdf8f10922480556cee2c3ad3eb/pr-3602

Backported as #3635

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Oct 30, 2021
* Update gitlab_project_members.py

The actual search method doesn't accept path with namespace for project_name. If you have many project with same name, this module gitlab_project_members can't work.

* Update gitlab_project_members.py

* Update gitlab_project_members.py

* Update gitlab_project_members.py

* Create 3602-fix-gitlab_project_members-improve-search-method

* Rename 3602-fix-gitlab_project_members-improve-search-method to 3602-fix-gitlab_project_members-improve-search-method.yml

(cherry picked from commit cdfc4dc)
@patchback
Copy link

patchback bot commented Oct 30, 2021

Backport to stable-3: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-3/cdfc4dcf498e6fdf8f10922480556cee2c3ad3eb/pr-3602

Backported as #3636

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@felixfontein
Copy link
Collaborator

@paytroff thanks for fixing this!

patchback bot pushed a commit that referenced this pull request Oct 30, 2021
* Update gitlab_project_members.py

The actual search method doesn't accept path with namespace for project_name. If you have many project with same name, this module gitlab_project_members can't work.

* Update gitlab_project_members.py

* Update gitlab_project_members.py

* Update gitlab_project_members.py

* Create 3602-fix-gitlab_project_members-improve-search-method

* Rename 3602-fix-gitlab_project_members-improve-search-method to 3602-fix-gitlab_project_members-improve-search-method.yml

(cherry picked from commit cdfc4dc)
felixfontein pushed a commit that referenced this pull request Oct 30, 2021
* Update gitlab_project_members.py

The actual search method doesn't accept path with namespace for project_name. If you have many project with same name, this module gitlab_project_members can't work.

* Update gitlab_project_members.py

* Update gitlab_project_members.py

* Update gitlab_project_members.py

* Create 3602-fix-gitlab_project_members-improve-search-method

* Rename 3602-fix-gitlab_project_members-improve-search-method to 3602-fix-gitlab_project_members-improve-search-method.yml

(cherry picked from commit cdfc4dc)

Co-authored-by: paytroff <[email protected]>
felixfontein pushed a commit that referenced this pull request Oct 30, 2021
* Update gitlab_project_members.py

The actual search method doesn't accept path with namespace for project_name. If you have many project with same name, this module gitlab_project_members can't work.

* Update gitlab_project_members.py

* Update gitlab_project_members.py

* Update gitlab_project_members.py

* Create 3602-fix-gitlab_project_members-improve-search-method

* Rename 3602-fix-gitlab_project_members-improve-search-method to 3602-fix-gitlab_project_members-improve-search-method.yml

(cherry picked from commit cdfc4dc)

Co-authored-by: paytroff <[email protected]>
JonEllis pushed a commit to JonEllis/community.general that referenced this pull request Nov 16, 2021
…tions#3602)

* Update gitlab_project_members.py

The actual search method doesn't accept path with namespace for project_name. If you have many project with same name, this module gitlab_project_members can't work.

* Update gitlab_project_members.py

* Update gitlab_project_members.py

* Update gitlab_project_members.py

* Create 3602-fix-gitlab_project_members-improve-search-method

* Rename 3602-fix-gitlab_project_members-improve-search-method to 3602-fix-gitlab_project_members-improve-search-method.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug gitlab module module new_contributor Help guide this first time contributor plugins plugin (any type) source_control
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants