#159 Add give_orphan endpoint
Merged by humaton. Opened by lenkaseg.
lenkaseg/pagure-dist-git mattia  into  master

Download 159.patch

In process of writing tests, so currently work in progress.

Thanks for the patch @mattia

Thinking about the patch, the function give_orphan_endpoint is very similar to take_orphan_endpoint, but the docstring is the same. Would it not be worthy to make the difference more apparent between those two?

This will actually never get triggered, because query.get_user returns a list of user objects in case user=None is passed.
Is that correct?

1 new commit added

  • Fix check in case of no user passed

1 new commit added

  • Add tests fro give_orphan endpoint

rebased onto e4d3f149ef0464f21e5301e33c9fcb181fd2b9b7

Ready for review

Pull-Request has been merged by humaton

Metadata