Lauryn Menard 
							
						 
					 
					
						
						
							
						
						df2f4b6469 
					 
					
						
						
							
							corporate: Move support and activity views to /corporate.  
						
						 
						
						... 
						
						
						
						View functions in `analytics/views/support.py` are moved to
`corporate/views/support.py`.
Shared activity functions in `analytics/views/activity_common.py`
are moved to `corporate/lib/activity.py`, which was also renamed
from `corporate/lib/analytics.py`. 
						
						
					 
					
						2024-01-30 10:06:48 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Tim Abbott 
							
						 
					 
					
						
						
							
						
						95b39bc8bf 
					 
					
						
						
							
							analytics: More fixes to zilencer urls import logic.  
						
						 
						
						
						
						
					 
					
						2023-12-05 10:52:00 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Tim Abbott 
							
						 
					 
					
						
						
							
						
						28d736d63b 
					 
					
						
						
							
							analytics: Don't import zilencer-specific code unconditionally.  
						
						 
						
						... 
						
						
						
						This fixes the production server not working when zilencer is not
enabled. 
						
						
					 
					
						2023-12-05 10:36:35 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lakshay Mittal 
							
						 
					 
					
						
						
							
						
						d94bdb3900 
					 
					
						
						
							
							stats: Support fetching StreamCount based on stream_id.  
						
						 
						
						... 
						
						
						
						As a preliminary step for including graphs of StreamCount data in our
analytics pages, add API support for fetching the chart data.
Care is taken to limit access to streams that the current user has
access to, which isn't necessary in similar views where the current
user is a server administrator by assumption.
Fixes part of #19653 .
Co-authored-by: Tim Abbott <tabbott@zulip.com > 
						
						
					 
					
						2023-10-16 15:10:14 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lauryn Menard 
							
						 
					 
					
						
						
							
						
						40e6455579 
					 
					
						
						
							
							analytics: Move integrations by client to separate activity page.  
						
						 
						
						... 
						
						
						
						Moves the tab in the main installation activity page to be a
separate page: "/activity/integrations". 
						
						
					 
					
						2023-10-05 12:31:57 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lauryn Menard 
							
						 
					 
					
						
						
							
						
						0f009c439d 
					 
					
						
						
							
							analytics: Move remote server view to separate file.  
						
						 
						
						... 
						
						
						
						Moves the view for "/activity/remove" from the main installation
activity view to a separate file. 
						
						
					 
					
						2023-10-05 12:31:57 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Mateusz Mandera 
							
						 
					 
					
						
						
							
						
						f71e2c8247 
					 
					
						
						
							
							support: Add basic support endpoint for remote servers.  
						
						 
						
						
						
						
					 
					
						2023-10-04 16:55:47 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lauryn Menard 
							
						 
					 
					
						
						
							
						
						afc1d2a409 
					 
					
						
						
							
							activity: Add separate page for remote server information/table.  
						
						 
						
						... 
						
						
						
						Moves the "Remote Zulip servers" tab in the "/activity" page for
an installation to a separate page, "/activity/remote".
Prototype for moving other tabs in "/activity" to separate pages. 
						
						
					 
					
						2023-10-04 12:48:39 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Eeshan Garg 
							
						 
					 
					
						
						
							
						
						1dec97c925 
					 
					
						
						
							
							analytics: Use user IDs to get user activity summaries.  
						
						 
						
						... 
						
						
						
						Using user IDs instead of emails is more reliable since users can
have arbitrarily complex emails that are hard to encode in a URL.
This has led to NoReverseMatch exceptions in the past. 
						
						
					 
					
						2021-10-13 15:30:27 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								PIG208 
							
						 
					 
					
						
						
							
						
						e517f967b8 
					 
					
						
						
							
							typing: Amend inaccurate type annotations.  
						
						 
						
						... 
						
						
						
						This amend some type annotations that turn out to be inaccurate with
