zulip/tools
Steve Howell 4c5eb3d06e Fix transaction behavior for update_subscriptions_backend().
This commit extracts compose_views() from update_subscriptions_backend(),
and it implements the correct behavior for forcing transactions to roll
back, which is to raise an exception.

There were really three steps in this commit:

- Extract buggy code to compose_views().
- Add tests on compose_views().
- Fix bugs exposed by the new tests by converting errors to exceptions.
2016-09-12 22:03:39 -07:00
..
deprecated Remove tools/deprecated/review and associated files. 2016-09-10 10:53:02 -07:00
jslint Move respond_to_message to compose.js. 2016-06-29 13:04:02 -07:00
lib Finish annotating template/css parsers and tests. 2016-09-12 09:03:50 -07:00
print-all Remove unused puppet-common third-party module code. 2016-07-31 19:24:42 -07:00
setup Annotate tools/setup/emoji_dump/emoji_dump.py. 2016-09-12 08:10:49 -07:00
tests Finish annotating template/css parsers and tests. 2016-09-12 09:03:50 -07:00
travis mypy: Require new Python functions to have type annotations. 2016-09-12 14:56:08 -07:00
zulip-export tools/zulip-export/zulip-export: Fix how files are opened. 2016-07-24 22:32:08 +05:30
__init__.py Add __init__.py to tools/ and tools/setup/. 2016-07-20 18:20:37 -07:00
analyze-url-coverage Add tools/analyze-url-coverage 2016-07-29 21:23:33 -07:00
build-api-tarball api: Include get_subscribers endpoint in public release. 2016-01-23 11:38:42 -08:00
build-deb Improve shell quoting hygiene 2015-09-25 23:25:08 -04:00
build-release-tarball update-prod-static: Fix buggy color code usage. 2016-08-22 16:38:23 -07:00
check-css Add tools/check-css and tools/lib/css_parser.py. 2016-08-02 16:22:46 -07:00
check-py3 check-py3: Display git status --porcelain output. 2016-05-12 16:30:58 -07:00
check-templates Switch tools/check-templates from optparse to argparse. 2016-09-12 12:00:16 -07:00
clean-branches Add support for running OpenBSD in development environment. 2016-01-21 22:33:55 -08:00
clean-repo Remove __pycache__ in tools/clean-repo. 2016-05-24 13:43:49 -07:00
clean-venv-cache clean-venv-cache: Fix python 3 compatibility. 2016-06-27 20:39:22 -07:00
compile-handlebars-templates Annotate tools/compile-handlebars-templates. 2016-07-24 21:07:06 +05:30
deploy-branch Improve shell quoting hygiene 2015-09-25 23:25:08 -04:00
deployment-lock-ctl Improve shell quoting hygiene 2015-09-25 23:25:08 -04:00
django-template-graph Add support for running OpenBSD in development environment. 2016-01-21 22:33:55 -08:00
do-destroy-rebuild-database Add support for running OpenBSD in development environment. 2016-01-21 22:33:55 -08:00
do-destroy-rebuild-test-database Move tools/generate-fixtures to tools/setup/. 2016-05-26 17:54:32 +05:00
fetch-rebase-pull-request tools: Use 'upstream' as expected name for main zulip repo. 2016-08-24 14:23:37 -07:00
find-add-class Switch tools/find-add-class from optparse to argparse. 2016-09-12 12:00:16 -07:00
find-unused-css Add hackish tool for finding unused CSS. 2016-04-01 09:34:46 -07:00
get-handlebar-vars Annotate tools/get-handlebar-vars. 2016-07-24 22:12:32 +05:30
html-grep Add tools/html-grep. 2016-08-03 11:29:37 -07:00
install-mypy Move mypy requirements to requirements/ directory. 2016-06-18 16:41:40 -07:00
lint-all Fix transaction behavior for update_subscriptions_backend(). 2016-09-12 22:03:39 -07:00
lister.py Add option to only show extensionless files in lister. 2016-07-21 16:59:52 +05:30
minify-js Switch tools/minify-js from optparse to argparse. 2016-09-12 12:00:16 -07:00
munge_postgres_logs.pl Make munge_postgres_logs.pl executable 2013-01-29 12:16:32 -05:00
node Add support for running OpenBSD in development environment. 2016-01-21 22:33:55 -08:00
post-receive zulip_tools.py: Move zulip_tools.py in scripts/lib. 2016-08-15 16:44:50 -07:00
pre-commit tools: Update pre-commit hook so it works with vagrant dev setup. 2016-08-25 15:19:40 -07:00
provision.py Update provision.py and Vagrantfile to support VMWare. 2016-09-07 19:30:48 -07:00
reset-to-pull-request tools: Use 'upstream' as expected name for main zulip repo. 2016-08-24 14:23:37 -07:00
run-dev-queue-processors Change shebangs from python2.7 to python. 2016-05-29 05:03:08 -07:00
run-dev.py run-dev: Automatically fixup missing handlebars binary. 2016-09-07 19:35:41 -07:00
run-graphiti [manual] Rename /home/humbug to /home/zulip. 2013-10-08 08:57:29 -04:00
run-mypy mypy: Require new Python functions to have type annotations. 2016-09-12 14:56:08 -07:00
send_github_payloads.py Change shebangs from python2.7 to python. 2016-05-29 05:03:08 -07:00
setup-git-repo Remove git commit domain restrictions. 2015-08-19 21:40:04 -07:00
show-profile-results.py Change shebangs from python2.7 to python. 2016-05-29 05:03:08 -07:00
start-dockers Move docker development environment scripts to tools/. 2016-06-27 13:38:06 -07:00
test-all Add test coverage for parsers in tools/lib. 2016-08-04 10:47:09 -07:00
test-all-docker Move docker development environment scripts to tools/. 2016-06-27 13:38:06 -07:00
test-backend Add --url-coverage option to ./tools/test-backend. 2016-07-29 21:23:33 -07:00
test-js-with-casper casper: Rename frontend_tests/run to clarify it uses casper. 2015-10-28 10:11:47 -07:00
test-js-with-node provision.py: Create dir var/node-coverage for js test coverage. 2016-08-25 19:58:30 -07:00
test-management Add new test for management commands running with --help. 2015-11-11 21:34:39 -08:00
test-migrations test-migrations: Fix missing exit status on error. 2016-06-15 09:26:04 -07:00
test-queue-worker-reload Fix and re-enable test-queue-worker-reload. 2016-08-10 16:17:23 -07:00
test-run-dev check_send_receive_time: Cleanup unnecessary print statement. 2016-08-11 14:48:21 -07:00
test-tools Switch tools/test-tools from optparse to argparse. 2016-09-12 12:00:16 -07:00
test_user_agent_parsing.py Change shebangs from python2.7 to python. 2016-05-29 05:03:08 -07:00
update-deployment Move update-deployment to scripts/deploy-zulip-from-git. 2016-08-02 14:31:07 -07:00
update-prod-static Switch tools/update-prod-static from optparse to argparse. 2016-09-12 12:00:16 -07:00
user_agents_unique Kill Embed.ly integration. 2015-08-20 19:46:48 -07:00
webpack Switch tools/webpack from optparse to argparse. 2016-09-12 12:00:16 -07:00
webpack.config.js run-dev: Hardcode 127.0.0.1 rather than localhost. 2016-07-27 11:39:12 -07:00
webpack.production.config.js Move webpack configuration to tools/. 2016-04-06 08:09:55 -07:00
zanitizer zanitizer: Remove -- argument that confuses some Git verisons 2015-09-25 00:46:00 -07:00
zanitizer_config.pm.sample zanitizer: Support renaming files 2015-09-24 18:10:02 -07:00