zulip/zerver/lib
Eeshan Garg 057ff9c91e models: Add Stream.history_public_to_subscribers.
This commit adds a new field history_public_to_subscribers to the
Stream model, which serves a similar function to the old
settings.PRIVATE_STREAM_HISTORY_FOR_SUBSCRIBERS; we still use that
setting as the default value for new streams to avoid breaking
backwards-compatibility for those users before we are ready with an
actual UI for users to choose directly.

This also comes with a migration to set the value of the new field for
existing streams with an algorithm matching that used at runtime.

With significant changes by Tim Abbott.

This is an initial part of our efforts on #9232.
2018-04-28 22:54:04 -07:00
..
bugdown mypy: Fix errors in new bugdown module. 2018-04-25 15:56:46 -07:00
url_preview zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
webhooks webhooks: Stop raising an exception if stream does not exist. 2018-03-24 13:50:17 -07:00
__init__.py
actions.py models: Add Stream.history_public_to_subscribers. 2018-04-28 22:54:04 -07:00
addressee.py refactor: Move topic name checks to Addressee class. 2018-01-25 06:21:01 -05:00
alert_words.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:45:52 -08:00
api_test_helpers.py pypi packaging: Upgrade to release 0.4.6. 2018-04-27 14:50:25 -07:00
attachments.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
avatar.py mypy: Use Python 3 type syntax in zerver/lib/avatar.py. 2017-12-18 11:32:52 -05:00
avatar_hash.py zerver/lib: Use Python 3 syntax for typing for several files. 2017-11-28 17:02:24 -08:00
bot_config.py get_owned_bot_dicts: Optimize admin's bot dicts loading from database. 2018-04-03 09:10:32 -07:00
bot_lib.py embedded bots: Log warning when bot quit()s. 2018-02-13 14:56:37 -08:00
bot_storage.py zerver/lib: Use python 3 syntax for typing. 2017-11-28 17:15:14 -08:00
bulk_create.py bulk_create: Remove some long-dead code. 2018-04-16 11:41:42 -07:00
cache.py cache: Remove a now-unnecessary TODO. 2018-03-16 11:32:14 -07:00
cache_helpers.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
camo.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:45:52 -08:00
ccache.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:45:52 -08:00
context_managers.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:45:52 -08:00
create_user.py org settings: Add realm level default time format setting. 2018-03-31 16:23:26 -07:00
db.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:45:52 -08:00
debug.py mypy: Migrate lib/debug.py to python3.5 annotations. 2018-03-12 11:23:30 -07:00
digest.py models: Introduce can_access_public_streams field. 2018-04-20 12:06:57 -07:00
domains.py validate_domain: Add verification of domain length. 2018-04-23 09:29:03 -07:00
email_mirror.py email_mirror: Fix handling of empty topic. 2018-04-26 10:21:29 -07:00
emoji.py markdown: Update bugdown emoticon translation logic to match frontend. 2018-03-29 15:56:24 -07:00
error_notify.py errors: Compute deployment metadata on the right deployment. 2017-12-22 11:52:13 -05:00
events.py settings: Remove obsolete default_desktop_notifications setting. 2018-04-28 13:46:07 -07:00
exceptions.py webhooks: Stop raising an exception if stream does not exist. 2018-03-24 13:50:17 -07:00
export.py import: Split out import.py into its own module. 2018-04-23 15:21:12 -07:00
feedback.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:45:52 -08:00
fix_unreads.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:45:52 -08:00
generate_test_data.py tests: Move zerver/fixtures to zerver/tests/fixtures for clarity. 2018-04-19 21:50:17 -07:00
hotspots.py hotspots: Tag strings for translation. 2018-04-18 09:33:09 -07:00
html_diff.py mypy: Remove type: ignores that are unnecessary with new mypy. 2017-11-25 10:06:28 -08:00
i18n.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
import_realm.py import: Split out import.py into its own module. 2018-04-23 15:21:12 -07:00
initial_password.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
integrations.py webhooks: Move github_webhook/ to github/. 2018-04-19 11:00:55 -07:00
json_encoder_for_html.py mypy: Fix annotations for json_encoder_for_html. 2017-11-22 01:32:46 -08:00
logging_util.py settings: Fix double negative in LOGGING_NOT_DISABLED. 2018-03-21 18:03:05 -07:00
management.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
mdiff.py mypy: Amend diff_strings to return str or raise DiffException. 2018-02-13 11:40:51 -08:00
mention.py markdown: Add @stream as an alias for @all. 2018-04-09 16:35:14 -07:00
message.py messages: Modify access_message for is_history_public_to_subscribers. 2018-04-04 16:18:47 -07:00
migrate.py migrate: Remove dead migration code. 2018-03-15 17:56:32 -07:00
mobile_auth_otp.py zerver/lib/mobile_auth_otp: Sweep force_str. 2017-12-26 09:09:31 -05:00
name_restrictions.py email: Use PyPi module for disposable email providers list. 2018-03-11 21:48:56 -07:00
narrow.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
notifications.py emails: Update followup_day1. 2018-04-25 08:52:29 -07:00
onboarding.py bots: Clean up create_realm_internal_bots. 2018-02-06 18:59:57 -08:00
outgoing_webhook.py Add stream ids to urls for stream-related narrows. 2018-02-19 09:03:11 -08:00
parallel.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
profile.py mypy: Improve typing to profile.py & remove FuncT from decorator.py. 2017-10-29 17:10:13 -07:00
push_notifications.py push_notifications: Handle errors with token reuse. 2018-03-23 11:02:55 -07:00
queue.py mypy: Remove some now-unnecessary type: ignores. 2018-03-28 10:39:05 -07:00
rate_limiter.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
realm_icon.py zerver/lib: Remove u prefix from strings. 2018-02-05 12:12:58 -08:00
redis_utils.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
request.py REQ: Add type parameter to act as hint for typing. 2018-02-13 11:40:52 -08:00
request.pyi mypy: Add explicit Optional for default=None parameters in various files. 2018-03-28 12:31:51 -07:00
response.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
rest.py uploads: Add new way of querying for mobile uploads endpoint. 2018-04-13 17:51:45 -07:00
retention.py zerver/lib: Use python 3 syntax for typing. 2017-11-28 17:15:14 -08:00
send_email.py settings: Added setting to turn on and off realm name in email subject. 2018-02-05 18:01:54 -08:00
sessions.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
slack_data_to_zulip_data.py settings: Remove obsolete default_desktop_notifications setting. 2018-04-28 13:46:07 -07:00
slack_message_conversion.py Slack importer: Map Slack channel mentions to Zulip stream mentions. 2018-04-09 10:47:39 -07:00
soft_deactivation.py soft_deactivation: Change `<` to `<=` in add_missing_messages. 2018-04-16 11:28:08 -07:00
sqlalchemy_utils.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:45:52 -08:00
statistics.py zerver/lib: Use Python 3 syntax for typing for several files. 2017-11-28 17:02:24 -08:00
str_utils.py zerver/lib: Remove u prefix from strings. 2018-02-05 12:12:58 -08:00
stream_recipient.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
stream_subscription.py Mypy: Use models.py QuerySet annotation approach in stream_subscription.py. 2018-03-15 12:54:43 -07:00
stream_topic.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
streams.py messages: Add a server-level setting to control private stream history. 2018-04-04 16:18:46 -07:00
subdomains.py Convert EmailAuthBackend and LDAPAuthBackend to accept a realm. 2017-11-21 18:23:50 -08:00
test_classes.py models: Add Stream.history_public_to_subscribers. 2018-04-28 22:54:04 -07:00
test_data.source.txt test_data.source.txt: Replace postmodernism generator text with a play. 2017-08-23 13:00:39 -07:00
test_fixtures.py Revert "test_fixtures: Add settings files to things that require reprovision." 2018-04-24 11:01:20 -07:00
test_helpers.py mypy: Final small migrations to python3.5 annotations in many files. 2018-03-12 11:23:30 -07:00
test_runner.py mypy: Use Python 3 syntax for typing in test_runner.py 2018-01-23 08:49:42 -08:00
tex.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
timeout.py mypy: Add assertion in timeout.py. 2018-04-25 08:58:55 -07:00
timestamp.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
timezone.py schedulemessages: Add handle_deferred_message() to handle requests. 2018-01-19 11:33:11 -05:00
topic_mutes.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
type_debug.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
types.py profile: Add choice field. 2018-04-26 00:35:51 -07:00
unminify.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
upload.py upload: Rename upload_message_image to upload_message_file. 2018-03-30 13:38:31 -07:00
user_agent.py tests: Move zerver/fixtures to zerver/tests/fixtures for clarity. 2018-04-19 21:50:17 -07:00
user_groups.py user-groups: Add backend enforcing for new modification settings. 2018-03-23 14:44:47 -07:00
users.py users: Improve testing for user_ids_to_users. 2018-04-04 16:31:30 -07:00
utils.py mypy: Add explicit Optional for default=None parameters in various files. 2018-03-28 12:31:51 -07:00
validator.py profile: Add choice field. 2018-04-26 00:35:51 -07:00