django-stubs. 
						
						
					 
					
						2021-07-27 12:17:00 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Tim Abbott 
							
						 
					 
					
						
						
							
						
						e0c7581168 
					 
					
						
						
							
							analytics: Rename get_activity to get_installation_activity.  
						
						 
						
						
						
						
					 
					
						2021-06-17 17:39:28 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Tim Abbott 
							
						 
					 
					
						
						
							
						
						0e358e4cc2 
					 
					
						
						
							
							analytics: Rename analytics/views/legacy.py.  
						
						 
						
						
						
						
					 
					
						2021-06-17 17:39:28 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Tim Abbott 
							
						 
					 
					
						
						
							
						
						e083134764 
					 
					
						
						
							
							analytics: Extract analytics/views/user_activity.py.  
						
						 
						
						
						
						
					 
					
						2021-06-17 17:39:28 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Tim Abbott 
							
						 
					 
					
						
						
							
						
						0d2e5cc390 
					 
					
						
						
							
							analytics: Extract analytics/views/realm_activity.py.  
						
						 
						
						
						
						
					 
					
						2021-06-17 17:39:28 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Tim Abbott 
							
						 
					 
					
						
						
							
						
						d22acb23bc 
					 
					
						
						
							
							analytics: Extract analytics/views/support.py.  
						
						 
						
						
						
						
					 
					
						2021-06-17 17:39:28 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Tim Abbott 
							
						 
					 
					
						
						
							
						
						5d8613a02c 
					 
					
						
						
							
							analytics: Extract analytics/views/stats.py.  
						
						 
						
						... 
						
						
						
						This is much higher quality code than some of the older /activity
code, and it's nice to give it its own home. 
						
						
					 
					
						2021-06-17 17:39:28 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Tim Abbott 
							
						 
					 
					
						
						
							
						
						9c8ddef5f2 
					 
					
						
						
							
							analytics: Create analytics/views/ directory.  
						
						 
						
						
						
						
					 
					
						2021-06-17 17:39:28 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Anders Kaseorg 
							
						 
					 
					
						
						
							
						
						6e4c3e41dc 
					 
					
						
						
							
							python: Normalize quotes with Black.  
						
						 
						
						... 
						
						
						
						Signed-off-by: Anders Kaseorg <anders@zulip.com > 
						
						
					 
					
						2021-02-12 13:11:19 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Anders Kaseorg 
							
						 
					 
					
						
						
							
						
						11741543da 
					 
					
						
						
							
							python: Reformat with Black, except quotes.  
						
						 
						
						... 
						
						
						
						Signed-off-by: Anders Kaseorg <anders@zulip.com > 
						
						
					 
					
						2021-02-12 13:11:19 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Anders Kaseorg 
							
						 
					 
					
						
						
							
						
						0228acf0f5 
					 
					
						
						
							
							rest: Add rest_path shortcut for path with rest_dispatch.  
						
						 
						
						... 
						
						
						
						Signed-off-by: Anders Kaseorg <anders@zulip.com > 
						
						
					 
					
						2020-09-22 10:51:00 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Anders Kaseorg 
							
						 
					 
					
						
						
							
						
						5297e4a30a 
					 
					
						
						
							
							urls: Use unqualified imports.  
						
						 
						
						... 
						
						
						
						Signed-off-by: Anders Kaseorg <anders@zulip.com > 
						
						
					 
					
						2020-09-22 10:51:00 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Anders Kaseorg 
							
						 
					 
					
						
						
							
						
						e70f2ae58d 
					 
					
						
						
							
							rest: Specify rest_dispatch handlers by function, not by string.  
						
						 
						
						... 
						
						
						
						Signed-off-by: Anders Kaseorg <anders@zulip.com > 
						
						
					 
					
						2020-09-22 10:46:28 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Anders Kaseorg 
							
						 
					 
					
						
						
							
						
						faf600e9f5 
					 
					
						
						
							
							urls: Remove unused URL names and shorten others.  
						
						 
						
						... 
						
						
						
						Signed-off-by: Anders Kaseorg <anders@zulip.com > 
						
						
					 
					
						2020-09-22 10:46:28 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Anders Kaseorg 
							
						 
					 
					
						
						
							
						
						1c80188648 
					 
					
						
						
							
							urls: Elide str converter, which is the default.  
						
						 
						
						... 
						
						
						
						Signed-off-by: Anders Kaseorg <anders@zulip.com > 
						
						
					 
					
						2020-09-12 11:21:40 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								wowol 
							
						 
					 
					
						
						
							
						
						035d047dff 
					 
					
						
						
							
							urls: Migrate analytics urls to use modern django patterns.  
						
						 
						
						
						
						
					 
					
						2020-06-23 15:02:42 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Vishnu Ks 
							
						 
					 
					
						
						
							
						
						8eeb8280b4 
					 
					
						
						
							
							activity: Create interface for doing support operations.  
						
						 
						
						... 
						
						
						
						This should grow into a tool that makes it much easier to do common
organization management tasks without using a manage.py shell. 
						
						
					 
					
						2019-03-11 12:01:11 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Tim Abbott 
							
						 
					 
					
						
						
							
						
						ebdd55814c 
					 
					
						
						
							
							analytics: Add support for graphing remote analytics data.  
						
						 
						
						... 
						
						
						
						Combined with recent work on submitting data, one can now view the
high-level usage numbers for chat.zulip.org on zulipchat.com's
dashboards. 
						
						
					 
					
						2019-02-02 16:55:12 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rishi Gupta 
							
						 
					 
					
						
						
							
						
						1af7fc7344 
					 
					
						
						
							
							stats: Add /stats/installation.  
						
						 
						
						
						
						
					 
					
						2018-05-18 15:12:36 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Shubham Dhama 
							
						 
					 
					
						
						
							
						
						b26c38bc47 
					 
					
						
						
							
							analytics: Make stats of all realms accessible to server admins.  
						
						 
						
						... 
						
						
						
						In this commit:
Two new URLs are added, to make all realms accessible for server
admins. One is for the stats page itself and another for getting
chart data i.e. chart data API requests.
For the above two new URLs corresponding two view functions are
added. 
						
						
					 
					
						2018-04-18 11:06:50 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Tim Abbott 
							
						 
					 
					
						
						
							
						
						2b43a0302a 
					 
					
						
						
							
							python: Sort imports in smaller apps.  
						
						 
						
						
						
						
					 
					
						2017-11-15 15:55:49 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Tim Abbott 
							
						 
					 
					
						
						
							
						
						161522e04c 
					 
					
						
						
							
							analytics: Add comment explaining server admin routes.  
						
						 
						
						
						
						
					 
					
						2017-02-02 16:23:10 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rishi Gupta 
							
						 
					 
					
						
						
							
						
						f375caed46 
					 
					
						
						
							
							/activity: Fix URL route for analytics.views.get_realm_activity.  
						
						 
						
						... 
						
						
						
						analytics.views.get_realm_activity was taking a 'realm_str', but the URL
route was expecting a 'realm'. Changed the URL route to take a 'realm_str'. 
						
						
					 
					
						2017-01-12 15:21:06 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rishi Gupta 
							
						 
					 
					
						
						
							
						
						9e5325a164 
					 
					
						
						
							
							Add /stats page with basic stats graph.  
						
						 
						
						... 
						
						
						
						Adds a new url route and a new json endpoint. 
						
						
					 
					
						2016-12-29 14:20:13 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Umair Khan 
							
						 
					 
					
						
						
							
						
						d837753d4b 
					 
					
						
						
							
							Django 1.10: Update analytics urls.  
						
						 
						
						
						
						
					 
					
						2016-11-10 16:20:03 +05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Umair Khan 
							
						 
					 
					
						
						
							
						
						b140236fcf 
					 
					
						
						
							
							Django 1.10: Do not use patterns function.  
						
						 
						
						
						
						
					 
					
						2016-11-04 10:06:00 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Umair Khan 
							
						 
					 
					
						
						
							
						
						f9bbc5d6ff 
					 
					
						
						
							
							Enable i18n support in URL configuration.  
						
						 
						
						... 
						
						
						
						This supports i18n using all of the following:
- I18N urls
- Session
- Cookie
- HTTP header 
						
						
					 
					
						2016-05-19 08:33:30 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Steve Howell 
							
						 
					 
					
						
						
							
						
						f5bb2409ef 
					 
					
						
						
							
							Create "analytics" app with activity reports.  
						
						 
						
						... 
						
						
						
						(imported from commit 6385935c3d7894fe52bcc265faecc30b07629717) 
						
						
					 
					
						2013-11-06 12:07:32 -05:00