Skip to content

fix: lazy id object - #1541

Closed
oux wants to merge 1 commit into
python-gitlab:mainfrom
oux:fix_lazy_id
Closed

oux wants to merge 1 commit into
python-gitlab:mainfrom
oux:fix_lazy_id

Conversation

@oux

@oux oux commented Jul 2, 2021

Copy link
Copy Markdown

to align lazy id object and non-lazy id object and then make
ObjectDeleteMixin works with lazy object

Fixes #1494

Signed-off-by: Sebastien MICHEL [email protected]

to align lazy id object and non-lazy id object and then make
ObjectDeleteMixin works with lazy object

Signed-off-by: Sebastien MICHEL <[email protected]>
@oux
oux marked this pull request as draft July 2, 2021 13:21
@oux
oux marked this pull request as ready for review July 2, 2021 14:39

@nejch nejch left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi @oux, sorry for the very late response. This was part of a much larger URL-encoding issue and I was reluctant to merge a small, specific solution.

I believe we have now solved the underlying issue in a more general way that solves it for all endpoints and ensures a string is only ever URL-encoded once: #1819

However, I see you've added some tests here which may be useful. If you remove the mixins.py change, rebase, and add only the tests, I'd be really happy to merge this as a test PR. Please let me know if you'd like to continue working on this PR. :)

try:
branch.delete()
except gitlab.exceptions.GitlabDeleteError as e:
print(f"Project already deleted: {e}")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
print(f"Project already deleted: {e}")
print(f"Branch already deleted: {e}")

@github-actions

Copy link
Copy Markdown

This Pull Request (PR) was marked stale because it has been open 90 days with no activity. Please remove the stale label or comment on this PR. Otherwise, it will be closed in 15 days.

@github-actions github-actions Bot added the stale label Apr 14, 2022
@github-actions

Copy link
Copy Markdown

This PR was closed because it has been marked stale for 15 days with no activity. If this PR is still valid, please re-open.

@github-actions github-actions Bot closed this Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Object deletion from lazy get

2 participants