#3936 Disallow remote pull requests
Merged by pingou. Opened by karsten.
karsten/pagure disable_remote_pr  into  master

Download 3936.patch

Fixes #3554
If set, remote pull requests will be disabled and not available
anymore as a selection in the PR dropdown menus

Signed-off-by: Karsten Hopp karsten@redhat.com

Failed test:

12:26:11 Failed tests:
12:26:11 FAILED test: py-test_pagure_flask_form

I've seen that, but that's not caused by this patch.
https://pagure.io/pagure/pull-request/3930 is failing with the same problem.

As the real failure is hidden:

ERROR: test_csrf_form_w_expired_input (tests.test_pagure_flask_form.PagureFlaskFormTests): Test the CSRF validation with an expired CSRF specified.

Traceback (most recent call last):
File "/root/pagure/tests/test_pagure_flask_form.py", line 87, in test_csrf_form_w_expired_input
itsdangerous.int_to_bytes(int(expires)))
AttributeError: 'module' object has no attribute 'int_to_bytes'

ItsDangerous-1.0.0 causes this, 0.24 works just fine

https://pagure.io/pagure/pull-request/3937 fixes this

rebased onto 2ee0e6fb1bc5d597587ce76fe7d16c5f1fb96dbe

Pretty please pagure-ci rebuild

rebased onto 31ca14840d1f1cdfa012658eab5fd344c3f2d034

:thumbsup:

rebased onto 9f48c1fdb2255dcdfb755c32d4e725f395139b55

Pull-Request has been merged by pingou

Metadata