Closed BryanFauble closed 4 months ago
Hello @BryanFauble! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
synapseclient/core/utils.py
:Line 1359:89: E501 line too long (97 > 88 characters)
synapseclient/models/folder.py
:Line 125:89: E501 line too long (89 > 88 characters) Line 153:89: E501 line too long (91 > 88 characters) Line 387:89: E501 line too long (89 > 88 characters) Line 389:89: E501 line too long (89 > 88 characters) Line 392:89: E501 line too long (90 > 88 characters)
synapseclient/models/project.py
:Line 188:89: E501 line too long (91 > 88 characters) Line 233:89: E501 line too long (102 > 88 characters) Line 376:89: E501 line too long (99 > 88 characters) Line 442:89: E501 line too long (89 > 88 characters) Line 444:89: E501 line too long (89 > 88 characters) Line 447:89: E501 line too long (90 > 88 characters) Line 456:89: E501 line too long (89 > 88 characters) Line 463:89: E501 line too long (111 > 88 characters)
Line 555:89: E501 line too long (89 > 88 characters)
tests/unit/synapseclient/models/unit_test_project.py
:Line 469:89: E501 line too long (109 > 88 characters)
Issues
0 New issues
Measures
0 Security Hotspots
97.2% Coverage on New Code
8.7% Duplication on New Code
Problem:
is_restricted
flag at the folder level that gets passed to syn.store()createOrUpdate
) we did so only after we got an HTTP 409 conflict, but only if we did not specify the ID of the resource. This led to inconsistent behavior if you supplied an ID, instead of a name when saving resources like the Project.Solution:
is_restricted
flag to the folder levelTesting: