This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Test util create_room_as
is_public
option is misleading
#10951
Labels
good first issue
Good for newcomers
P4
(OBSOLETE: use S- labels.) Okay backlog: will not schedule, will accept patches
S-Tolerable
Minor significance, cosmetic issues, low or no impact to users.
T-Task
Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
Defaults to
True
.synapse/tests/rest/client/utils.py
Line 51 in 50022cf
Docstring says:
synapse/tests/rest/client/utils.py
Lines 65 to 67 in 50022cf
But the only use is:
synapse/tests/rest/client/utils.py
Lines 80 to 81 in 50022cf
Moreover, the CS spec says of
visibility
thatSuggest:
Optional[bool]
, defaultNone
if is_public is False
, set visibility to privateelif is_public is True
, set visibility to publicCould alternatively leave it as a bool and fix it to actually set visibility to public when True. That would probably require fixing a bunch of tests to explicitly set
is_public
: False.Spotted by @AndrewFerr in #10930.
The text was updated successfully, but these errors were encountered: