zulip/tools
m-e-l-u-h-a-n 2eeb82edba api: Add USER_DEACTIVATED error code.
In validate_account_and_subdomain we check if
user's account is not deactivated. In case of
failure of this check we raise our standard
JsonableError. While this works well in most
cases but it creates difficulties in handling
of deactivated accounts for non-browser clients.

So we register a new USER_DEACTIVATED error
code so that clients can distinguish if error
is because of deactivated account. Following
these changes `validate_account_and_subdomain`
raises UserDeactivatedError if user's account
is deactivated.

This error is also documented in
`/api/rest-error-handling`.

Testing: I have mostly relied on automated
backend tests to test this.

Partially addresses issue #17763.
2021-03-31 08:46:13 -07:00
..
ci ci: Remove 2>&1 redirection. 2021-03-29 14:52:06 -07:00
documentation_crawler documentation_crawler: Fix for Twisted 21.2.0 type hints. 2021-03-03 21:46:42 -08:00
droplets droplets: Remove obvious comments from create.py. 2021-03-23 14:05:34 -07:00
i18n i18n: Tweak makemessages for Django 3.1 parameters. 2021-03-22 19:37:20 -07:00
lib provision: Upgrade support for Fedora to version 33. 2021-03-22 19:34:18 -07:00
linter_lib production_suite: Add debian production install to production suite. 2021-03-28 16:04:03 -07:00
node_lib js: Elide .js and .ts extensions from imports and requires. 2020-09-01 16:43:02 -07:00
oneclickapps github: Create action for generating DigitalOcean one click app image. 2021-03-26 16:01:18 -07:00
setup install-shfmt: Upgrade shfmt from 3.2.2 to 3.2.4. 2021-03-26 08:51:16 -07:00
test-install shfmt: Reformat shell scripts with shfmt. 2020-10-15 15:16:00 -07:00
tests python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
wsl tools: Add script to start database services for WSL. 2020-04-11 12:05:33 -07:00
zulip-export python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
README.md cleanup: Delete trailing newlines. 2019-08-06 23:29:11 -07:00
__init__.py
build-docs docs: Replace Makefile based on output of newer sphinx-quickstart. 2019-12-02 18:39:33 -08:00
build-release-tarball docs: Fix more capitalization issues. 2020-10-23 11:46:55 -07:00
cache-zulip-git-version shfmt: Reformat shell scripts with shfmt. 2020-10-15 15:16:00 -07:00
check-capitalization python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
check-frontend-i18n python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
check-issue-labels python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
check-openapi eslint: Enable lines-around-directive. 2021-02-10 10:27:14 -08:00
check-provision tools: Rename force argument to skip-provision-check 2021-03-03 09:17:49 -08:00
check-schemas check_schema: Ignore operation field in schema validation for openapi. 2021-03-22 23:45:42 -07:00
check-templates templates: Delete unused markdown_help.html. 2021-03-11 21:45:48 -08:00
check-thirdparty python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
clean-branches shfmt: Reformat shell scripts with shfmt. 2020-10-15 15:16:00 -07:00
clean-repo
commit-message-lint docs: Use consistent spelling of CircleCI. 2020-04-28 11:26:58 -07:00
commit-msg shfmt: Reformat shell scripts with shfmt. 2020-10-15 15:16:00 -07:00
conf.ini-template
coveragerc parallel: Remove run_parallel. 2020-09-14 16:22:23 -07:00
create-test-api-docs python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
debug-require-webpack-plugin.ts eslint: Enable @typescript-eslint/consistent-type-imports. 2021-03-18 17:26:19 -07:00
debug-require.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
deploy-branch shfmt: Reformat shell scripts with shfmt. 2020-10-15 15:16:00 -07:00
diagnose python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
documentation.vnufilter requirements: Upgrade Python requirements. 2020-06-25 13:14:37 -07:00
duplicate_commits.json tools: Move duplicate_commits.json file to tools directory. 2020-04-07 16:06:29 -07:00
fetch-contributor-data python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
fetch-pull-request tools: Use require_clean_work_tree everywhere. 2020-04-06 17:52:10 -07:00
fetch-rebase-pull-request tools: Use require_clean_work_tree everywhere. 2020-04-06 17:52:10 -07:00
find-unused-css styles: Rename .scss files back to .css. 2020-09-15 16:33:28 -07:00
generate-integration-docs-screenshot python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
lint lint: Suppress Ruby warnings from puppet on Ubuntu 20.04. 2021-03-29 12:41:34 -07:00
message-screenshot.js tools: Fix screenshot capturing script to capture the correct area. 2021-03-29 14:43:10 -07:00
pre-commit tools: Rename force argument to skip-provision-check 2021-03-03 09:17:49 -08:00
pretty-print-html python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
provision ci: Remove unused circleci config file and update codebase. 2021-03-16 15:11:21 -07:00
push-to-pull-request push-to-pull-request: Wait for GitHub background update before merge. 2021-02-03 14:55:08 -08:00
rebuild-dev-database terminate-psql-sessions: Rely on the caller to set PGHOST, PGUSER. 2020-06-15 21:37:14 -07:00
rebuild-test-database shfmt: Reformat shell scripts with shfmt. 2020-10-15 15:16:00 -07:00
release-tarball-exclude.txt
renumber-migrations python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
reset-to-pull-request shfmt: Reformat shell scripts with shfmt. 2020-10-15 15:16:00 -07:00
review python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
run-dev.py tools: Rename force argument to skip-provision-check 2021-03-03 09:17:49 -08:00
run-mypy tools: Rename force argument to skip-provision-check 2021-03-03 09:17:49 -08:00
run-tsc tsconfig: Move to top level. 2019-11-04 18:12:11 -08:00
run-yarn-deduplicate yarn.lock: Share duplicate packages with yarn-deduplicate. 2019-09-02 19:30:09 -07:00
semgrep.yml migrations: Subscription.is_user_active denormalization - step one. 2021-03-30 09:19:03 -07:00
setup-git-repo shfmt: Reformat shell scripts with shfmt. 2020-10-15 15:16:00 -07:00
show-profile-results python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
stop-run-dev python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test-all tools: Remove -f short option for test-all. 2021-03-03 09:17:49 -08:00
test-api api: Add USER_DEACTIVATED error code. 2021-03-31 08:46:13 -07:00
test-backend ci: Use general terms for CircleCI. 2021-03-16 14:56:43 -07:00
test-documentation shfmt: Reformat shell scripts with shfmt. 2020-10-15 15:16:00 -07:00
test-help-documentation tools: Rename force argument to skip-provision-check 2021-03-03 09:17:49 -08:00
test-js-with-node message_flags: Add coverage for unstar_all_messages call. 2021-03-30 14:40:13 -07:00
test-js-with-puppeteer puppeteer_tests: Use POST for flush_caches call. 2021-03-25 12:58:36 -07:00
test-locked-requirements python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test-migrations shfmt: Reformat shell scripts with shfmt. 2020-10-15 15:16:00 -07:00
test-queue-worker-reload python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test-run-dev python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test-tools python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
update-locked-requirements requirements: Fix paths to 'non-"lock" files'; those are the .in files 2021-03-04 18:08:45 -08:00
update-prod-static update-prod-static: Remove unused --prev-deploy option. 2021-03-04 18:04:57 -08:00
update-zuliprc-api-field python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
webpack python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
webpack.assets.json landing-page: Rename to landing_page.css. 2020-10-19 11:50:39 -07:00
zanitizer zanitizer: Reformat with perltidy. 2021-03-24 12:12:04 -07:00
zanitizer_config.pm.sample zanitizer: Reformat with perltidy. 2021-03-24 12:12:04 -07:00

README.md

This directory contains scripts that are used in building, managing, testing, and other forms of work in a Zulip development environment. Note that tools that are also useful in production belong in scripts/ or should be Django management commands.

For more details, see https://zulip.readthedocs.io/en/latest/overview/directory-structure.html.