Zev Benjamin
eba1008b1c
puppet: Use absolute paths in execs
...
(imported from commit 426c572a4653ad44aa315b43d49c0d6ce001a58d)
2013-02-08 16:05:50 -05:00
Zev Benjamin
5c6a3f3e66
puppet: move all our puppet classes into a 'humbug' module
...
(imported from commit 69b42598c003bbe85dfa4266c56dd019304ea7fb)
2013-02-08 16:05:50 -05:00
Tim Abbott
000b02c068
Clean up code duplication in add_messages.
...
The interface is a little messy because so many of the inputs change
-- we need to better organize all these variables under centralized
'zfilt' and 'zhome' headings.
(imported from commit b247e86bf63ea2ea2c0d42ef23e8af0ce288d5dd)
2013-02-08 14:43:21 -05:00
Tim Abbott
2d9a21654b
Fix messages being added to the home view out of order.
...
So here's the reproduction recipe:
(1) Find a narrow that doesn't have any messages since 4 days ago
(2) Directly visit that narrow in your browser (or wait for someone to
do a deploy and thus auto-reload)
(3) Wait until load_old_messages has been called at least once
(4) Un-narrow
(5) Scroll up, and notice that the 400 most recent messages are above
sets of older messages.
The cause is that the code in add_messages assumed that
selected_message_id was within the range of message already in the
home view. This is true in most cases where add_message is being
called, but it is not true in the case that the user was in a narrowed
view containing only very old messages (And thus selected_message_id
would be older than everything in the home view).
We can fix this by tracking persistent_message_id separately and using
that for the relevant test in add_messages.
(imported from commit f0da2561ba68f729343b260adc398029fae6acf7)
2013-02-08 14:43:13 -05:00
Keegan McAllister
9edb616feb
queue: Add logging
...
(imported from commit db2f15cf5f6a683f03d08a2e8b8ee4547537daf7)
2013-02-08 13:57:22 -05:00
Keegan McAllister
89c544f21f
queue: Refactor SimpleQueueClient initialization
...
In anticipation of subclassing.
(imported from commit 1ebee932aed1b472bf9a8ab6d9bc30519f587c83)
2013-02-08 13:57:22 -05:00
Keegan McAllister
d349de903b
queue: Get rid of lazy initialization in SimpleQueue
...
Instead make it a singleton with a get_instance() class method.
(imported from commit e32cabf77b43361e74a11a23bba3a6d9fb32f82f)
2013-02-08 13:57:22 -05:00
Keegan McAllister
b2bc7941dc
queue: Use normal instance data in SimpleQueue
...
Code like this is dangerous:
class SimpleQueue(object):
queues = set()
because all instances will share the same 'queues' set object.
We don't really need multiple instances, but neither is there a reason to break
them. So do the normal Python thing instead.
(imported from commit a56bb8414dd549cfd312c9565df198cf9d20f08a)
2013-02-08 13:57:22 -05:00
Keegan McAllister
f14db52f22
queue: Rename SimpleQueue to SimpleQueueClient
...
It doesn't represent a single queue; that's what the 'queue_name' arguments are
for.
(imported from commit 8382ae6793ca7c3ae4b5aacf2c128113a7a88fb6)
2013-02-08 13:57:22 -05:00
Keegan McAllister
2617bbcdff
queue: Remove shebang line
...
There's no reason to run this file as a script, and it's not marked as
executable.
(imported from commit 52bddaf2b59333c1f37b2cfc90b92a164c2e6d3c)
2013-02-08 13:57:22 -05:00
Keegan McAllister
401f591ab7
[manual] post-receive: Remove handling of refs/heads/hunt
...
Deployment steps: See comment at the top of tools/post-receive.
Will do this when the commit hits master.
(imported from commit 8e096609fca618ed82bfbee43bae701daaf49261)
2013-02-08 13:33:28 -05:00
Keegan McAllister
bcec450c49
[manual] Remove hunt server from Postgres config
...
Deployment steps: TBD. Will do this when the commit hits master.
(imported from commit 1eebbe873d520cb44c6605845afc9421448c6fe4)
2013-02-08 13:33:28 -05:00
Keegan McAllister
c5644cff12
notify_new_user: Remove code specific to customer29.invalid
...
(imported from commit 4ac29251ccbfafb4a7c2dd9d7b200474d68505d9)
2013-02-08 13:33:28 -05:00
Keegan McAllister
d68674be83
Remove CUSTOMER30-specific account views
...
Reverts c4b6f744 (inexactly, since there are some other changes along the way).
(imported from commit 5c7294fb13cd0bc523ae55c137dc5254b7cb0121)
2013-02-08 13:33:28 -05:00
Jessica McKellar
ad8e9598f6
Log domain in do_activate_user.
...
(imported from commit 0e39b5ddc395ff245f8e3b0252ea3b33a90860f1)
2013-02-08 13:20:19 -05:00
Jessica McKellar
18db4bc823
views: remove unused imports.
...
(imported from commit 38a4981637f1b3bfd9135d459a17a3ba142c86a7)
2013-02-08 13:20:19 -05:00
Jessica McKellar
50bab7af8f
Log domain in user creation event.
...
(imported from commit d5aca898781b4f33a749536181e50f941bd16b59)
2013-02-08 13:20:19 -05:00
Jessica McKellar
b99670777a
tests: check actual e-mail results in invite tests.
...
(imported from commit 45debbc00024de66aecd6cef17946868819f9566)
2013-02-08 13:20:19 -05:00
Jessica McKellar
8d528f9441
tests: add tests for inviting existing users and users outside your domain.
...
(imported from commit c96e548fa934ba51e1549970c3700b6f26304fb4)
2013-02-08 13:20:19 -05:00
Jessica McKellar
b35a529ef3
tests: update invite tests to reflect text changes.
...
(imported from commit a3d0d0068a0b51cdf7840891e6b5a17cc0c083d2)
2013-02-08 13:20:18 -05:00
Jessica McKellar
1fcf43c289
When someone invites you to Humbug, infer your domain from their referral.
...
Regardless of your e-mail address, as the realm might be open.
(imported from commit 5f9cdbdef52f8c8ae61035e71f12a9b7e4ed4a5e)
2013-02-08 13:20:18 -05:00
Jessica McKellar
8cac04565c
retention: look up domain instead of inferring from a user's email.
...
(imported from commit d678c53e1806922fc23b8e5126493736b675b589)
2013-02-08 13:20:18 -05:00
Jessica McKellar
256fa0e485
Fix invite bug in which we'd falsely say you'd invited folks with existing accounts.
...
(imported from commit 9114836d084937dcc1a707338dd916e28f97a87d)
2013-02-08 13:20:18 -05:00
Jessica McKellar
a332bee2b7
When inviting users, check if the invitee is in-domain or the realm is open.
...
(imported from commit 42e072d9717f38cc6d0c7010d37bbabd81aa3ae7)
2013-02-08 13:20:18 -05:00
Jessica McKellar
aeba3beb55
Validate and document checking the domain of the recipient of an MIT Zephyr Humbug.
...
(imported from commit 35b8675171bcdf0c27655723bc76bced8b53a431)
2013-02-08 13:20:18 -05:00
Jessica McKellar
8d06143115
[manual][schema] Add a restricted_to_domain bit on realms.
...
Default True; if False, arbitrary e-mail addresses can use your realm.
(imported from commit 6eec7516a535429cbaa74f6348651feef73cacd6)
2013-02-08 13:16:35 -05:00
Luke Faraone
fd1d790b72
Don't show the stream list on Humbug for MIT.
...
(imported from commit d9f952aaeb910a7c57ce1174141686331224c8c0)
2013-02-08 12:02:05 -05:00
Luke Faraone
686c709788
Add a link to filter to all private messages
...
(imported from commit 115f84b42c14acdc8d1827bd8d914a9ac6acab43)
2013-02-07 15:35:46 -05:00
Luke Faraone
9c86db20fc
Add support for "labels" in the left sidebar.
...
(imported from commit 5e942a8d0c7f459148a4961736f4c5305e0c51b4)
2013-02-07 15:35:46 -05:00
Waseem Daher
2a6fa085a1
Remove signup button from new-user.
...
Most people who have gotten this page haven't been in a position
to click this button; furthermore, most of our early users will
be invited into the system with an invite link.
To see this page with a button you can't actually use is kind
of confusing, so, removing it.
(imported from commit 20fbb1baf1ed4db6a6713fb112922d72a8360b03)
2013-02-07 14:58:49 -05:00
Keegan McAllister
8f580352a8
retention_policy: Retain all metadata changes in logs
...
(imported from commit 28cfc452f1ceca8a3e6b04e32034911ba384a0a8)
2013-02-07 14:29:53 -05:00
Tim Abbott
a306c28aa2
puppet: Add documentation on setting up the API distribution site.
...
(imported from commit ea298e8123bb5fee079cf969802fcb8201ed3111)
2013-02-07 14:28:06 -05:00
Waseem Daher
5dfd4485b5
Properly sort member list on streams page.
...
(imported from commit 702e78810278584fc8b2e217523ee38ff7907471)
2013-02-07 14:17:58 -05:00
Waseem Daher
87b1c91406
Don't show success notifications on subscribe.
...
A visual change in the form will already have made it clear
that the action succeeded.
(imported from commit 114bc3a9c9ee759993b8e2c80f7d9a479d365e21)
2013-02-07 14:17:58 -05:00
Waseem Daher
bd6be38010
Slightly cleaner subscriptions page error handling.
...
Prior to this commit, successfully creating a stream (or unsubscribing
from a stream) didn't clear earlier error messages.
Here's how you could reproduce it:
* Try to subscribe to ""
(You get an error)
* Now unsubscribe from something, or subscribe
to a new stream
(The error message does not go away)
(imported from commit c3c6fa6081df00378182ff0c3499e9d907577c04)
2013-02-07 14:17:58 -05:00
Waseem Daher
2660db7e18
api: Move integrations into their own subdirectory.
...
(imported from commit e1a64fbbc64e64e7a2c2fdda4cc9bc77ff3bc852)
2013-02-07 14:15:44 -05:00
Waseem Daher
75ebd7c7fb
integrations: Update path to integrations.
...
(imported from commit 38382cf03afe259ec044de2cfcf497664a5bb0c8)
2013-02-07 14:12:02 -05:00
Keegan McAllister
5be28bbbb4
expunge_logs: Abort on keyboard interrupt
...
(imported from commit b1fe93859c15e447c0935fcfb0e83a200bc016ba)
2013-02-07 11:34:49 -05:00
Keegan McAllister
a8ffa339de
retention_policy: On unrecognized events, print the timestamp to full precision
...
(imported from commit 0f5908e0602fa8be7dea3d9e3b1ecbc437531df9)
2013-02-07 11:34:49 -05:00
Keegan McAllister
d80dd021f1
retention_policy: Retain realm_created events
...
Previously these fell through and printed a warning message.
(imported from commit b3e488ff845b636e17c8b5b51d6cd84c1451bd2b)
2013-02-07 11:34:49 -05:00
Waseem Daher
e57d8883af
invite: Only clear email addresses after successful invite.
...
Prior to this commit, we also cleared out all of your checkboxes,
which is frustrating if you wanted to invite another person to the
exact same set of streams.
(imported from commit 389f27ec35dc9bf8c9058c5ffa867929ac90f674)
2013-02-06 20:18:00 -05:00
Waseem Daher
e98b4b9f1e
invite: Draw lock by invite-only streams (and don't select by default).
...
(imported from commit 1ad8a033801f70d3c6491691eebef79bbce82b77)
2013-02-06 20:15:12 -05:00
Waseem Daher
a44aa44e6c
Add a somewhat cheeky explanation of what an integration is.
...
(imported from commit 76d3627333a4df04019101315c368136963887bf)
2013-02-06 19:30:22 -05:00
Waseem Daher
8bc57ecf42
Fix some integrations page issues.
...
* tickybox -> checkbox
* Fix up the "register" URL (a stray linebreak was messing them up)
* Fix image blurriness issues
(style != class)
* Wrap a long line
(imported from commit 47fd8bf5c9c2c9665aaf8a0cb3c65d08b399b3b0)
2013-02-06 19:17:30 -05:00
Zev Benjamin
1618ee09fc
Make integral easter-egg not move the word "Humbug"
...
(imported from commit 7fa8088343bf5cd049c17f511495d0220faa497d)
2013-02-06 18:07:51 -05:00
Waseem Daher
f57caf08d1
bots: Import new copy of our Trac bot.
...
(imported from commit 17ce8162317f6e4f642ee4e9ee65413bbbdd9bbd)
2013-02-06 18:07:51 -05:00
Waseem Daher
209a1bee3b
integrations: Trac documentation.
...
(imported from commit 14978913711e3386ce3c845e434fc8e16ed0adf0)
2013-02-06 17:37:44 -05:00
Waseem Daher
8f573fac4c
Simplify the Trac integration plugin options slightly.
...
(imported from commit 4588d70f4e7664a9ba85be7003e17d4e8f55a333)
2013-02-06 17:37:44 -05:00
Waseem Daher
d8b9151a31
Initial documentation page for integrations.
...
(imported from commit cd73c63306ab7ed8c886c30488d5ab928fac6c06)
2013-02-06 16:53:13 -05:00
Waseem Daher
e1ea71b130
gitignore: Add .DS_Store
...
The Mac will sometimes make this file in directories with images.
(imported from commit 49fd5efe44e3500e4e6aa789a1207e1efc77b9b0)
2013-02-06 16:31:55 -05:00