Steve Howell
95edf68fd0
Refactor stream_matches_query to early-exit.
...
For the non-subscribed case, checking flags is a quick
way to reject streams vs. the more expensive indexOf
checks.
2018-07-30 11:25:32 -07:00
Steve Howell
95d136ca5e
Extract search_util.js module.
...
We probably should have done this a while ago, even
though these functions are pretty tiny. The goal here
is to make it easier to have more consistent search
semantics.
Our first use case is subs.js. In this case we
are able to decouple a bit of generic string
matching from the subs-specific code.
2018-07-30 11:25:32 -07:00
Steve Howell
064d0f3c89
Extract stream_data.sort_for_stream_settings().
...
We move some data code from subs.js to stream_data.js.
It's not clear we have been using the optimal sort for
dealing with locales, but this change preserves the
current behavior. The only subtle change here is that
we look up subs using a Dict now instead of a plain
JS object.
2018-07-30 11:25:32 -07:00
Steve Howell
5641c77c94
refactor: Introduce other_stream_ids in filter_table().
...
We now build up three buckets of stream ids for slightly
more consistent code that will help in future refactorings.
2018-07-30 11:25:32 -07:00
Vishnu Ks
32438cde9f
version: Bump PROVISION_VERSION for py packages upgrade.
2018-07-30 10:09:19 -07:00
Vishnu Ks
6f17db5731
requirements: Upgrade pytz to 2018.5.
...
https://github.com/stub42/pytz/blob/master/tz/NEWS
2018-07-30 10:09:19 -07:00
Vishnu Ks
2b57e1f639
requirements: Upgrade wheel to 0.31.1.
2018-07-30 10:09:18 -07:00
Vishnu Ks
9e39e136b9
requirements: Upgrade twilio to 6.15.2.
...
Lot of bug fixes and changes. But nothing looks like
it will bfeak Zulip.
2018-07-30 10:06:23 -07:00
Vishnu Ks
de77728c86
requirements: Upgrade SQLAlchemy to 1.2.10.
...
Bunch of bug fixes.
http://docs.sqlalchemy.org/en/latest/changelog/
changelog_12.html#change-1.2.10
2018-07-30 10:06:23 -07:00
Vishnu Ks
8b857db5ae
requirements: Upgrade sphinx-rtd-theme to 0.4.1.
2018-07-30 10:06:23 -07:00
Vishnu Ks
ec5fad4cac
requirements: Upgrade Sphinx to 1.7.6.
2018-07-30 10:06:23 -07:00
Vishnu Ks
46338f5418
requirements: Upgrade setuptools to 40.0.0.
2018-07-30 10:06:23 -07:00
Vishnu Ks
95c35e70d5
requirements: Upgrade Scrapy to 1.5.1.
2018-07-30 10:06:23 -07:00
Vishnu Ks
ebad4d3aaa
requirements: Upgrade python-twitter to 3.4.2.
...
Minor changes and cleanups.
2018-07-30 10:06:23 -07:00
Vishnu Ks
060ed8cb92
requirements: Upgrade pyasn1-modules to 0.2.2.
...
rfc2986 module added and some documentation changes.
2018-07-30 10:06:23 -07:00
Vishnu Ks
dedb8735ec
requirements: Upgrade pyasn1 to 0.4.4.
...
Two minor bug fixes.
2018-07-30 10:06:23 -07:00
Vishnu Ks
77f88ca0d7
requirements: Upgrade py3dns to 3.2.0.
...
A bunch of minor bug fixes.
2018-07-30 10:06:23 -07:00
Vishnu Ks
d58cb80f9d
requirements: Upgrade psycopg2 to 2.7.5.
...
Bunch of bug fixes.
* Allow non-ascii chars in namedtuple fields (regression
introduced fixing ticket #211 ).
* Fixed adaptation of arrays of arrays of nulls (ticket #325 ).
* Fixed building on Solaris 11 and derivatives such as
SmartOS and illumos (ticket #677 ).
* Maybe fixed building on MSYS2 (as reported in ticket #658 ).
* Allow string subclasses in connection and other places (ticket #679 ).
* Don’t raise an exception closing an unused named cursor (ticket #716 ).
* Wheel package compiled against PostgreSQL 10.4 libpq and OpenSSL 1.0.2o.
2018-07-30 10:06:23 -07:00
Vishnu Ks
d144eac101
requirements: Upgrade pip to 18.0.
2018-07-30 10:06:23 -07:00
Vishnu Ks
ba8dcbff0d
requirements: Upgrade ndg-httpsclient to 0.5.1.
...
Some minor changes.
* Clean up handling for description file - pull in content
from this file into setup()
* Allows the nightly build to fail
* Add Trove version classifiers to make it explicit what
is supported
* Add python_requires to help pip
* Drop support for EOL Python 2.6 and 3.3
2018-07-30 10:06:23 -07:00
Vishnu Ks
e466400799
requirements: Upgrade lxml to 4.2.3.
...
Only one bug fix -> Fix sporadic crash during
GC when parse-time schema validation is used.
2018-07-30 10:06:23 -07:00
Vishnu Ks
be16e1e509
requirements: Upgrade ipython to 6.5.0.
...
No major changes. Miscellaneous bug fixes
and compatibility with Python 3.7.
2018-07-30 10:06:23 -07:00
Vishnu Ks
c0bbea377d
requirements: Upgrade httpretty to 0.9.5.
2018-07-30 10:06:23 -07:00
Vishnu Ks
a8bd83cbd6
requirements: Upgrade alabaster to 0.7.11.
...
A bug fix and some new features like showing next
and previous links at the bottom and top of the
page content.
2018-07-30 10:06:23 -07:00
Vishnu Ks
0a3eba2c0a
requirements: Upgrade google-api-python-client to 1.7.4.
...
Mostly cleanups. Also updated to catch ServerNotFoundError
and retry the request.
2018-07-30 10:06:23 -07:00
Vishnu Ks
fbbd43719b
requirements: Upgrade django to 1.11.14.
2018-07-30 10:06:23 -07:00
Vishnu Ks
9deae31b09
requirements: Upgrade disposable-email-domains to 0.0.30.
2018-07-30 10:06:23 -07:00
Vishnu Ks
96b9007aa8
requirements: Upgrade cryptography to 2.3.
...
Has a security fix involving finalize_with_tag
function.
2018-07-30 10:06:23 -07:00
Vishnu Ks
7e93df2262
requirements: Upgrade boto to 2.49.0.
...
Updated the CA Bundle as well as some bucket encryption fixes.
2018-07-30 10:06:23 -07:00
Rohitt Vashishtha
d83ef30904
notification-bot: @-mention the user subscribing you to a stream.
2018-07-30 09:50:48 -07:00
Rishi Gupta
71fb8d6195
user docs: Rename require-topics.md.
2018-07-29 23:55:33 -04:00
Lyla Fischer
65516a2908
user docs: Trim require-topics.
2018-07-29 23:50:52 -04:00
Lyla Fischer
570dc8b1db
user docs: Update name-and-email-changes.
2018-07-29 23:46:58 -04:00
Lyla Fischer
b75bdbc501
user docs: Update tweak allow-image-link-previews.
2018-07-29 23:02:16 -04:00
Lyla Fischer
b73345b08b
user docs: Update only-allow-admins-to-add-emoji.
2018-07-29 22:53:22 -04:00
Lyla Fischer
de8014a031
user docs: Update restrict-create-new-streams.
2018-07-29 22:46:48 -04:00
Lyla Fischer
ba791b7071
user docs: Remove add-a-link-preview since it is a server admin doc.
2018-07-29 20:32:46 -04:00
Lyla Fischer
9f80322a35
user docs: Update custom-linkification doc.
2018-07-29 20:32:46 -04:00
Lyla Fischer
225aaba2fb
user docs: Update configure-authentication-methods.
2018-07-29 20:32:46 -04:00
Lyla Fischer
c6938a42d6
user docs: Update add-custom-emoji.
2018-07-29 20:32:46 -04:00
Tim Abbott
6e61152a53
features: Fix a typo in "fully internationalized".
2018-07-28 16:33:28 -07:00
Rhea Parekh
104b2342d9
docs: Update import-from-gitter doc.
...
The changes here are primarily to better document how to get a Gitter
API token.
2018-07-28 15:43:12 -07:00
Rhea Parekh
ddf011c915
requirements: Upgrade mypy to 0.620.
...
Fixes #9975 .
2018-07-28 15:35:32 -07:00
Rhea Parekh
6e7905651f
mypy: Fix type errors relate to 'mock'.
...
1. The type of a mock object should be 'Any'.
2. 'mock' is being imported in the wrong manner.
2018-07-28 15:34:54 -07:00
Shubham Dhama
499a70b01e
notifications: Fix leaking of private stream msgs sent before subscribing.
...
Fixes : #9834 .
2018-07-28 15:13:08 -07:00
Shubham Dhama
c5d8fdf68c
message: Add function to check message access in bulk.
...
This effectively just calls access_message in a loop.
2018-07-28 15:12:55 -07:00
Tim Abbott
6bbffe0e2e
notifications: Extract zerver/lib/url_encoding.py.
...
Extracting this helper library will help us avoid an import loop
between notifications.py and message.py (with bugdown in between).
But in addition to that, it's a more natural model, since some of the
uses for these functions weren't part of the notifications code
anyway.
2018-07-28 15:12:55 -07:00
Shubham Dhama
bd5e39cd9e
test_message: Rename StarTests to MessageAccessTests.
2018-07-28 14:58:36 -07:00
Shubham Dhama
605a6ed3d8
message: Extract function for message access by a user.
2018-07-28 14:58:36 -07:00
Shubham Dhama
9cf67a5e71
models: Add function to get UserMessage from message id.
2018-07-28 14:58:36 -07:00