-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
ui_auth.session_timeout config should allow standard duration formats #9239
Comments
related: #5584 (comment) |
Hey @richvdh, I wanted to work on this issue. Can I go ahead? How can I start with this? |
yes, absolutely. We welcome any contributions - no need to ask permission! To get started, I suggest you read through https://github.com/matrix-org/synapse/blob/develop/CONTRIBUTING.md if you haven't already, and get yourself a copy of Synapse running on your development machine. Then just find where this setting is parsed, and update the parsing code to allow more duration formats! If you have any questions, feel free to ask in |
@richvdh what more duration formats are to be allowed in |
|
@richvdh I have written the code for calling parse_duartion for |
To test it:
|
@richvdh all existing unit tests passed and I am all set to raise a PR. Now I have a doubt, should I push only changes related to calling |
You'll want to push both changes so that we can test the new code. |
Fixed by #9426. |
most durations in the config can be specified in terms of number of seconds/hours/etc (search for
parse_duration
).ui_auth.session_timeout
seems to have missed the memo.The text was updated successfully, but these errors were encountered: