Commit Graph

6035 Commits

Author SHA1 Message Date
Luke Faraone 41504762a1 env-wal-e: Use a different bucket if not running on an app postgres server.
(imported from commit e06be77d544532885fbc4769fedb55eedac22ccd)
2013-07-26 16:14:55 -04:00
Luke Faraone 76a58fe800 We are no longer using gitit nor is wiki running off git.zulip.net.
(imported from commit fbe1bc2804a5ed6ccecb7b3090b55d7e9fa5b1bc)
2013-07-26 16:14:55 -04:00
Luke Faraone a78718e299 Back up MediaWiki by dumping to an XML file and committing the result
(imported from commit 1f5d6b114e6dcf6940a56d9501ef41c15a772dd0)
2013-07-26 16:14:55 -04:00
Luke Faraone 639d963ff5 Split out app-specific postgres configuration.
(imported from commit 979811e69f436d02023a6c62e614a39c19bf64b8)
2013-07-26 16:14:55 -04:00
Tim Abbott ab74c5d0d2 Add error handling for process_user_activity bot.
(imported from commit 367e2c76d1d6de634bbbb70c9b1c1b8c82027c9e)
2013-07-26 16:06:59 -04:00
Zev Benjamin 603f0d7ace Speed up subscription table rendering
Previously, we'd render all the rows of the table except the first
(which is for creating new subscriptions) and append them all to the
table.  This ends up being really slow.  We now instead render the
entire tbody element and replace the existing tbody element.

When profiling on my laptop, this reduces the rendering time for a
few thousand streams from ~62 seconds to ~2 seconds.

(imported from commit 83a48e0e1f776f7663343662157298e89165ece3)
2013-07-26 16:01:13 -04:00
Zev Benjamin c87a58b27e handlebars: Add alternative partial support
Regular Handlebars partials require pre-registering.  This allows us
to treat any template as a partial.

(imported from commit fff785d4fa944547b7ad4c3a620ef9400777ec87)
2013-07-26 16:01:13 -04:00
Steve Howell 958955da23 Run node-based JS unit tests from test-all
(imported from commit 5bf9b690dfd3ac83296a58cf44a170960adaed39)
2013-07-26 14:52:33 -04:00
Steve Howell f258ce2127 Created test_message_tour.js.
I haven't hooked this into test-all yet, but I did modify
message_tour.js to accomodate the test.

(imported from commit e58f595f4fe1160f539c18ec09dbe22eebf1f104)
2013-07-26 14:52:32 -04:00
Scott Feeney a8c749f62b Use normalize_recipients() when adding message metadata
This change also adds comments to make it clear what the function does
and why it's used.

