zulip / python-zulip-api

Python library for the Zulip API.
https://zulip.com/api/
Apache License 2.0
355 stars 357 forks source link

api: Update add_realm_filter to support url_template. #767

Closed PIG208 closed 1 year ago

PIG208 commented 1 year ago

This adds support to adding linkifiers with the new URL template syntax.

This PR relies on https://github.com/zulip/zulip/pull/23125 to determine the feature level that changes the endpoint.

timabbott commented 1 year ago

I'm not sure it's particularly coherent to have the same function pass different formats, but ultimately this is an administrative API and the user will likely be looking at the Zulip settings UI when using it, so I think it's fine in practice. (And better than, say, writing code to convert a URL template into a format string).