FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(objects): add support for Group wikis by spamsch · Pull Request #1484 · python-gitlab/python-gitlab · GitHub

Repository navigation

feat(objects): add support for Group wikis - #1484

Merged
nejch merged 6 commits into
python-gitlab:masterfrom
spamsch:master
Jun 2, 2021
Merged

nejch merged 6 commits into
python-gitlab:masterfrom
spamsch:master

Conversation

spamsch commented May 30, 2021 •
edited by nejch
Loading

Copy link
Copy Markdown
Contributor

This pull request adds support for wikis on Group level

Closes #1224

Comment thread docs/gl_objects/wikis.rst
Comment thread docs/gl_objects/wikis.rst

Copy link
Copy Markdown
Member

Thanks for this PR!

I left a few comments, but overall it is looking great 👍

codecov-commenter commented May 30, 2021 •
edited by codecov Bot
Loading

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.00%. Comparing base (fbbc0d4) to head (2935e62).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1484      +/-   ##
==========================================
+ Coverage   90.98%   91.00%   +0.02%     
==========================================
  Files          73       73              
  Lines        4080     4091      +11     
==========================================
+ Hits         3712     3723      +11     
  Misses        368      368              
Flag Coverage Δ
cli_func_v4 80.66% <100.00%> (+0.05%) ⬆️
py_func_v4 80.02% <100.00%> (+0.05%) ⬆️
unit 82.18% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
gitlab/v4/objects/groups.py 83.67% <100.00%> (+0.16%) ⬆️
gitlab/v4/objects/wikis.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

spamsch requested a review from JohnVillalovos May 31, 2021 07:16

Copy link
Copy Markdown
Member

Would it be possible for you to add some unit tests as well for this?

spamsch commented May 31, 2021

Copy link
Copy Markdown
Contributor Author

Would it be possible for you to add some unit tests as well for this?

There are no unit tests for project wikis. Not sure it makes sense to have unit tests for groups only. Could think about adding functional tests. Makes sense?

nejch commented May 31, 2021 •
edited
Loading

Copy link
Copy Markdown
Member

Would it be possible for you to add some unit tests as well for this?

There are no unit tests for project wikis. Not sure it makes sense to have unit tests for groups only. Could think about adding functional tests. Makes sense?

I just triggered the workflow. Group Wikis are a Premium/EE feature so let's see if this works in the CE container 😁 And you're right, we'd need to create a new test_wikis.py module with a group wiki mock response for this. There are examples in other modules if the functional tests fail (if it fails, maybe add @pytest.mark.skip to the functional test that you added, for now).

Edit: it failed (gitlab.exceptions.GitlabCreateError: 404: 404 Not Found), so maybe add a skip marker and if you need any help with unit tests let us know :)

Copy link
Copy Markdown
Member

FYI: Running tox -e black locally should resolve the black formatting issues.

Copy link
Copy Markdown
Member

Thanks a lot @spamsch 😊

Looks good to me. Personally I would like it if it was rebased and squashed. As right now there are six commits and one of them is a merge commit. I think it will make the project history be better if it was rebased and squashed.

Not sure what @nejch and @max-wittig think.

nejch commented Jun 1, 2021

Copy link
Copy Markdown
Member

Thanks a lot @spamsch 😊

Looks good to me. Personally I would like it if it was rebased and squashed. As right now there are six commits and one of them is a merge commit. I think it will make the project history be better if it was rebased and squashed.

Not sure what @nejch and @max-wittig think.

Ok, i can also squash on merge and add the unit tests along with project wiki tests in a follow-up. Just not from my phone on my commute right now.. :D

nejch merged commit 74f5e62 into python-gitlab:master Jun 2, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

Question: Is Group wikis supported?

5 participants


Back | FazBrowse Home | New Git URL