(imported from commit 68382abaf2d7c41c7de7d92cbf6e7583003aaf2a)
2013-07-26 14:44:30 -04:00
Scott Feeney d11a997dc3 Show space between multiple recipients (#1606)
Also adds a CasperJS test to verify multiple huddle recipients are
displayed properly.

(imported from commit 07f5f5ed30e360ac3f524d89e512bb1f20acaaa7)
2013-07-26 14:44:07 -04:00
Steve Howell 5b066c2289 Added comment to message_tour.js
(imported from commit 498ab9be3d499a1b8dbba97c051fbbd9a5f7290f)
2013-07-26 14:16:36 -04:00
Steve Howell 625003cbe1 Nudge pointer past visited msgs when coming home.
When you return to Home, we normally restore your last
position when in Home, which might have been before the
first unread message.  This is cumbersome for sidebar readers,
so now we keep track of messages that you visit while on a
tour away from Home, and when you return Home, we skip forward
any messages that were in the tour, landing on the last visited
message.  This all happens before rendering.

(imported from commit 9124a231d94f153e283e5ea95e40c50a58406275)
2013-07-26 14:03:55 -04:00
Steve Howell 41f744c3b8 Refactor how we mark a message range as read.
The goal here is to make it so that we can do other stuff with
the range of messages between two subsequent selections, besides
marking them as read.

(imported from commit f6eb07844fb2ccda195c9d4dfcdf1c15f3f40aff)
2013-07-26 13:58:01 -04:00
Steve Howell 6217c1a3be [third] Mouse-enable naturalSearch option in typeahead.
When hover over a typeahead menu item, the semantics have always been
to make it active, and now we also respect the naturalSearch option
there, which will set the text of the search box to the suggestion
immediately upon hover.

(imported from commit 02318d3d830e7e28d638efee0ef27023a73f52f7)
2013-07-26 12:00:30 -04:00
Steve Howell 7a3a3be7e5 [third] Fix sticky hover background color in typeaheads.
See https://github.com/twitter/bootstrap/issues/7392.  I seem to
have fixed it with just the CSS part of their suggested patch.

To repro the bug prior to this fix, enter search, hover over a
typeahead, and then hit the up arrow key.  You'll see two items
appear to be selected.

(imported from commit 383d60a606d7c19344a326208312a1555d060877)
2013-07-26 12:00:13 -04:00
Waseem Daher 647ae655b0 Revert "Don't allow content to overflow out of messageboxes."
This commit broke unread dots, since they're in the .messagebox
but absolutely positioned outside of it (so they got clipped.)

This reverts commit e0071851d2dc7d99c9acd93a1fc6fa1ce0c3b70e.

(imported from commit b3181b3a02cef905cc8f400f8c1cc3c92b5f0e15)
2013-07-26 10:51:18 -04:00
Zev Benjamin b478ccc347 Rename button to regenerate bot api keys
(imported from commit ee7c30d051e7532e4e8091c3bbc6575602ba360f)
2013-07-26 09:14:10 -04:00
Waseem Daher b277e6cc1b Start unread fade sooner.
The total duration of this animation is the exact same, but
it starts immediately - let's see if this feels any better.

(imported from commit de86c259a25adb64514613579476480bdac29cb2)
2013-07-26 09:05:32 -04:00
Zev Benjamin f7b7f074e9 Add tool for migrating users from Gravatar to user avatars
(imported from commit e3fbeb74489952f00f9063303f4026ee6a7148fc)
2013-07-26 07:39:16 -04:00
Steve Howell 91b05ffe88 Make sure stream:x foo suggests stream:x topic:foo
There was some misguided code that eliminated the suggestion when
the user typed out the full topic, and since then there is more
generalized protection against duplicate suggestions.

(imported from commit 857e74458d10995170d312b77d99d839706ae680)
2013-07-25 18:11:50 -04:00
Waseem Daher ed76d14e42 Don't call compose.start twice when on staging.
I'd encourage you all to review this diff thoroughly, since I am not
very familiar with this code. However, it seems to me that, prior to
this commit, if respond_to_cursor is true and page_params.staging is
true, compose.start gets called twice! (once by `respond_to_message`
and once by the "if (page_params.staging)" under the else, after it
returns.)

I eliminate the second call by sticking it inside the first else; now,
as far as I can tell, we call compose.start once and only once.

(imported from commit 319f51392541def358a138c104dd21722b4f8ba8)
2013-07-25 17:53:31 -04:00
Tim Abbott 975f4aa59f api: Fix path in send_message example.
(imported from commit 6aab581bf00736986ffcd11042c757eff0c78653)
2013-07-25 17:27:46 -04:00
Tim Abbott 0d077e7f41 [manual] Use api.zulip.com to access the Humbug API.
This needs to be deployed after the nginx configuration is deployed.

(imported from commit 167a3d9d27595d40883bb400ebcc44c4ad9b6a2f)
2013-07-25 17:27:46 -04:00
Tim Abbott 4f8f46544c [manual] Add additional zulip hosts to nginx config.
We'll need to do a puppet apply on prod for this to take effect.

(imported from commit 764926317712ed8abebc429fb13d43c755e0f130)
2013-07-25 17:27:45 -04:00
Tim Abbott 438739f6cc More miscellaneous humbughq.com=>zulip.com updates.
(imported from commit 9a3dbc4268f251c2c0b20d8b6a7e1dc672f1b385)
2013-07-25 17:27:45 -04:00
Tim Abbott 44f9aa4c4c Use zulip.com domains for apt and www file distributions.
These domains aren't working quite yet.

(imported from commit 4f2ad2500d0b419bc25f5aa9bcf7e5c79a69b7ec)
2013-07-25 17:27:45 -04:00
Tim Abbott 34267b37b4 Use zulip.com for various links to the app and static content.
(imported from commit c40c994e98e767bb2714b4db655ac73fe92dfcd7)
2013-07-25 17:27:45 -04:00
Tim Abbott 9bef184eda Fix check_send_receive_time always checking prod.
The value it is passed is usually https://staging.humbughq.com, not
just staging.humbughq.com.

(imported from commit c3cd8fc5baa767377f506570aa8e7d2e1ed399ec)
2013-07-25 17:27:45 -04:00
Tim Abbott cdeaceea47 Fix URLs for wiki following mediawiki transition.
(imported from commit 140b4f7044f6e68c16d743c0e91dcf5a2557311e)
2013-07-25 17:27:45 -04:00
Tim Abbott 3fcd6eb9e6 Update humbughq.com => zulip.net in tools.
This shouldn't be pushed until we get graphite.zulip.net working.

(imported from commit c0dd208222385a9ee92ad1ca8fbf141894f7c7b6)
2013-07-25 17:27:45 -04:00
Tim Abbott 5764e86edc Remove obsolete merge-messages-logs tool.
(imported from commit 7feb10e74df4b788f0f9c6ba34cf23aa7db26d11)
2013-07-25 17:19:18 -04:00
Tim Abbott d07717178d Revert "Temporarily disable some tests during the realm transition."
(imported from commit 52312572aa109caa787205b6ef7a4f5fab71f4be)
2013-07-25 17:19:18 -04:00
Tim Abbott 6b70d5f2a7 Revert "Hack to make populate_db still work during domain transition."
This reverts commit 09d5d586ad1471004fc2f1b406b118958a248a60.

(imported from commit fd3fbf7b5f808ca7f32f9c2e87d7e7b371a6f2f0)
2013-07-25 17:19:18 -04:00
Tim Abbott 3a1abc3ab0 Rename humbughq.com realm to zulip.com.
(imported from commit 6039719271be1e80fa7f80b9be851c8db7159f5e)
2013-07-25 17:19:18 -04:00
Tim Abbott b1aef98ed0 Change humbughq.com to zulip.com in usability data.
(imported from commit 8bd1b134ae0ce46e0000b62c2f1c6dabb1db06cd)
2013-07-25 17:19:18 -04:00
Tim Abbott bcf86cae98 Switch Humbug users in API examples to zulip.com email addresses.
(imported from commit 83abeafee8d7d146d950c3049568acbf51bb3a12)
2013-07-25 17:19:18 -04:00
Tim Abbott e6ba8c8147 Update msmtprc for new zulip.com email addresses.
(imported from commit bb1e36193382b87c4426bdf259257468d30de70a)
2013-07-25 17:19:18 -04:00
Tim Abbott 77b0ddef78 [manual] Rename shakespeare users to zulip.com domain.
We need to update our Nagios configuration when this is deployed.

(imported from commit 28cc3ecfe30c41562742733d6952c8e69b87d67e)
2013-07-25 17:19:17 -04:00
Tim Abbott f7be8a31ab [manual] Rename feedback bot to zulip.com domain.
Just before this is pushed to prod, we need to rename the Humbug feedback
bot in the database using:

./manage.py change_user_email feedback@humbughq.com feedback@zulip.com
/etc/init.d/memcached restart

and we also need to update and restart feedback-bot in its deployed
location.

No action is required on pushing this to staging, but in between when
this is pushed to staging and when it is pushed to prod (and that
transition performed), feedback will not work on staging.

(imported from commit 73fc36f680b978f3aebae5df1822918ae4d4e952)
2013-07-25 17:16:54 -04:00
Tim Abbott c0a7e750c3 [manual] Rename notification bot to zulip.com domain.
Just before this is pushed to prod, we need to rename the Humbug
notification bot in the database using:

./manage.py change_user_email humbug+notifications@humbughq.com notification-bot@zulip.com
/etc/init.d/memcached restart

No action is required on pushing this to staging, but in between when
this is pushed to staging and when it is pushed to prod (and that
transition performed), notifying users that they were subscribed to a
new stream will not work on staging.

(imported from commit a0555527dec7b210022b09d9b1d13a7c910a8f9f)
2013-07-25 17:16:54 -04:00
Tim Abbott e085a804b9 [manual] Rename new user bot to zulip.com domain.
Just before this is pushed to prod, we need to rename the Humbug new
user bot in the database using:

./manage.py change_user_email humbug+signups@humbughq.com new-user-bot@zulip.com
/etc/init.d/memcached restart

No action is required on pushing this to staging, but in between when
this is pushed to staging and when it is pushed to prod (and that
transition performed), signup reporting to humbug will not work on
staging.

(imported from commit af2cd007b41ea885491f383442f211e8609fe5f9)
2013-07-25 17:16:54 -04:00
Tim Abbott b17741a5c4 [manual] Rename error bot to zulip.com domain.
Just before this is pushed to prod, we need to rename the Humbug error
bot in the database using:

./manage.py change_user_email humbug+errors@humbughq.com error-bot@zulip.com
/etc/init.d/memcached restart

No action is required on pushing this to staging, but in between when
this is pushed to staging and when it is pushed to prod (and that
transition performed), error reporting to humbug will not work on
staging.

(imported from commit 93044bb01797c981067f359676826d4a5791e235)
2013-07-25 17:16:54 -04:00
Tim Abbott c7d57e6e4a [manual] Rename commit bot to zulip.com domain.
When we push this to staging, we'll need to rename the bot in the
database and also pull on git.zulip.net.

(imported from commit 22b2397b197c8820f0e55daecd8f98d829e195bd)
2013-07-25 17:16:53 -04:00
Tim Abbott c81f2b2b97 Rename tutorial bot to zulip.com domain.
(imported from commit e91ff584f565d76b52577194e3d263232e1a0e46)
2013-07-25 17:16:53 -04:00
Tim Abbott 083b0408da Rename trac bot to zulip.com domain.
(imported from commit 8b842b0cc49974e38a0ecdca78be3fad3a1032bb)
2013-07-25 17:16:53 -04:00
Tim Abbott 1f08f4e70f Rename nagios bot to zulip.com domain.
(imported from commit 9a2fba54295b4c473e030d3ff6ededbc3e2455af)
2013-07-25 17:16:53 -04:00
Tim Abbott 15883674b0 Temporarily disable some tests during the realm transition.
(imported from commit 8d6ec3a5bf1ece457777393e18e4a82caff673ca)
2013-07-25 17:16:53 -04:00
Tim Abbott 477dbddbdf Hack to make populate_db still work during domain transition.
(imported from commit bd1500b49080c277edba5400c315c9824fcc4ac8)
2013-07-25 17:16:53 -04:00
Tim Abbott a9b3b20ea6 Use stream Verona rather than Venice for unread count tests.
It's the only one all of test users are guaranteed to be subscribed
to.

(imported from commit 371315f4988cb5b0d6a8ef287575607a91d22d30)
2013-07-25 17:16:53 -04:00