mirror of https://github.com/zulip/zulip.git
analytics: Display Zulip Electron app as the main desktop app.
This should make the /stats data significantly clearer.
This commit is contained in:
parent
31caab4229
commit
0b60f11cf8
|
@ -309,6 +309,7 @@ class TestMapArrays(ZulipTestCase):
|
||||||
'desktop app 3.0': [21, 22, 23],
|
'desktop app 3.0': [21, 22, 23],
|
||||||
'website': [1, 2, 3],
|
'website': [1, 2, 3],
|
||||||
'ZulipiOS': [1, 2, 3],
|
'ZulipiOS': [1, 2, 3],
|
||||||
|
'ZulipElectron': [2, 5, 7],
|
||||||
'ZulipMobile': [1, 5, 7],
|
'ZulipMobile': [1, 5, 7],
|
||||||
'ZulipPython': [1, 2, 3],
|
'ZulipPython': [1, 2, 3],
|
||||||
'API: Python': [1, 2, 3],
|
'API: Python': [1, 2, 3],
|
||||||
|
@ -319,6 +320,7 @@ class TestMapArrays(ZulipTestCase):
|
||||||
self.assertEqual(result,
|
self.assertEqual(result,
|
||||||
{'Old desktop app': [32, 36, 39],
|
{'Old desktop app': [32, 36, 39],
|
||||||
'Old iOS app': [1, 2, 3],
|
'Old iOS app': [1, 2, 3],
|
||||||
|
'Desktop app': [2, 5, 7],
|
||||||
'Mobile app': [1, 5, 7],
|
'Mobile app': [1, 5, 7],
|
||||||
'Website': [1, 2, 3],
|
'Website': [1, 2, 3],
|
||||||
'Python API': [2, 4, 6],
|
'Python API': [2, 4, 6],
|
||||||
|
|
|
@ -158,6 +158,8 @@ def client_label_map(name):
|
||||||
return "Website"
|
return "Website"
|
||||||
if name.startswith("desktop app"):
|
if name.startswith("desktop app"):
|
||||||
return "Old desktop app"
|
return "Old desktop app"
|
||||||
|
if name == "ZulipElectron":
|
||||||
|
return "Desktop app"
|
||||||
if name == "ZulipAndroid":
|
if name == "ZulipAndroid":
|
||||||
return "Android app"
|
return "Android app"
|
||||||
if name == "ZulipiOS":
|
if name == "ZulipiOS":
|
||||||
|
|
Loading…
Reference in New Issue