Aman Agrawal
ec23f5e77b
hello: Add interactive block showing basic usage.
...
Co-Authored-By: Vlad Korobov <terpimost@gmail.com>
2024-10-10 11:42:29 -07:00
Anders Kaseorg
d5bc3421fc
install-tusd: Be careful to match the complete version line.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-09-26 09:26:34 -07:00
Anders Kaseorg
5a978edf40
install-aws-server: Fix SC2206 violation.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-09-24 23:05:39 -07:00
Anders Kaseorg
0cc6421118
install-transifex-cli: Upgrade Transifex CLI from 1.6.16 to 1.6.17.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-09-24 20:51:24 -07:00
Vlad Korobov
edef41ca32
portico: hello images are always x2 size
2024-09-24 14:19:48 -07:00
Alex Vandiver
818c30372f
upload: Use tusd for resumable, larger uploads.
...
Currently, it handles two hook types: 'pre-create' (to verify that the
user is authenticated and the file size is within the limit) and
'pre-finish' (which creates an attachment row).
No secret is shared between Django and tusd for authentication of the
hooks endpoints, because none is necessary -- tusd forwards the
end-user's credentials, and the hook checks them like it would any
end-user request. An end-user gaining access to the endpoint would be
able to do no more harm than via tusd or the normal file upload API.
Regardless, the previous commit has restricted access to the endpoint
at the nginx layer.
Co-authored-by: Brijmohan Siyag <brijsiyag@gmail.com>
2024-09-19 11:37:29 -07:00
Alex Vandiver
38053e9c7c
emoji: Convert spritesheets to webp.
...
This provides significant size savings:
| Emoji set | png size | webp size | webp/png percent |
| ----------- | -------- | --------- | ---------------- |
| google-blob | 1968954 | 1373350 | 69.75% |
| twitter | 2972820 | 2149672 | 72.31% |
| google | 3455270 | 2327834 | 67.37% |
Since these are the largest assets that we ship to clients, it is
worth shaving off every byte we can.
2024-09-11 09:03:47 -07:00
Alex Vandiver
a2517e1115
build-emoji: Reorganize /srv/zulip-emoji-cache.
...
This more explicitly splits out the files bound for web/generated/ from
those bound for static/generated/.
2024-09-11 09:03:47 -07:00
Anders Kaseorg
ed63a40184
install-transifex-cli: Upgrade Transifex CLI from 1.6.14 to 1.6.16.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-08-26 14:17:05 -07:00
Anders Kaseorg
b0170fc306
install-shfmt: Upgrade shfmt from 3.8.0 to 3.9.0.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-08-26 14:17:05 -07:00
Alex Vandiver
64516ab9f4
install-aws-server: Output tsh ssh command, not ssh.
2024-08-20 10:04:40 -07:00
Alex Vandiver
a5a898ba21
install-aws-server: Switch to 24.04.
2024-08-20 10:04:37 -07:00
Alex Vandiver
3adedc9545
install-aws-server: Set the name of the root EBS volume.
2024-08-20 10:03:59 -07:00
Tim Abbott
966fe68591
emoji: Fix canonical name for folded_hands emoji.
...
The more neutral folded_hands is the official name and should make
folks more confortable with using this for thank_you, which is
certainly a more common use in work contexts than pray.
2024-07-24 22:44:33 -07:00
Anders Kaseorg
97753fe3b0
emoji_names: Rebuild with CLDR 45, emoji-data 15.1.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-07-17 22:49:52 -07:00
Anders Kaseorg
e0208784ea
docs: Update Black and isort references to Ruff.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-07-17 18:33:21 -07:00
Anders Kaseorg
48202389b8
ruff: Bump target-version from py38 to py310.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-07-13 22:28:22 -07:00
Anders Kaseorg
0fa5e7f629
ruff: Fix UP035 Import from `collections.abc`, `typing` instead.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-07-13 22:28:22 -07:00
Anders Kaseorg
531b34cb4c
ruff: Fix UP007 Use `X | Y` for type annotations.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-07-13 22:28:22 -07:00
Anders Kaseorg
e08a24e47f
ruff: Fix UP006 Use `list` instead of `List` for type annotation.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-07-13 22:28:22 -07:00
Anders Kaseorg
63c65e6ecd
install-transifex-cli: Upgrade Transifex CLI from 1.6.13 to 1.6.14.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-06-26 21:34:18 -07:00
Alex Vandiver
92de254764
kandra: Default to installing "production", not "main".
2024-06-24 11:22:17 -07:00
Alex Vandiver
5ff4d9f88a
integrations: Generate avatars using pyvips.
2024-06-20 23:06:08 -04:00
Alex Vandiver
215c22ec3d
generate_landing_page_images: Rewrite in pyvips.
2024-06-20 23:06:08 -04:00
Alex Vandiver
0153d6dbcd
thumbnailing: Move resizing functions into zerver.lib.thumbnail.
2024-06-20 23:06:08 -04:00
Alex Vandiver
1455a68aef
postgresql-init-dev-db: Add missing quotes.
...
These are necessary if the path contains spaces.
2024-06-16 11:36:58 -07:00
Sayam Samal
a7772f86a2
docs: Update CZO links from stream to channel in docs and comments.
...
Updates all the https://chat.zulip.org/#narrow/stream/ links in the
docs and comments to use the new /channel/ path. All these links are
for documentation/reference purposes only and thus, can be bulk-updated.
This commit is a part of the effort to rename stream to channel.
2024-06-11 10:44:31 -07:00
Aman Agrawal
bb6e6ecaa5
hello: Redesign landing page.
...
Co-authored-by: Vlad Korobov <terpimost@gmail.com>
Co-authored-by: Alya Abbott <alya@zulip.com>
2024-06-02 21:45:37 -07:00
Anders Kaseorg
05513c90f0
install-transifex-cli: Upgrade Transifex CLI from 1.6.11 to 1.6.13.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-26 19:27:51 -07:00
Anders Kaseorg
96fbe060a6
python: Mark regexes as raw strings.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-04-26 12:30:31 -07:00
Anders Kaseorg
5d6927e3f4
install-transifex-cli: Upgrade Transifex CLI from 1.6.10 to 1.6.11.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-04-25 16:46:03 -07:00
Alex Vandiver
d893a2a29e
kandra: Install the right PostgreSQL.
2024-04-17 17:31:49 -07:00
Evy Kassirer
1fe66a238f
build_emoji: Make sure emoji names are supported.
...
Fixes #19398 . (All the other parts were completed a while ago).
2024-04-11 15:36:20 -07:00
Alex Vandiver
7187146422
install: Move PUPPET_CLASSES env var to --puppet-classes argument.
...
`--no-init-db` is used to silence the need for `--hostname` and
`--email` arguments; it is a proxy for "this is not a frontend host."
We would ideally like to use `has_class` to know if the user's
provided puppet classes are include an `app_frontend`, and thus
`--hostname` and `--email` are required -- but doing that requires
several other steps, and we would like this feedback to be immediate.
We make the presence of `--puppet-classes` equivalent to
`--no-init-db`, since nearly every configuration with
`--puppet-classes` does not install both a database and a frontend,
which is what is required to initialize a database.
2024-04-04 16:49:43 -07:00
Alex Vandiver
89484fbbe6
install: Remove the hidden VIRTUALENV_NEEDED parameter.
...
We can do this behaviour better by using `has_roles`.
2024-04-04 16:49:42 -07:00
Anders Kaseorg
15e2a67893
dev-vagrant-docker: Fix PostgreSQL version.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-04-02 17:02:20 -07:00
Anders Kaseorg
6e871e7731
ruff: Fix UP036 Version block is outdated for minimum Python version.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-04-01 18:32:52 -07:00
Anders Kaseorg
e535c96e40
Upgrade development environment to Ubuntu 22.04.
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2024-04-01 13:27:39 -07:00
Anders Kaseorg
416cba8746
install-shellcheck: Upgrade ShellCheck from 0.9.0 to 0.10.0.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-03-29 09:37:38 -07:00
Anders Kaseorg
e46c3bf116
dev-vagrant-docker: Upgrade docker-systemctl-replacement to 1.5.8066.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-03-04 15:34:10 -05:00
Anders Kaseorg
570f3dd447
python: Reformat with Ruff formatter.
...
https://docs.astral.sh/ruff/formatter/
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-02-29 17:07:16 -08:00
Anders Kaseorg
aeeea453dd
install-shfmt: Upgrade shfmt from 2.7.0 to 2.8.0.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-02-22 12:46:40 -08:00
Alex Vandiver
3d63a87384
kandra: Puppet github.com keys to both root and zulip users.
...
We update to add the ecdsa-sha2-nistp256 key as well.
2024-02-07 10:42:12 -08:00
Alex Vandiver
b1f899512a
pack-local-script: Match mode of file outside of packing.
2024-02-07 10:42:12 -08:00
Alex Vandiver
b23d90ed62
puppet: Rename puppet/zulip_ops to puppet/kandra.
...
This makes for easier tab-completion, and also is a bit more explicit
about the expected consumer.
2024-02-06 17:56:27 -08:00
Alex Vandiver
0bd1e2b434
puppet: Rename and limit production key distribution.
2024-02-02 17:24:12 -08:00
Alex Vandiver
ff00c01538
bootstrap-aws-installer: Pull all keys from secretsmanager.
2024-01-31 16:41:04 -08:00
Alex Vandiver
6902d5db47
install-aws-cli: Also install and keep up to date using Puppet.
...
We previously only did this install on the developer machine and on
initial boot. Also run it from puppet to make sure we keep the binary
up-to-date.
2024-01-31 16:41:04 -08:00
Alex Vandiver
bd87f53c86
install-aws-server: Build a tool to smuggle scripts inline in the bootdata.
2024-01-31 16:41:04 -08:00
Alex Vandiver
333cc902fb
install-aws-server: chdir to the repo root first.
2024-01-31 16:41:04 -08:00