« Back to Search  |  Reader Mode  |  Switch to Full Retro Site View Links: Stay in Reader  |  Retro Mode: ON  |  Original »
GitHub · Extracted in 966 ms

feat(api): return result from `SaveMixin.save()` by JohnVillalovos · Pull Request #1832 · python-gitlab/python-gitlab

Source: https://github.com/python-gitlab/python-gitlab/pull/1832

Repository navigation

feat(api): return result from SaveMixin.save() - #1832


Merged
nejch merged 1 commit into main from jlvillal/return_save Jan 13, 2022
Merged

feat(api): return result from SaveMixin.save() #1832 nejch merged 1 commit into main from jlvillal/return_save

Conversation

JohnVillalovos commented Jan 13, 2022 · edited by nejch Loading



Copy link Copy Markdown
Member

Return the new object data when calling SaveMixin.save().

Also remove check for None value when calling
self.manager.update() as that method only returns a dictionary.

Closes #1081 .

JohnVillalovos requested a review from nejch January 13, 2022 22:31 JohnVillalovos mentioned this pull request Jan 13, 2022 fix: allow updating of sub-pages in wikis #1080 Closed nejch approved these changes Jan 13, 2022
View reviewed changes

nejch commented Jan 13, 2022



Copy link Copy Markdown
Member

@JohnVillalovos I think we want this in the changelog so maybe even feat :)

JohnVillalovos force-pushed the jlvillal/return_save branch from 4ce0a87 to 675f587
Compare
January 13, 2022 22:39 JohnVillalovos changed the title chore(api): return result from SaveMixin.save() feat(api): return result from SaveMixin.save() Jan 13, 2022

JohnVillalovos commented Jan 13, 2022



Copy link Copy Markdown
Member

Author

@JohnVillalovos I think we want this in the changelog so maybe even feat :)

Sure! Done.

nejch commented Jan 13, 2022



Copy link Copy Markdown
Member

@kernelport I've marked this as closing #1081 since it implements the rest of your PR. Feel free to reopen the issue if it's not solved after the release. You'll be credited as the author of the commit here.

JohnVillalovos force-pushed the jlvillal/return_save branch 2 times, most recently from fc8cd44 to d90443c
Compare
January 13, 2022 22:57 feat(api): return result from SaveMixin.save() e6258a4
Return the new object data when calling `SaveMixin.save()`.

Also remove check for `None` value when calling
`self.manager.update()` as that method only returns a dictionary.

Closes: #1081
JohnVillalovos force-pushed the jlvillal/return_save branch from d90443c to e6258a4
Compare
January 13, 2022 22:57 nejch enabled auto-merge January 13, 2022 23:34

codecov-commenter commented Jan 13, 2022



Copy link Copy Markdown

Codecov Report

Merging #1832 (e6258a4 ) into main (8b14ff0 ) will not change coverage.
The diff coverage is 75.00%.

@@           Coverage Diff           @@
##             main    #1832   +/-   ##
=======================================
  Coverage   92.20%   92.20%           
=======================================
  Files          77       77           
  Lines        4834     4834           
=======================================
  Hits         4457     4457           
  Misses        377      377           
Flag Coverage Δ
cli_func_v4 81.38% <25.00%> (ø)
py_func_v4 80.20% <75.00%> (ø)
unit 83.20% <75.00%> (ø)

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

Impacted Files Coverage Δ
gitlab/mixins.py 91.50% <75.00%> (ø)
nejch merged commit 27e0742 into main Jan 13, 2022 nejch deleted the jlvillal/return_save branch January 13, 2022 23:35 Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

None yet

4 participants