jkiely
aa8248e734
mypy: Enable strict optional for check redis management command
...
Removed the error handling on the get_user_profile_by_id function, as it
would have just caused a different error shortly after.
2018-05-17 13:44:35 -07:00
Tim Abbott
3006b3f52f
url_preview: Fix crash when description has no content.
...
There's several things we'll want to cleanup with this feature, but
for now we're content to just make this not crash.
2018-05-17 12:40:43 -07:00
jkiely
d5e7b9599d
mypy: Remove unnecessary blocks for strict optional=True.
2018-05-17 12:13:53 -07:00
jkiely
058ee1ce1e
mypy: Enable strict optional on lib/soft_deactivation.
...
Tweaked by tabbott to add assert statements, rather than new
conditionals.
2018-05-17 12:13:53 -07:00
Tim Abbott
d4119d0198
initialize_voyager_db: Do nothing if a realm already exists.
...
This should help avoid confusing error messages for anyone
accidentally running this twice.
In particular, this also makes it easier to run Zulip inside
Kubernetes, since one doesn't need to worry about duplicate calls.
2018-05-17 11:38:09 -07:00
jkiely
104fdd8bf9
mypy: enable strict optional for lib/message.
...
Add assert in order to pass checks under strict conditions.
2018-05-17 11:12:08 -07:00
jkiely
04c50cffa7
mypy: Enable strict optional in zerver/lib/bugdown.
...
Explicitly check for none in optional value and set it to a dict.
2018-05-17 11:12:01 -07:00
jkiely
b3d43df498
mypy: Enable strict optional for lib/exceptions.
...
Change return type of reduce_ex to pass under stricter conditions.
2018-05-17 11:11:58 -07:00
jkiely
ca3ce90496
mypy: Enable strict optional in lib/avatar.py.
...
Add assert to function and modify tests in order to pass under
strict conditions.
2018-05-17 11:11:55 -07:00
jkiely
a1b5e7d6d5
mypy: Enable strict optional in lib/events.
...
Modify one variable assignment to pass under strict conditions.
2018-05-17 11:11:53 -07:00
jkiely
ad065fde29
mypy: Enable strict optional for lib/notifications.
...
Modify fix_emojis function to pass under strict conditions.
2018-05-17 11:11:49 -07:00
Tim Abbott
d782927b4c
test_webhooks_common: Add logging for a test flake case.
...
This seems to happen occasionally in CI, and we don't know why.
2018-05-17 09:18:31 -07:00
Rishi Gupta
a422165662
help: Make minor edit to change-the-time-format.
2018-05-17 12:07:37 -04:00
Steve Howell
6a746307ad
node tests: Remove dead code in unread.js.
2018-05-17 08:33:51 -07:00
Steve Howell
46b5a5909c
node tests: Remove dead code in notifications.js.
2018-05-17 08:33:51 -07:00
Steve Howell
d51ec7851e
node tests: Remove dead code in general.js.
2018-05-17 08:33:51 -07:00
Steve Howell
910fc842e2
node tests: Remove dead code in components.js.
2018-05-17 08:33:51 -07:00
Steve Howell
0ae53570de
node tests: Remove dead code in activity.js.
2018-05-17 08:33:51 -07:00
Vishnu Ks
10832f1e8d
popover: Show last seen time in user profile.
2018-05-17 07:49:35 -07:00
Vishnu Ks
1e92810972
popover: Tag user timezone for translation.
2018-05-17 07:49:35 -07:00
Vishnu Ks
9c751f038c
popover: Show date joined in user profile.
2018-05-17 07:49:35 -07:00
Vishnu Ks
372e9740ac
events: Add date_joined to user_dict.
2018-05-17 07:49:35 -07:00
Vishnu Ks
47b0a0d843
queue: Remove unused enqueue_welcome_emails import.
2018-05-17 07:45:37 -07:00
Tim Abbott
fc32fe16c6
test_presence: Add debugging output to help track down a flake.
...
This test has been failing nondeterministically, and the debug output
should help us figure out why.
2018-05-17 07:44:46 -07:00
Tim Abbott
63a01d35e1
docs: Remove now-obsolete trusty64 box instructions.
...
This annoying Vagrant bug hasn't been super relevant for over a year.
2018-05-17 07:33:24 -07:00
Tim Abbott
958be1ebb6
docs: Clarify Vagrant version recommendations.
2018-05-17 07:30:24 -07:00
Tim Abbott
0364ba8986
docs: Recommend Mailgun over Sendgrid for email setup.
2018-05-17 07:28:08 -07:00
Tim Abbott
faa2cd9597
docs: Clarify setup documentation for S3 backend.
2018-05-17 07:20:07 -07:00
Tim Abbott
0ac8de2b47
docs: Document new configuration option for production nginx.
2018-05-17 07:14:18 -07:00
Tim Abbott
61d6965634
puppet: Add option for controlling file upload nginx config.
...
Now, one can just set `no_serve_uploads` in `zulip.conf` to prevent
`nginx` from serving locally uploaded files.
This should help simplify the S3 integration setup process.
2018-05-17 07:02:30 -07:00
Tim Abbott
6d74ba8271
puppet: Add zulip.conf option for HTTP only.
...
This option is intended to support situations like a quick Docker
setup where doing HTTPS adds more setup overhead than it's worth.
It's not intended to be used in actual production environments.
2018-05-17 06:58:35 -07:00
Tim Abbott
0dcf873370
third: Rename thirdparty-fonts.css for better clarity.
...
Now it's clear that this is just legacy fontawesome styles.
2018-05-17 04:58:30 -07:00
Aman Ghebreweldi
b05a702285
third: Use font awesome css file from NPM package.
2018-05-17 04:58:30 -07:00
Aman Ghebreweldi
e5ec1e83e8
third: Use fontawesome NPM package.
...
This removes the need for us to have checked in a copy of fontawesome.
2018-05-17 04:58:30 -07:00
Rishi Gupta
847e13cd54
push bouncer: Fix instructions in register_server.py.
2018-05-17 04:50:33 -07:00
Steve Howell
aa7c031f36
Add tictactoe widget.
...
Thanks to @amanagr for a few refinements to my original
version, which was really raw. (It's still raw.)
2018-05-16 15:13:33 -07:00
Steve Howell
d0e70a9700
Add poll widget.
2018-05-16 15:13:33 -07:00
Steve Howell
02a0ad8e2e
node tests: Exempt widgets from needing template tests.
2018-05-16 15:13:33 -07:00
Steve Howell
b48f052b0c
Add basic widgets framework (JS side).
2018-05-16 15:13:33 -07:00
Steve Howell
8812dba57e
Add server-side widget support for poll/tictactoe.
2018-05-16 15:13:33 -07:00
Steve Howell
1f0ffdc415
Add widget.py to enable widgets on the server side.
...
The only slash command implemented in this initial
version is an extremely crippled version of a
"/stats" slash command that reports that you are
running 1 server.
2018-05-16 15:13:33 -07:00
Steve Howell
a84bd6da57
Add client code for handling submessages.
...
This commit lays the foundation to handle submessages for
plugin widgets. Right now it just logs events, but subsequent
commits will add widget functionality.
2018-05-16 15:13:33 -07:00
Steve Howell
de47eeb6f1
Add /submessage endpoint.
2018-05-16 15:13:33 -07:00
Steve Howell
33d753d174
Add setting for ALLOW_SUB_MESSAGES.
2018-05-16 15:13:33 -07:00
Steve Howell
4332fd64f7
Add submessages to message payloads.
2018-05-16 15:13:33 -07:00
Steve Howell
ff097623fa
Add SubMessage table.
2018-05-16 15:13:33 -07:00
Shubham Padia
00cd622604
compose: Fix extra space below compose error text.
...
Fixes #9433 .
Extra bottom margin was observed when using `compose_error` which
was caused by paragraphs in bootstrap having a bottom margin of 10px.
The paragraph tag has been replaced by a span tag.
2018-05-16 15:05:36 -07:00
Jason Michalski
3d8e424d84
puppet: Add cron package dependency
...
The Zulip puppet installs various cron jobs and will fail if cron is not
installed. This was found when installing Zulip in a minimal docker
image.
2018-05-16 15:04:31 -07:00
Tim Abbott
e63541e616
docs: Extract documentation for file upload backends.
...
This moves the documentation for this feature out of
prod_settings_template.py, so that we can edit it more easily.
We also add a bucket policy, which is part of what one would want to
use this in production.
This addresses much, but not all, of #9361 .
2018-05-16 15:00:54 -07:00
Tim Abbott
c9c17bb018
docs: Fix a couple broken links.
...
These were broken when we added Debian/Ubuntu support.
2018-05-16 15:00:54 -07:00