← Winnitude! Search  ·  Reader Mode (1133 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 67 LINKS

fix: allow updating of sub-pages in wikis by kernelport · Pull Request #1080 · python-gitlab/python-gitlab

Repository navigation

fix: allow updating of sub-pages in wikis - #1080


Closed
kernelport wants to merge 1 commit into python-gitlab:main from kernelport:master
Closed

fix: allow updating of sub-pages in wikis #1080 kernelport wants to merge 1 commit into python-gitlab:main from kernelport:master

Conversation

kernelport commented Apr 22, 2020 · edited by JohnVillalovos Loading



Copy link Copy Markdown
Contributor

Make it possible to update subpages in wikis

Update SaveMixin to use utils._url_encode() on the ID if it is a
string.

Closes : #1079

max-wittig commented Jun 30, 2020



Copy link Copy Markdown
Member

Hi @kernelport Sorry for the delay! Would you mind to add a quick unit test for this and use conventional changelog for the commit message

nejch mentioned this pull request Mar 2, 2021 Get rid of all custom URL encoding #1356 Closed JohnVillalovos force-pushed the master branch from f643486 to 211d461
Compare
January 9, 2022 01:18 JohnVillalovos changed the title make it possible to update subpages in wikis fix: allow updating of sub-pages in wikis Jan 9, 2022

codecov-commenter commented Jan 9, 2022 · edited Loading



Copy link Copy Markdown

Codecov Report

Merging #1080 (535636f ) into main (ac81272 ) will increase coverage by 0.00%.
The diff coverage is 80.00%.

@@           Coverage Diff           @@
##             main    #1080   +/-   ##
=======================================
  Coverage   92.10%   92.11%           
=======================================
  Files          76       76           
  Lines        4801     4804    +3     
=======================================
+ Hits         4422     4425    +3     
  Misses        379      379           
Flag Coverage Δ
cli_func_v4 81.30% <20.00%> (-0.06%) ⬇️
py_func_v4 80.18% <80.00%> (+0.01%) ⬆️
unit 83.05% <80.00%> (+0.01%) ⬆️

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

Impacted Files Coverage Δ
gitlab/mixins.py 91.60% <80.00%> (+0.06%) ⬆️
fix: allow updating of sub-pages in wikis 535636f
Make it possible to update subpages in wikis

Update SaveMixin to use utils._url_encode() on the ID if it is a
string.

Closes: python-gitlab#1079
JohnVillalovos force-pushed the master branch from 211d461 to 535636f
Compare
January 9, 2022 01:38 JohnVillalovos requested a review from nejch January 9, 2022 01:38 JohnVillalovos marked this pull request as draft January 9, 2022 01:38

JohnVillalovos commented Jan 9, 2022



Copy link Copy Markdown
Member

So I'm not sure if this is the way to go. I was thinking maybe we should add a get_url_encoded_id method around here: https://github.com/python-gitlab/python-gitlab/blob/main/gitlab/base.py#L205-L209

JohnVillalovos commented Jan 13, 2022



Copy link Copy Markdown
Member

Closing this as done by #1819

JohnVillalovos closed this Jan 13, 2022

nejch commented Jan 13, 2022



Copy link Copy Markdown
Member

@JohnVillalovos I think there might be parts of this that are useful for other issues, see #1081 . Notably returning the save results so that moved subpages can be edited. But agreed, the url-encoding is finished.

JohnVillalovos commented Jan 13, 2022



Copy link Copy Markdown
Member

I'll work on a new PR to return the dictionary from save()

JohnVillalovos commented Jan 13, 2022



Copy link Copy Markdown
Member

I created #1832 for the save() result.

Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

None yet

5 participants