Matt Jankowski
13dffb206b
Add CLI area progress bar helper ( #25208 )
2023-06-01 14:31:24 +02:00
Matt Jankowski
d59a2b5b8e
Use thor methods instead of tty prompt in maintenance cli ( #25207 )
2023-05-31 19:40:16 +02:00
Matt Jankowski
8cb57d28a6
Fix FormatStringToken cop in CLI ( #25122 )
2023-05-30 16:21:53 +02:00
Matt Jankowski
87ff2507fc
Fix Rails/WhereExists cop in CLI ( #25123 )
2023-05-30 16:09:57 +02:00
Matt Jankowski
dccd813e6c
Extract helper method for error report in cli/accounts command ( #25119 )
2023-05-30 16:09:15 +02:00
Matt Jankowski
35e1c074e3
Increment index which was previously not used in maintenance CLI loop ( #25118 )
2023-05-30 16:08:47 +02:00
Matt Jankowski
9ee55e469c
Consistent usage of CLI dry_run?
method ( #25116 )
2023-05-30 16:07:44 +02:00
Matt Jankowski
95b54f5ad7
Extract methods for user de-duping in maintenance CLI ( #25117 )
2023-05-26 09:42:16 +02:00
Claire
245a4eac89
Improve various queries against account domains ( #25126 )
2023-05-25 09:27:16 +02:00
Matt Jankowski
f97a429d20
Add CLI Base class for command line code ( #25106 )
2023-05-24 11:55:40 +02:00
Matt Jankowski
eada85f715
Move the mastodon/*_cli files to mastodon/cli/* ( #24139 )
2023-05-23 16:08:26 +02:00
Nick Schonning
c4f2b1e86a
Fix minor typos in comments and spec names ( #21831 )
2023-05-19 17:13:29 +02:00
Daniel M Brasil
f7b92ed93d
Add ability to block sign-ups from IP using the CLI ( #24870 )
2023-05-09 14:46:00 +02:00
Daniel M Brasil
1b1b940202
Fix uncaught ActiveRecord::StatementInvalid
in Mastodon::IpBlocksCLI ( #24861 )
2023-05-09 14:45:47 +02:00
Renaud Chaput
5569c64150
Add version suffixes to nightly & edge image builds ( #24823 )
2023-05-04 13:45:39 +02:00
Nick Schonning
833076d6bf
Bump rubocop-rails 2.19.1 with update .rubocop_todo.yml ( #24469 )
2023-05-04 11:56:24 +02:00
Nick Schonning
2f2c8f671b
Autofix Rubocop Style/HashSyntax ( #23754 )
2023-05-04 05:54:26 +02:00
Matt Jankowski
e8537a3a01
Fix Performance/CollectionLiteralInLoop cop ( #24819 )
2023-05-04 05:33:55 +02:00
Matt Jankowski
c886971abb
Fix Rails/DeprecatedActiveModelErrorsMethods cop ( #24742 )
2023-05-02 18:39:22 +02:00
Matt Jankowski
621e53f8fc
Fix Performance/Sum cop ( #24788 )
2023-05-02 16:10:40 +02:00
Claire
6d57b317bc
Fix tootctl accounts cull
crashing when encountering a domain resolving to a private address ( #23378 )
2023-05-02 15:10:09 +02:00
Matt Jankowski
182bb4595f
Fix Lint/DuplicateBranch cop ( #24766 )
2023-05-02 12:57:11 +02:00
Daniel M Brasil
2ec45549cf
Fix tootctl accounts approve --number N
not aproving N earliest registrations ( #24605 )
2023-04-30 06:50:58 +02:00
Matt Jankowski
8a813615b0
Fix Rails/Output cop ( #24687 )
2023-04-30 06:48:16 +02:00
Matt Jankowski
16e08228df
Fix Rails/SquishedSQLHeredocs cop ( #24694 )
2023-04-30 06:43:50 +02:00
Daniel M Brasil
84c6f7a1a6
Fix tootctl accounts create --reattach --force
not working with confirmed accounts ( #24680 )
2023-04-27 10:15:45 +02:00
Claire
df83ca4e25
Fix crash in tootctl accounts create --reattach --force
( #24557 )
2023-04-23 22:29:31 +02:00
Daniel M Brasil
e9039513a0
Fix uncaught ActiveRecord::StatementInvalid exception in Mastodon::AccountsCLI#approve
( #24590 )
2023-04-20 10:57:11 +02:00
Eugen Rochko
3ca64638d4
Refactor Cache-Control
and Vary
definitions ( #24347 )
2023-04-19 16:07:29 +02:00
Daniel M Brasil
ca865e1086
Fix email confirmation skip option in tootctl accounts modify USERNAME --email EMAIL --confirm
( #24578 )
2023-04-18 09:51:24 +02:00
Daniel M Brasil
ab79bac584
tootctl: add --approve option to tootctl accounts create ( #24533 )
2023-04-14 14:41:15 +02:00
Matt Jankowski
c5f965afcf
Clean up the post deployment migration generator ( #24233 )
2023-04-11 11:25:29 +02:00
Claire
f91018b5c2
Bump version to v4.1.2 ( #24427 )
2023-04-07 09:01:57 +02:00
Claire
e03f9b38c5
Change root Chewy strategy to emit a warning instead of erroring out in production mode ( #24327 )
2023-04-03 15:05:39 +02:00
Alison Wheeler
218e88df65
Update redis_config.rb to remove warning message ( #24352 )
2023-04-02 06:49:37 +02:00
Eugen Rochko
c75fccf033
Change user settings to be stored in a more optimal way ( #23630 )
...
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2023-03-30 14:44:00 +02:00
Claire
092058da27
Add migration tests for user mail notification settings ( #24277 )
2023-03-27 17:54:42 +02:00
Matt Jankowski
32553ac00c
Migration warning helper, and only run in production env ( #24253 )
2023-03-26 00:39:24 +01:00
Claire
f8486dc29a
Bump version to v4.1.1 ( #24201 )
2023-03-21 15:04:21 +01:00
Claire
c22722c5a2
Fix crash in tootctl
commands making use of parallelization when Elasticsearch is enabled ( #24182 )
2023-03-20 20:02:58 +01:00
Nick Schonning
8f638799ec
Regen rubocop-todo without Max shadowing ( #24076 )
2023-03-16 12:31:08 +09:00
Eugen Rochko
8819143d8b
Add cache headers to static files served through Rails ( #24120 )
2023-03-16 02:55:54 +01:00
Nick Schonning
0717d1b058
Autofix Rubocop Style/RedundantArgument ( #23798 )
2023-03-16 10:34:00 +09:00
Claire
23bce96f0c
Change sidekiq-bulk's batch size from 10,000 to 1,000 jobs in one Redis call ( #24034 )
2023-03-15 03:45:15 +01:00
Nick Schonning
12cbdf36a9
Enable Rubocop Performance/DeleteSuffix ( #24077 )
2023-03-13 00:03:07 +01:00
Claire
852eb6ce7a
Fix sidekiq jobs not triggering Elasticsearch index updates ( #24046 )
2023-03-12 23:47:55 +01:00
9p4
8ca1b0b6fc
Add refreshing many accounts at once with "tootctl accounts refresh" ( #23304 )
2023-03-08 17:06:53 +01:00
Jean byroot Boussier
08c2938b4a
Upgrade to latest redis-rb 4.x and fix deprecations ( #23616 )
...
Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
2023-03-04 16:38:28 +01:00
Claire
cdc026c2fb
Fix tootctl accounts migrate error due to typo ( #23567 )
2023-03-03 20:45:12 +01:00
Claire
16c8144b1c
Add support for incoming rich text ( #23913 )
2023-03-03 20:19:29 +01:00
Nick Schonning
eb6991cee1
Autofix Rubocop Rails/RootPathnameMethods ( #23760 )
2023-02-22 09:57:15 +09:00
Nick Schonning
247bf6e812
Enable Rubocop Style/StringConcatenation defaults ( #23792 )
2023-02-22 09:54:36 +09:00
Nick Schonning
dd63a919f0
Autofix Rubocop Style/RescueStandardError ( #23745 )
2023-02-20 11:01:20 +01:00
Nick Schonning
9b3be79cb5
Autofix Rubocop Style/FormatString ( #23743 )
2023-02-20 07:58:33 +01:00
Nick Schonning
e6312104c7
Autofix Rubocop remaining Layout rules ( #23679 )
2023-02-20 06:58:28 +01:00
Nick Schonning
c08d9e5e5c
Autofix Rubocop Style/UnpackFirst ( #23741 )
2023-02-20 06:51:43 +01:00
Nick Schonning
c0f0c42326
Audofix Rubocop Style/WordArray ( #23739 )
2023-02-20 06:14:10 +01:00
Nick Schonning
be1ec56c6d
Autofix Rubocop Style/StringLiterals ( #23695 )
2023-02-19 07:38:14 +09:00
Nick Schonning
49f1168050
Autofix Rubocop Style/RedundantBegin ( #23703 )
2023-02-19 07:09:40 +09:00
Nick Schonning
3f9d7419d1
Autofix Rubocop Style/Lambda ( #23696 )
2023-02-18 12:39:00 +01:00
Nick Schonning
793f8c7dd5
Autofix Rubocop Style/IfUnlessModifier ( #23697 )
2023-02-18 12:37:47 +01:00
Nick Schonning
b7d4391c4d
Autofix Rubocop Lint/AmbiguousOperatorPrecedence ( #23681 )
2023-02-18 04:30:23 +01:00
Nick Schonning
5973a58281
Enable Lint/RedundantCopDisableDirective ( #23687 )
2023-02-18 04:30:14 +01:00
Nick Schonning
bc31a28361
Apply Rubocop Style/RedundantConstantBase ( #23463 )
2023-02-18 04:30:03 +01:00
Nick Schonning
8fa4163574
Enable Rubocop Style/NumericLiterals ( #23647 )
2023-02-18 11:05:57 +09:00
Nick Schonning
31ca76fe2c
Run rubocop formatting except line length ( #23632 )
2023-02-18 06:56:20 +09:00
Nick Schonning
6417e06194
Upgrade to Stylelint 15 with Prettier ( #23558 )
2023-02-13 04:57:03 +01:00
Claire
20c6a153e4
Bump version to 4.1.0 ( #23471 )
...
* Bump version to 4.1.0
* Editorialize changelog some more and highlight API changes
* Update changelog
2023-02-10 22:21:23 +01:00
Nick Schonning
4eb077fc25
Apply Rubocop Rails/RootPublicPath ( #23447 )
2023-02-08 10:38:07 +01:00
Nick Schonning
e0a02f8696
Apply Rubocop Style/NegatedIfElseCondition ( #23451 )
2023-02-08 07:07:36 +01:00
Nick Schonning
67a6f688ca
Apply Rubocop Performance/StringIdentifierArgument ( #23444 )
2023-02-08 02:36:20 +01:00
Nick Schonning
fbfa531daa
Apply Rubocop Performance/BindCall ( #23437 )
2023-02-08 09:10:25 +09:00
Claire
c9e86e57e8
Bump version to 4.1.0rc3 ( #23384 )
2023-02-03 16:39:38 +01:00
Claire
b26ab9916d
Bump version to 4.1.0rc2 ( #23220 )
2023-01-25 16:20:54 +01:00
Claire
efa0acc165
Bump version to 4.1.0rc1 ( #23112 )
2023-01-20 14:19:12 +01:00
JT Olio
2cc9a94660
Add Storj DCS to cloud object storage options ( #21929 )
...
* Add Storj DCS to cloud object storage options
More explanation here: https://forum.storj.io/t/object-storage-provider-for-mastodon-instance/11464/37
* more help for which command to use
2023-01-18 17:47:49 +01:00
Claire
908f5f4c6e
Add tootctl domains purge
options to select subdomains and keep domain blocks ( #22063 )
...
* Add --include-subdomains option to tootctl domains purge
* Add support for '*.' subdomain wildcard patterns in `tootctl domains purge`
* Fix custom emojis deletion not following subdomain and URI options
* Change `tootctl domains purge` to not purge domain blocks unless --purge-domain-blocks is passed
* Refactor `tootctl domains purge`
* Add feedback on deleted domain blocks
2023-01-18 16:50:50 +01:00
Jeong Arm
4fd439e632
Implement tootctl accounts prune ( #18397 )
...
* Implement tootctl accounts prune
* Optimise query
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2023-01-13 22:34:16 +01:00
Claire
8cb9cfb0ab
Add tootctl accounts migrate
( #22330 )
...
* Add tootctl accounts replay-migration
Fixes #22281
* Change `tootctl accounts replay-migration` to `tootctl accounts migrate`
2023-01-13 17:00:23 +01:00
Claire
aadf68654a
Fix incorrect env file generation in mastodon:setup ( #23072 )
...
Regression from #23012
2023-01-13 10:17:07 +01:00
Claire
614dd22095
Fix sanitizer parsing link text as HTML when stripping unsupported links ( #22558 )
2023-01-11 22:21:10 +01:00
Claire
fdea93b6be
Fix $
not being escaped in .env.production
file generated by mastodon:setup
( #23012 )
...
* Fix `$` not being escaped in `.env.production` file generated by `mastodon:setup`
* Improve robustness of dotenv escaping
2023-01-11 21:53:11 +01:00
Nick Schonning
675fff259a
Expand Stylelint glob to include CSS files ( #22469 )
2023-01-05 13:42:13 +01:00
Dan Peterson
2a98aad36d
Fix default S3_HOSTNAME used in mastodon:setup ( #19932 )
...
s3-us-east-1.amazonaws.com does not exist.
Co-authored-by: Effy Elden <effy@effy.space>
2022-12-15 16:38:51 +01:00
Claire
762efea31f
Add --email and --dry-run options to tootctl accounts delete
( #22328 )
2022-12-15 14:52:50 +01:00
Evan
2d3b9084db
Add command to remove avatar and header images of inactive remote accounts from the local database ( #22149 )
...
* Add tootctl subcommand media remove-profile-media
* Trigger workflows
* Correcting external linting
* External linting error
* External linting fix
* Merging with remove command
* Linting
* Correct long option names
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
* Correct long option names
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
* Correct long option names
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
* Remove saving a list of purged accounts
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2022-12-14 19:50:07 +01:00
Claire
053d3ba6ca
Fix crash and incorrect behavior in tootctl domains crawl ( #19004 )
2022-12-13 20:02:32 +01:00
Claire
56e253553f
Fix deprecation warning in tootctl accounts rotate
( #22120 )
2022-12-07 14:13:10 +01:00
Claire
360e6f7982
Fix pre-4.0 admin action logs ( #22091 )
...
* Fix BackfillAdminActionLogs post-deployment migration
* Improve migration tests
* Backfill admin action logs again
2022-12-06 23:38:03 +01:00
Claire
daf52f6c69
Remove support for Ruby 2.6 ( #21477 )
...
As pointed out by https://github.com/mastodon/mastodon/pull/21297#discussion_r1028372193
at least one of our dependencies already dropped support for Ruby 2.6, and we
had removed Ruby 2.6 tests from the CI over a year ago (#16861 ).
So stop advertising Ruby 2.6 support, bump targeted version, and drop some
compatibility code.
2022-11-27 20:41:39 +01:00
Claire
c863f76a62
Add logging for Rails cache timeouts ( #21667 )
...
* Reduce redis cache store connect timeout from default 20 seconds to 5 seconds
* Log cache store errors
2022-11-27 20:37:37 +01:00
Eugen Rochko
a4d1745ffa
Bump version to 4.0.2 ( #20725 )
2022-11-15 03:57:18 +01:00
Eugen Rochko
eb1cb5b6d9
Bump version to 4.0.1 ( #20696 )
2022-11-14 22:21:14 +01:00
Eugen Rochko
4a307df02f
Bump version to 4.0.0 ( #20636 )
2022-11-14 20:27:12 +01:00
Eugen Rochko
c5da82cada
Bump version to 4.0.0rc4 ( #20634 )
2022-11-14 08:50:14 +01:00
Claire
abc0ea76e7
Fix index name in fix-duplicates task ( #20632 )
2022-11-14 08:33:48 +01:00
Eugen Rochko
8b98bebc17
Fix error when passing unknown filter param in REST API ( #20626 )
...
Fix #19156
2022-11-14 08:06:06 +01:00
Claire
ac0ae9c83d
Update fix-duplicates ( #20502 )
...
Fixes #19133
2022-11-13 21:01:38 +01:00
Arthur Isac
bca22dc131
Copied Spaces support from packer .rake ( #20573 )
2022-11-13 20:58:40 +01:00
Eugen Rochko
791592c961
Bump version to 4.0.0rc3 ( #20378 )
2022-11-11 08:39:38 +01:00