Tim Abbott
a54e8fee1c
Add tool used for backing up wiki, trac, events.
...
This is a slightly tweaked version of the tool Keegan was using for
these backups.
(imported from commit c9fb7f0585c219703130fe1431ea40ca7320408e)
2013-04-17 10:19:13 -04:00
Tim Abbott
6ab480d9c6
restart-server: Call fill_memcached_caches via more direct path.
...
The previous version ended up being (at least sometimes) wrong after
the recent deployment system changes.
(imported from commit dec3beb1b1bf8b9c9ad6820b93b0a5d730d020e8)
2013-04-17 10:19:13 -04:00
Leo Franchi
350cf79ba0
Add a nagios check for a notify_tornado consumer
...
(imported from commit 050536bb4ac7384d5b98d5cf6cb7430b2b00dbd5)
2013-04-17 09:24:28 -04:00
Tim Abbott
7b1513b675
check_send_receive: Use different users for staging and prod.
...
(imported from commit 26aad66bf4b0bdd0d52693f42f6fc1ad1471f948)
2013-04-16 15:25:35 -04:00
Tim Abbott
eade71651f
check_send_receive: Improve error reporting on receive path.
...
(imported from commit 54eed4286c5ee4830670306be7c018f41dd4f906)
2013-04-16 15:25:06 -04:00
Jessica McKellar
95d0f383f2
Update star title hover when you toggle it.
...
(imported from commit 46f66566c1c59619e45371f3cc51ba15dc645273)
2013-04-16 14:08:31 -04:00
Tim Abbott
99ce1ce9ac
munin: run the humbug_send_receive plugin against the current site.
...
(imported from commit 594e77dd32b9ab0db0002e7dc357ebe93b3ca9cd)
2013-04-16 12:02:42 -04:00
Tim Abbott
5b1b2257bd
nagios: Commit Luke's testing contact.
...
(imported from commit d88951f42ad7753777b8e0ab2d47b9bb61ff3f76)
2013-04-16 12:02:42 -04:00
Tim Abbott
bb3b63206a
nagios: Comment out the postgres time checks (they're too noisy).
...
(imported from commit c9569cdbd2909ea7fb8c8c14a681201ee033c62b)
2013-04-16 12:02:42 -04:00
Tim Abbott
b73ac39a25
nagios: Run check_send_receive_time check against both staging and prod.
...
(imported from commit 749c5f04fba4832debe8a4e702914fa47d1fbeaa)
2013-04-16 12:02:42 -04:00
Tim Abbott
73886a95fd
nagios: Update app.humbughq.com to use its primary hostname.
...
(imported from commit 39d291e06b0fa223ae4bb76022b26464b969a505)
2013-04-16 12:02:42 -04:00
Leo Franchi
d7a33485ad
Register a tornado atexit handler to disconnect from rabbitmq
...
(imported from commit b70650070f1df548794a9e3ff2948d134fd0c5de)
2013-04-16 11:49:03 -04:00
Leo Franchi
79a94a8e79
Delay queue creation if we're not connected in the TornadoQueueClient
...
(imported from commit c583693783322136927ae1a1018a61b2ffa6597f)
2013-04-16 10:04:48 -04:00
Leo Franchi
befe7c26d3
Don't send on-demand presence information for mit users
...
(imported from commit 711a197b9a8c1e6c66d768b240c7bce7595e5b3b)
2013-04-16 09:37:25 -04:00
Leo Franchi
c024653331
Build presence update for missed events properly
...
(imported from commit 15d75a2e0f5c5e1035b526df3aca443a2cffdf25)
2013-04-16 09:32:46 -04:00
Waseem Daher
191fb3cb49
Capitalize "Your messages" consistently with the others.
...
(imported from commit d049e8b500a60e40c1f910837343d48973cb2b93)
2013-04-14 20:51:48 -07:00
Zev Benjamin
5069140116
Align star icon with home icon
...
(imported from commit c8ba6b53ce9faf9e003cb7b1a0096f13fc85002e)
2013-04-12 16:08:49 -04:00
Tim Abbott
dc0736ef97
Redefine is_public to be 'humbughq.com realm and not invite_only'.
...
(imported from commit 52a5b461eff926b28c2bb914b26b697de5fbfc3d)
2013-04-12 15:43:42 -04:00
Tim Abbott
34977a4017
Use a generator comprehension for history messages.
...
(imported from commit 1f3079cb33ea1feae0290e02778cb383726fd8c9)
2013-04-12 15:43:42 -04:00
Tim Abbott
0e1842f77c
Rename 'Home' to 'Your Messages'.
...
(imported from commit 879c8f135f4a5aee1e819fd8be07d47928f68d1c)
2013-04-12 15:43:42 -04:00
Tim Abbott
5ab44f6993
Add note to invite notification on historical messages.
...
(imported from commit ea3da4bd5b3e461b37b1d5af685d96bf5ecdb847)
2013-04-12 15:43:42 -04:00
Tim Abbott
6f22fb706d
get_old_messages: Drop old streams parameter from lurk mode.
...
Its functionality is now subsumed in what happens if you specify a
stream narrow.
(imported from commit 01fbd1de6ac20a35314511cd065ca36be766c2a1)
2013-04-12 15:43:42 -04:00
Tim Abbott
82da2bec10
Add trailing bookend with current subscribed status in some narrows.
...
This is basically just the logical extension of the previous commit
for the case where the last thing we did was subscribe or unsubscribe.
This even magically updates when you subscribe or unsubscribe from
another window :).
(imported from commit 2399329d11bf66aa0b614a21d2b3cf4035452279)
2013-04-12 15:43:41 -04:00
Tim Abbott
bad18f6971
Display heading on boundary between historical and non-historical.
...
(imported from commit b1669725d5a10ae086d04d0aa03341bcb0b8b858)
2013-04-12 15:43:41 -04:00
Tim Abbott
ae4d248da3
Display whether a message is historical in the actions popover.
...
I made this a smaller font size since it's kinda a footnote.
(imported from commit 2ad561e9fd1434d5dd19fa8c947fbc5185d71586)
2013-04-12 15:43:41 -04:00
Tim Abbott
738ed84b5d
Call load_old_messages on all narrows, empty or not.
...
This is required to get historical messages that might be within the
message ID range of your home view.
I think we could avoid calling load_old_messages on every narrow by
tracking when the user last subscribed to each stream, and if the user
subscribed before the first message in the current home view message
window (aka the messages used for the fast-path narrowing), don't call
load_old_messages. This would happen almost every time. But it would
require a schema change to do this.
We also remove the load_more_messages call from hashchange.initialize.
It is no longer required now that we're calling load_old_messages on
each narrow anyway.
(imported from commit 1c78c183e61392429592ae89d566315be7be8999)
2013-04-12 15:43:41 -04:00
Tim Abbott
c56b0074e4
Fix visiting the app via a narrowed URL.
...
(imported from commit 1946f2b8f3ffba0729e4ad975aeac1887a0ed437)
2013-04-12 15:43:41 -04:00
Tim Abbott
5e50ba09ff
Backend support for historical messages.
...
(imported from commit d5e3674c66ae2fb54901ffb59baf72e7afcd1e68)
2013-04-12 15:43:41 -04:00
Tim Abbott
f933d19826
get_old_messages: Add support for querying just Message table.
...
This works by rather than hardcoding e.g. "message__recipient",
using (prefix + "recipient") where prefix is either "message__" or "".
(imported from commit 3a27d6499bc869d6dd389b074cb7d7cf286760aa)
2013-04-12 15:43:41 -04:00
Tim Abbott
6ca1cf8978
Rerender the message list when receiving out-of-order messages.
...
This should fix the problems we've been having with out-of-order
message deliveries, and is also an important prerequisite for showing
historical messages.
(imported from commit 77a18a526bf8ec4f1f70b776ac8b7e189d00bcf4)
2013-04-12 15:43:41 -04:00
Tim Abbott
13317c08b0
message_list: Remove ignored last argument to _render.
...
(imported from commit 95c1a40028d3cf40943cf195be9d288153e4e574)
2013-04-12 15:43:41 -04:00
Tim Abbott
ca4baa01e0
load_old_messages: Clean up for_narrow parameter.
...
(imported from commit 1be9959ec3998371f24f9d11a9aa87e59d85aabf)
2013-04-12 15:43:41 -04:00
Tim Abbott
12416bb128
add_messages: Remove unused opts argument.
...
(imported from commit 5805348c39ec0db54b6bc6939ce2d85b4896500c)
2013-04-12 15:43:41 -04:00
Tim Abbott
104d3c8101
Make tools/send_confirmation_emails_command_line executable.
...
(imported from commit 3923efcbddaca705a64fb4359adc408c7f948ad4)
2013-04-12 15:37:49 -04:00
Tim Abbott
3ef78dd01c
Fix restarting of commands with new deployment loops.
...
(imported from commit 139d80097d74b1c7f4ec92175a2052b4acf55af1)
2013-04-12 15:35:49 -04:00
Tim Abbott
1b3d93ad47
Fix restarting of various tools during deployments.
...
(imported from commit b16b8b3d7ce159a91e7d9c3781f1e69861bd3ff3)
2013-04-12 15:35:49 -04:00
Zev Benjamin
858d32b3c4
Increase event queue lifetime and decrease event queue GC frequency
...
(imported from commit 6328c0659e2144a8d7898cbb54eac25f1c21c983)
2013-04-12 15:32:51 -04:00
Zev Benjamin
b24e824573
De-duplicate message contents in event queues
...
(imported from commit 55def3375977a551afd631d87ae622940f284ccb)
2013-04-12 15:32:51 -04:00
Tim Abbott
28c77382d1
Update foo-command-line scripts for new deployment model.
...
(imported from commit 62a1fc9a5d90966d33afe31bdd5f4b80f6754fad)
2013-04-12 15:03:11 -04:00
Leo Franchi
ecdb2acf79
Chop subjects to max of 5 regardless of timestamp of incoming messages
...
(imported from commit a58cd25d9c129729e0eb42ae090f4c715b5e20fe)
2013-04-12 12:47:41 -04:00
Leo Franchi
f6984e4d23
Sort subjects properly
...
(imported from commit e2cb3d3c7e6dd3de09ffcfc6622e524fc4b7ff7d)
2013-04-12 12:28:04 -04:00
Tim Abbott
04c4321d90
Move PERSISTENT_QUEUE_FILENAME into settings.py.
...
(imported from commit e7d1378fd0cb3f3d894ff4a5b6ee44212bf3ce34)
2013-04-12 12:06:53 -04:00
Tim Abbott
1b8cf16988
[manual] Update deployment process to run atomically.
...
This requires manual steps on deploy to each of staging and prod:
(1) Run the new update-deployment code to setup the initial deployment directory.
(2) Restart all the programs running in screen sessions.
(3) Deploy the nginx changes and restart nginx.
(imported from commit 1ffe27933ee79274dc0a93d35c9938712de0ef36)
2013-04-12 11:54:50 -04:00
Tim Abbott
f7406b9c7d
Don't write logs to the server's working directory when DEPLOYED.
...
Otherwise these logs will end up all getting split up when we switch
to the new deployment model.
(imported from commit 0514c296470be7113cab6c2f48e8dd33f1b9353d)
2013-04-12 11:54:50 -04:00
Tim Abbott
a3ded3ecc1
[manual] Move server.log files and rotate them every week.
...
This requires creation of the /home/humbug/logs/ directory before
being deployed.
(imported from commit d0829748539a5f52c9d5edf06419715d02eef9eb)
2013-04-12 11:54:49 -04:00
Tim Abbott
88e2949818
Move update-prod-static etc. out of restart-server.
...
(imported from commit 763af1c8b1937cda860acc635d9d87c12d66a938)
2013-04-12 11:54:49 -04:00
Leo Franchi
9130f6722f
Show latest 5 subjects in sidebar when narrowed to a stream
...
This is a V1 of this feature. For now, the only way to expand is by narrowing
to the stream---future revisions may add a manual toggle if it is found to be
useful.
Additionally, showing per-subject unread counts will be coming in a future revision
as well.
(imported from commit fb5df0d27e928fa3b0f32b9ff2c1c508202cf7e5)
2013-04-12 11:51:09 -04:00
Leo Franchi
916c235d8c
Only show active users in presence list
...
(imported from commit 73c0347aa10b52f13f41bbd93ff5372750ffcd3e)
2013-04-12 09:53:50 -04:00
Leo Franchi
302cfcd48c
Send client information for initial presence and process time differential
...
(imported from commit 99a51b7cc8b6c51c4e82757a984d07603b2980e3)
2013-04-12 09:11:40 -04:00
Leo Franchi
5d4b2305fe
Send presence updates when a new user logs in for the first time, and when returning from inactive
...
This commit will incorrectly list past-online users as active, a shortcoming that is
addressed in the next commit
(imported from commit b018767df686f88c0ca939c067c573e4d7cea357)
2013-04-12 09:11:40 -04:00