-
-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use realm icons in organization switcher #392
Comments
@timabbott may we get the |
yeah I can work on that next. |
Actually, thinking about this a bit more, I'm not entirely sure that there's a purpose in creating that alias. We need to cache several pieces of data about each realm:
Is there really benefit to having a convenience URL for getting the icon URL alone? It might instead make sense to add those extra fields to the payload returned by |
Chatted with Boris briefly, and I think we're agreed to go with this approach. I've implemented it as An important detail is that there are 2 cases here:
Here's the (provisional) format for the structure, straight from our backend tests for the new endpoint:
|
(This means that clients such as the mobile apps will need to do something reasonable in the event that no name/description/icon are available). I guess the alternative approach we could take is providing some default values from the server in that case; I think it's reasonable to change to that model if desired since nothing is using the new endpoint yet. @akashnimare @geeeeeeeeek FYI, since you may find this useful as a better replacement for checking whether a given server URL is a valid Zulip server than looking for |
Backend feature merged as 51260b7536d0d7fffc9c4583f04d1a0ccc473ecb; I'll deploy this to chat.zulip.org shortly. I guess one advantage for using the old |
Looks pretty good. |
@timabbott Will change server validation in Zulip-Electron using this api. |
@timabbott Plus, does previous versions of Zulip have this endpoint? |
I think it was introduced in 1.5 |
Introduced in 1.6, which isn't even released yet. |
You mean the who server settings API is new? Seems that I should handle the
case if it's not there.
…On Fri, Jun 2, 2017, 2:48 AM Tim Abbott ***@***.***> wrote:
Introduced in 1.6, which isn't even released yet.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#392 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AG7R-9y7ajHOJE2lnhY8q65wB9w15I1Rks5r_weQgaJpZM4MMhJ->
.
|
Yes, exactly, the /server_settings API endpoint is new. |
We just merged into master and deployed to chat.zulip.org zulip/zulip#3740, which adds support for admin-uploaded realm icons. Realm icons are the same size as avatars, 100x100.
The URL is available in the /register request request, if we have
realm
in thewant
list, which I assume we already have since it contains useful settings data.There are 2 fields that adds to the /register response:
The text was updated successfully, but these errors were encountered: