Steve Howell
95dc0894d8
Add /realm_activity report.
...
This report will eventually replace the per-realm report that is
now accessible through /activity. In order not to disrupt Waseem,
I'm leaving the old reports around until we've polished the new
ones.
The old report does 24 different queries to get per-realm user data.
The new approach gets all the data at once, and it slices and dices
the data in Python to accomodate our slightly quirky data model.
On localhost, this is a typical query:
LOG: duration: 5.668 ms statement: SELECT "zerver_useractivity"."id", "zerver_useractivity"."user_profile_id", "zerver_useractivity"."client_id", "zerver_useractivity"."query", "zerver_useractivity"."count", "zerver_useractivity"."last_visit", "zerver_userprofile"."id", "zerver_userprofile"."email", "zerver_client"."id", "zerver_client"."name" FROM "zerver_useractivity" INNER JOIN "zerver_userprofile" ON ("zerver_useractivity"."user_profile_id" = "zerver_userprofile"."id") INNER JOIN "zerver_realm" ON ("zerver_userprofile"."realm_id" = "zerver_realm"."id") INNER JOIN "zerver_client" ON ("zerver_useractivity"."client_id" = "zerver_client"."id") WHERE "zerver_realm"."domain" = 'zulip.com' ORDER BY "zerver_userprofile"."email" ASC, "zerver_useractivity"."last_visit" DESC
(imported from commit 0c71f4e32fe5a40f4496749dc29ad3463868d55e)
2013-11-01 11:46:26 -04:00
Steve Howell
3577ba7585
Add /user_activity page.
...
This page shows aggregate activity for a user on various
clients. This allows Waseem to troubleshoot things like users
switching between website and desktop, etc.
This particular page probably won't be used too much, but some of the
logic is gonna be reused in the per-realm activity pages.
(imported from commit b8c1fad5bfa45daab40954f92319f6f89a3fa433)
2013-11-01 11:46:26 -04:00
Tim Abbott
105380fcf1
puppet: Move certs/ into the zulip-internal puppet module.
...
(imported from commit 919edc305b2be42341ec58d4ad5c4f76779eb0f9)
2013-11-01 10:30:17 -04:00
Tim Abbott
7a48103763
Delete obsolete humbug-self-signed certificate.
...
(imported from commit c0ba128e121a266212a47d10de93d4987f36f7f6)
2013-11-01 10:30:17 -04:00
Tim Abbott
a53c7c0f45
Update local server install script for puppet move.
...
(imported from commit 4bd7292dd54e9091747dce44b41b57a42496bc3b)
2013-11-01 10:30:17 -04:00
Tim Abbott
ddbfe31449
Remove obsolete management command for mit.edufullname transition.
...
(imported from commit aed2a2d7bfedd98e2406bb18bf54f953a5ae7ef3)
2013-11-01 10:30:17 -04:00
Tim Abbott
11b92534e8
Remove obsolete management command for unread counts transition.
...
(imported from commit 52c6acbf4e8e53f86e880e475396d824c729405f)
2013-11-01 10:30:17 -04:00
Jessica McKellar
35e764e7d1
integration: add branch name to Stash messages.
...
(imported from commit 3421717acd0e85cb2a1b1f0bd15438f70fd3d82e)
2013-11-01 10:10:17 -04:00
Jeff Arnold
8ec2fd0908
Remove next sibling selectors
...
This change makes scrolling significantly faster
Partially addresses #1963
(imported from commit 26f0c40877b04a516f1e7a79b9a6100ef5b89c02)
2013-10-31 18:23:55 -04:00
Jessica McKellar
8684c98eef
tests: add basic navigation Casper tests.
...
(imported from commit 66ebb76123213167e551fb0d776a824e218a9032)
2013-10-31 17:34:34 -04:00
Jessica McKellar
6dad607aa6
Remove 'Messages' gear menu item: take 2.
...
The tab needs to exist, just don't show it.
(imported from commit 87531bb8e00498e2edac5838e47b85704789080a)
2013-10-31 17:34:28 -04:00
Luke Faraone
7fd9c607ea
Exclude api/setup.py from the linter's wrath.
...
(imported from commit 2e9718b6be472523b2684b6fcae4545f0a7fba49)
2013-10-31 17:26:52 -04:00
Jessica McKellar
b4d115f902
GitHub integration: only report pull requests for CUSTOMER38.
...
(imported from commit 4f253d544843b97f5faa64dcf8843498603f5a11)
2013-10-31 17:16:07 -04:00
Luke Faraone
7b6e584336
Remove accidentally left-in import of zulip in setup.py.
...
This is **actually** 0.2.2 :)
(imported from commit 4ae69809b550d76b7c3bdf7b1420b25b6e41f73b)
2013-10-31 16:27:59 -04:00
Luke Faraone
3be10e50ef
API 0.2.2 release.
...
(imported from commit 891ab7549e96c30dceb70bb18add1cd533fafd36)
2013-10-31 16:23:03 -04:00
Luke Faraone
e872cae552
Increment copyright year.
...
(imported from commit d42dfd080807a11d898a1c7b96b9f048e20bccf8)
2013-10-31 16:23:03 -04:00
Luke Faraone
81fafb5b6a
Document Python bindings on API page.
...
(imported from commit 660e6c22b2d6ecb47e99f01aa04f0d69bd108714)
2013-10-31 16:23:03 -04:00
Luke Faraone
de42c2a86c
Switch to four-spaces indentation in setup.py
...
(imported from commit 621e5755e8cfd7117e012f4245de0916e45060bb)
2013-10-31 16:23:03 -04:00
Luke Faraone
8f6e4c4163
Update support email address
...
(imported from commit 3265ea2ec037093bd883a440fe9f8c6d72642a31)
2013-10-31 16:22:51 -04:00
Rory Kirchner
b33819c16e
Added a stream class for use with the logging module.
...
License assent:
https://github.com/zulip/python-zulip/pull/3#issuecomment-18182458
(imported from commit 9faf9dd147032b1e56b113bc0f0d729a653e1e49)
2013-10-31 16:22:51 -04:00
Luke Faraone
cb00186c6a
Optionally use setuptools if it is installed.
...
Thanks to to github.com/roryk for the suggestion.
(imported from commit 9e4365dc56f1bc2f1a1a49be4a7b662d94bf42a9)
2013-10-31 16:22:51 -04:00
Rory Kirchner
aa17018a38
Parse __version__ from __init__.py
...
This way we don't crash if dependencies aren't installed.
License assent:
https://github.com/zulip/python-zulip/pull/3#issuecomment-18182458
(imported from commit f1aa37e97c60a06234c004ada48e08984a085d6f)
2013-10-31 16:22:51 -04:00
Waseem Daher
72a6c3d08e
Don't squish topic-editor height.
...
This height: 20px squishes the dropdown in Firefox.
(imported from commit 7535d1d28b384a676c835ca3adfff9bba893db5d)
2013-10-31 15:57:05 -04:00
Tim Abbott
429c41da79
Rename client-activity to client_activity to match other management commands.
...
(imported from commit b0b2cd372810923b3c808142f7b7eeef285d132d)
2013-10-31 15:29:50 -04:00
Tim Abbott
dbd4c187e3
Rename create-stream to create_stream to match other management commands.
...
(imported from commit 28daad12943ab5eb245d7737934b08f5b29e8f90)
2013-10-31 15:29:50 -04:00
Tim Abbott
5b1e504e13
Rename rename-stream to rename_stream to match other management commands.
...
(imported from commit 28522ac669a38e3de3f25b28c82ab0c787aecd0b)
2013-10-31 15:29:50 -04:00
Tim Abbott
013e84ef86
Remove obsolete explain_js_error management command.
...
(imported from commit 92f23e3bb7e6dbbad5162446b5f19e74728cf608)
2013-10-31 15:29:50 -04:00
Tim Abbott
217478e988
Remove obsolete clear_db management command.
...
do_destroy_rebuild_database is the "new" way to reset one's dev
database.
(imported from commit 8edb707ecd5e6e24b62eef324915cc3a4a5b8eda)
2013-10-31 15:29:50 -04:00
Tim Abbott
384f64d38d
Remove obsolete management commands from various field additions.
...
(imported from commit b44a2b683768c790839e82e2e9c9a18827670113)
2013-10-31 15:29:50 -04:00
Tim Abbott
f0580dd28c
Remove obsolete management command for activating MIT users.
...
(imported from commit a965eea8edfc9d73a00770d85cd517343f607338)
2013-10-31 15:29:50 -04:00
Tim Abbott
06d43a6f97
Remove obsolete management commands from the stream color transition.
...
(imported from commit d6d508d952714a1865ca4fddcb48d0ccedb6f4dd)
2013-10-31 15:29:50 -04:00
Tim Abbott
6d8fc371fb
Remove obsolete command to delete tutorial streams.
...
We don't have tutorial-bot anymore, so this is no longer needed.
(imported from commit b8a1bc9c2379a451e8cc1ed43b15f373bb3f2b06)
2013-10-31 15:29:50 -04:00
Tim Abbott
c8d07cc64c
Remove management commands from the mysql=>postgres migration.
...
(imported from commit 636f71b435a50e83fd8a9e40685d7c52b3b01f30)
2013-10-31 15:29:49 -04:00
Tim Abbott
ad128df3ac
Remove obsolete dots.svg (for generating pre-CSS presence dots).
...
(imported from commit 899ec477e33e742271de6e63b74d1dcf71d6f662)
2013-10-31 15:29:49 -04:00
Tim Abbott
21663601b4
Remove obsolete zulip.com/what-is-humbug page.
...
(imported from commit 0e2f317cf0bf262eb113caa7daab7d71ce564e9e)
2013-10-31 15:29:49 -04:00
Tim Abbott
a616800d8d
review: Rename humbug => zulip in test git repo path.
...
(imported from commit 1551003af066401914dbc055e75769911a335441)
2013-10-31 15:29:49 -04:00
Tim Abbott
4a15d135c1
Update unused puppet server name in puppet config.
...
(imported from commit b6fc02e4a6c55acb78ed3f4a3d91d526b9b7514d)
2013-10-31 15:29:49 -04:00
Tim Abbott
0e35424a7c
Rename humbug => zulip in some log file names.
...
(imported from commit 0bb5284566861e5a2f260cc66dcb53ebac0d7b97)
2013-10-31 15:29:49 -04:00
Tim Abbott
ba7c3a50f2
Remove migration code from database username migration.
...
(imported from commit 87a4ab08420b03aac331fda072149140804ee467)
2013-10-31 15:29:49 -04:00
Tim Abbott
c5b0076ecf
Rename humbug => zulip in audio files.
...
(imported from commit f297f1f9c8683d4e02e7a0c4ecf2182fc79b89f9)
2013-10-31 15:29:48 -04:00
Tim Abbott
eb4286bddd
Fix saving historical backups for our mediawiki.
...
Previously we were not commiting them to the right git repository.
(imported from commit 2a99db84fe6fce4d9fb970425af92d92507dce21)
2013-10-31 15:05:23 -04:00
Tim Abbott
161a1d4091
Rename humbug => zulip in paths for non-postgres backups.
...
(imported from commit a35065d3d94f86574d837a3e826023ee3a70819a)
2013-10-31 15:05:23 -04:00
Kevin Mehall
858b1f1bcd
Fix login page ?next= parameter.
...
request.get_full_path became the empty string and was ignored.
(imported from commit 6cced5969e74514e0a88c1dec2445a7e4cdf9806)
2013-10-31 14:36:35 -04:00
Kevin Mehall
c56110dd7b
Add /user_uploads parameter to return the link instead of redirecting.
...
(imported from commit 305e201e01aa919d2732dba3f1fd94ec4501d713)
2013-10-31 14:36:35 -04:00
Kevin Mehall
a09c7e1e0c
Make rest_dispatch errors cleaner for requests from browsers.
...
If you don't have a cookie or basic auth and the request looks like
a top-level page in the browser, redirect to the login page.
(imported from commit fc1bcb1080591522bd1b694664255f7049a5d443)
2013-10-31 14:36:34 -04:00
Jessica McKellar
c969c81fab
Revert "Remove 'Messages' gear menu item."
...
This reverts commit 01448ec2f28b88c3b1674b6a9e02d56f47a23fdf.
(imported from commit d109035f83a94aa48b0e57d5a5fa25ea781f566e)
2013-10-31 13:37:41 -04:00
Waseem Daher
1d784801cf
More settings.LOCALSERVER -> settings.LOCAL_SERVER.
...
(imported from commit 2b5045d302b8ebb2a5c7175264b4ab9cfef2844d)
2013-10-31 13:31:03 -04:00
Kevin Mehall
58f7138e07
Collect additional debug information for JS errors
...
(imported from commit 7c94ad118c2cd33e5b6eec4e27fd22dfa2d56909)
2013-10-31 13:18:43 -04:00
Steve Howell
70c1c31b3a
Simplify callback protocol for register_json_consumer().
...
The register_json_consumer() function now expects its callback
function to accept a single argument, which is the payload, as
none of the callbacks cared about channel, method, and properties.
This change breaks down as follows:
* A couple test stubs and subclasses were simplified.
* All the consume() and consume_wrapper() functions in
queue_processors.py were simplified.
* Two callbacks via runtornado.py were simplified. One
of the callbacks was socket.respond_send_message, which
had an additional caller, i.e. not register_json_consumer()
calling back to it, and the caller was simplified not
to pass None for the three removed arguments.
(imported from commit 792316e20be619458dd5036745233f37e6ffcf43)
2013-10-31 13:18:11 -04:00
Jessica McKellar
f1e90086f5
Remove the onboarding checklist.
...
Looking at the historical data, fewer than 50% of active users have
completed the checklist, which means that it is just persistent
clutter. We also have other better ways of encouraging people to send
traffic and get the apps now.
This commit removes both the frontend UI and backend work but leaves
the db row for now for the historical data.
(imported from commit e8f5780be37bbc75f794fb118e4dd41d8811f2bf)
2013-10-31 11:34:15 -04:00