Tim Abbott
ef5b5bb45b
views/streams: Add missing annotations.
2016-08-04 15:57:03 -07:00
Tim Abbott
92062b9526
process_queue: Add missing annotation.
2016-08-04 15:57:02 -07:00
Tim Abbott
89267f926e
Annotate tools/run-dev.py.
2016-08-04 15:57:02 -07:00
Tim Abbott
cc11229377
test_auth_backends: Add missing type annotations.
2016-08-04 15:57:02 -07:00
Tim Abbott
0689485666
Add lint check for malformed type annotations missing :.
...
Also fix the 2 annotations that weren't being checked because of this.
2016-08-04 15:53:23 -07:00
Tim Abbott
af823f7a76
Annotate circleci integration.
2016-08-04 15:53:23 -07:00
Tim Abbott
0ca7af6137
Annotate zilencer tests.
2016-08-04 15:53:23 -07:00
Tim Abbott
1f2b3588d2
Annotate zilencer/models.py and fix str types in zilencer views.
2016-08-04 15:53:23 -07:00
Tim Abbott
55611cd21a
Annotate test_i18n.py.
2016-08-04 15:53:23 -07:00
Tim Abbott
3839a25c74
Annotate generate_secrets.py.
2016-08-04 15:53:23 -07:00
Tim Abbott
028efdcb78
integrations: Add detailed module docstrings.
2016-08-04 12:13:25 -07:00
Tim Abbott
4a7e6e852f
integration guide: Update documentation instructions.
2016-08-04 12:04:12 -07:00
Tim Abbott
6ab09064ac
integration guide: Increase visibility level of hello world guide.
2016-08-04 11:55:19 -07:00
Tim Abbott
613781f034
integration guide: Swap created files above updated files.
2016-08-04 11:53:05 -07:00
Tim Abbott
0691832817
docs: Document new WEBHOOK_INTEGRATIONS API.
2016-08-04 11:52:28 -07:00
Tim Abbott
5f37485e7f
docs: Improve integration guide link to writing documentation.
2016-08-04 11:49:17 -07:00
Tomasz Kolek
09d081d9bd
Replace hardcoded integration-lozenges to generating ones.
2016-08-04 11:41:18 -07:00
Tomasz Kolek
0e33b8bd4d
Add integrations library.
...
Define Integration and WebhookIntegration classes.
Change webhook part of integration's guide.
Replace hardcoded webhook urls to generating
based on WEBHOOKS list.
2016-08-04 11:39:20 -07:00
Taranjeet Singh
cbed266af7
gitignore: Update to remove all_messages_log.*.
2016-08-04 11:34:54 -07:00
Tim Abbott
604e2821f8
Remove tools/deprecated/backup.
2016-08-04 11:34:53 -07:00
Steve Howell
7cc1b1ebc4
Add test coverage for parsers in tools/lib.
...
Now, `tools/test-all` calls a new program called `tools/tests-tools`
that runs unit tests in `test_css_parser.py` and 'test_template_parser.py`.
This puts 100% line coverage on tools/lib/css_parser.py.
This puts about 50% line coverage on tools/lib/template_parser.py.
2016-08-04 10:47:09 -07:00
Steve Howell
5af47e0eef
Make fn param optional with template_parser.validate().
...
The caller can now pass in text directly. This is mostly for
testing, but it could be useful in other situations.
2016-08-04 10:47:09 -07:00
Steve Howell
1f8ba1d1b5
Make minor changes to css_parser.py
2016-08-04 10:47:09 -07:00
Steve Howell
f0c6af2285
Describe events/initial state in new-feature-tutorial.md.
2016-08-04 09:45:37 -07:00
Tim Abbott
03f6cb4b3e
testing: Remove now-unnecessary istanbul install docs.
2016-08-04 09:43:05 -07:00
Tim Abbott
09b677b605
test-js-with-node: Fix istanbul not being in PATH.
2016-08-04 09:29:30 -07:00
Tim Abbott
82b1218af9
test-js-with-node: Fix return status on failure.
2016-08-04 09:27:54 -07:00
Tim Abbott
1d6ebd2b3d
check_fts_update_log: Fix psycopg2 arguments.
...
* Fixes passing a string argument rather than an actual Python
argument.
* Switches to hardcoding the database to connect to rather than the
user, so this check can be run as an arbitrary user.
2016-08-03 14:58:46 -07:00
Tomasz Kolek
c96722b124
Add istanbul cover info to help in test-js-with-node.
2016-08-03 14:57:03 -07:00
Tomasz Kolek
87b554906d
Add clear success message after node tests run.
...
Fixes : #1489 .
2016-08-03 14:56:58 -07:00
Umair Khan
6c248a662d
prod_settings_template.py: Add GitHub team and org.
2016-08-03 12:01:15 -07:00
Umair Khan
b38ca0c690
Add tests for GitHub team and organization auth.
2016-08-03 12:01:15 -07:00
Umair Khan
faa3e9b724
Give logical defaults to social auth settings.
...
Both key and secret settings of team and organization default to
SOCIAL_AUTH_GITHUB_KEY and SOCIAL_AUTH_GITHUB_SECRET respectively.
SOCIAL_AUTH_GITHUB_TEAM_ID and SOCIAL_AUTH_GITHUB_ORG_NAME default
to `None`.
2016-08-03 12:01:15 -07:00
Umair Khan
9bb6d45c06
Add GitHub team and organisation authentication.
...
Fixes : #1473
2016-08-03 12:01:15 -07:00
Umair Khan
fc1d8e217f
Don't pass `return_data` to mock functions.
...
GitHubAuthBackend already passes the `return_data` keyword argument
to the `do_auth` function.
2016-08-03 12:01:15 -07:00
Steve Howell
0f8d014096
Add tools/html-grep.
...
This tools greps for HTML nodes that have relevants words
pertaining to classes, ids, or tags in themselves or their
parents.
2016-08-03 11:29:37 -07:00
Tim Abbott
5f275c9868
Re-enable mobile app advertisements in /apps.html.
2016-08-02 16:45:11 -07:00
Sumana Harihareswara
99da259130
Add new Electron desktop app to /apps/ page.
...
The Electron-based desktop app should work with all
realms, so it goes outside the voyager-related
conditional block.
2016-08-02 16:45:11 -07:00
Sumana Harihareswara
2d43431ad9
Advertise Electron app in documentation.
2016-08-02 16:41:24 -07:00
Sumana Harihareswara
d97702ead6
De-duplicate testing docs.
...
Addresses comment in #1218 .
2016-08-02 19:26:59 -04:00
Steve Howell
3b5c187f55
Add tools/check-css and tools/lib/css_parser.py.
...
`tools/lint-all` now calls the new `tools/check-css`
The css_parser library parsers CSS into a data structure
that remembers line numbers and columns of semantically
meaningful tokens and adjoining white space/tokens. It
is intended to be used for various linting tasks.
The file `tools/check-css` runs a few files through the
parser and makes sure they round trip. This has some value
right away, as files that fail to parse will cause an
exception to be thrown and thus alert developers to syntax
errors. We expect to grow this into more advanced linting
tasks eventually.
2016-08-02 16:22:46 -07:00
Taranjeet Singh
b82836a901
tools/setup/emoji_dump/emoji_dump.py: Move bitmaps & *.ttx to var/.
...
Also update .gitignore to remove the old .gitignore markings for
these files' old locations.
2016-08-02 15:18:36 -07:00
Taranjeet Singh
4c592bd8d4
.gitignore: Remove event_queues.{json,pickle}.
...
This files are now written under the var/ tree.
2016-08-02 15:15:14 -07:00
Christie Koehler
c95e6d4629
Recommend vagrant provision instead of vagrant reload.
...
Fixes #1520 .
2016-08-02 15:10:59 -07:00
Tim Abbott
1c65508624
puppet: Add postgres user to Zulip group.
2016-08-02 14:59:25 -07:00
Tim Abbott
04fc3ff1e1
pg_backup_and_purge: Don't try to use a virtualenv.
...
This makes this actually work if the postgres server is different from
the Zulip app frontend.
2016-08-02 14:59:25 -07:00
Tim Abbott
4bdd9d3769
check_postgres_backup: Don't try to use a virtualenv.
...
The dependencies for this tool are installed using apt.
2016-08-02 14:59:25 -07:00
Tim Abbott
a5115d54ee
env-wal-e: Rename s3_backup_bucket to s3_backups_bucket.
...
This makes it consistent with the other variables in this file.
2016-08-02 14:59:15 -07:00
Tim Abbott
ff80daef16
puppet: Move zulipsecret into its own file.
...
Apparently puppet doesn't support declaring multiple functions in the
same file.
2016-08-02 14:55:51 -07:00
Tim Abbott
b82230559c
docs: Document new deploy-zulip-from-git deployment process.
2016-08-02 14:31:07 -07:00