Ivan Tashkinov
3e4d84729a
[ #3213 ] Prototype of data migrations functionality / HashtagsTableMigrator.
4 years ago
Haelwenn (lanodan) Monnier
c4439c630f
Bump Copyright to 2021
...
grep -rl '# Copyright © .* Pleroma' * | xargs sed -i 's;Copyright © .* Pleroma .*;Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/ >;'
4 years ago
Ivan Tashkinov
8c972de045
[ #3213 ] transfer_hashtags mix task refactoring.
4 years ago
Ivan Tashkinov
0d521022fe
[ #3213 ] Removed PK from hashtags_objects table. Improved hashtags_transfer mix task (logging of failed ids).
4 years ago
Ivan Tashkinov
367f0c31c3
[ #3213 ] Added query options support for Repo.chunk_stream/4.
...
Used infinite timeout in transfer_hashtags select query.
4 years ago
Ivan Tashkinov
a25c1e8ec0
[ #3213 ] Improved `database.transfer_hashtags` mix task: proper rollback, speedup.
4 years ago
sadposter
6cd0586ef9
Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
4 years ago
Haelwenn
3966add048
Revert "Merge branch 'features/hashtag-column' into 'develop'"
...
This reverts merge request !2824
4 years ago
Haelwenn (lanodan) Monnier
d0c2479710
pleroma.database fill_old_hashtags: Add month_limit argument
4 years ago
Ivan Tashkinov
cbb19d0e18
[ #3213 ] Hashtag-filtering functions in ActivityPub. Mix task for migrating hashtags to `hashtags` table.
4 years ago
Alexander Strizhakov
538af14d52
possibility to run rollback in test env
4 years ago
Haelwenn (lanodan) Monnier
acb03d591b
Insert text representation of hashtags into object["hashtags"]
...
Includes a new mix task: pleroma.database fill_old_hashtags
4 years ago
Alex Gleason
80891e83d8
Merge remote-tracking branch 'upstream/develop' into registration-workflow
4 years ago
lain
8b8c317c0f
Merge branch 'fix/2336-mastoapi-ws-posts-dropping' into 'develop'
...
Fix mastoapi ws posts dropping
Closes #2336
See merge request pleroma/pleroma!3198
4 years ago
Alexander Strizhakov
cebe3c7def
Fix for dropping posts/notifs in WS when mix task is executed
...
- start oban in mix tasks with empty queues, plugins and crontab
- fix for update_users_following_followers_counts
- fix for removed logo.png
- typo in resend confirmation emails mix task docs
- fix for uploads mix task (start Majic.Pool)
- fix for creating user mix task (start :fast_html app)
4 years ago
rinpatch
7133c0c5ea
instance.gen: Warn that stripping exif requires exiftool
...
And default to no if it is not installed
Closes #2343
4 years ago
rinpatch
6aece536eb
instance.gen task: Only show files which will be actually overwritten
4 years ago
lain
ed76323776
Merge branch 'feature/configdb-mix-tasks' into 'develop'
...
Add mix tasks to give additional ConfigDB recovery and debugging options
See merge request pleroma/pleroma!3174
4 years ago
Mark Felder
93428d7c11
Print out settings that will be removed when specifying the group and key for consistency
...
Fix error message when specified key doesn't exist
4 years ago
Mark Felder
61494b5245
Formatting
4 years ago
feld
d817bae802
Apply 1 suggestion(s) to 1 file(s)
4 years ago
Ivan Tashkinov
e00c667145
[ #3174 ] Refactoring: ConfigDB fetching functions, ConfigDB tests.
...
Minor fixes.
4 years ago
Mark Felder
50aadc3d5c
shell_yes?/1 was not showing the correct message and always defaults to yes which is dangerous
4 years ago
Mark Felder
9dfda37821
More compact representation
4 years ago
Mark Felder
3bf5c5b015
Ensure deleting entire group prints out settings that will be removed before actually removing them
4 years ago
Mark Felder
696d39c3dc
Fix deleting an entire group. Also utilize Pleroma.ConfigDB.delete/1
4 years ago
Mark Felder
685e5c8509
Use Pleroma.ConfigDB.delete/1 instead of rolling our own
4 years ago
Mark Felder
4aad066091
Use Enum.any? to ensure we return true if there are results
4 years ago
Alexander Strizhakov
a02eb88396
config_db search methods
4 years ago
Mark Felder
7fd4f4908b
dump_key/2 no longer used
4 years ago
feld
60c4ac0f70
Apply 6 suggestion(s) to 1 file(s)
4 years ago
Mark Felder
95e908e4e2
Credo
4 years ago
Mark Felder
16bdc2bcd0
Make the --force flag for reset command consistent with the others and deduplicate db truncation
4 years ago
Mark Felder
e379ab8277
Add --force flag for delete and reset commands
...
Bunch of reorganization and consolidation
4 years ago
Mark Felder
20a911f9f7
Add comment for this mysterious behavior
4 years ago
Mark Felder
25fab7da69
No need for a separate functions here
4 years ago
Mark Felder
13947999ad
Use a callback strategy to short circuit the functions and print a nice error
4 years ago
Mark Felder
a7b5280b5b
Centralize check that configdb is enabled which now raises an exception
4 years ago
Mark Felder
53a5ec1952
Left public during debugging
4 years ago
Mark Felder
5135a8189f
Use inspect instead of faking the output
4 years ago
Mark Felder
6334ba9ad3
Remove unnecessary keys command
4 years ago
Mark Felder
d0cb73527f
Ensure scary warning starts on a new line
4 years ago
Mark Felder
0847e3e496
Print whole config when resetting and include a scary looking message.
4 years ago
Mark Felder
d4320e0daf
Both are really atoms
4 years ago
Mark Felder
4bdfcf1682
Transform strings to atoms for all cases, including when the atom is a module like Pleroma.Emails.Mailer
4 years ago
Mark Felder
3df115b2b0
Support atoms and strings as args to the mix task
...
Improve output. Show the user what will be deleted before the prompt.
4 years ago
Mark Felder
ae7d37de06
Fix deletion regression due to strings instead of atoms
...
Improve message after successful deletion
4 years ago
Mark Felder
c6a0ca2213
Improve dumping groups and specific keys; add prompts for delete and reset
4 years ago
Mark Felder
67437feafc
Support listing groups, listing keys in a group, and dumping the config based on group or specific key in that group
4 years ago
Mark Felder
a51da3c1d8
Sort output by group
...
Not the best sorting, but better than nothing.
4 years ago
Mark Felder
ada073f251
Rename keys to groups
4 years ago
Mark Felder
e8a4062d9d
Document how to delete individual configuration groups and completely reset the config without SQL
4 years ago
Mark Felder
a82ba66662
Better deletion message
4 years ago
Mark Felder
6dcc36baa9
Add mix tasks to give additional recovery and debugging options
...
- pleroma.config dump: prints the entire config as it would be exported to the filesystem
- pleroma.config dump KEY: prints the configuration under a specific ConfigDB key in the database
- pleroma.config keylist: lists the available keys in ConfigDB
- pleroma.config keydel KEY: deletes ConfigDB entry stored under the key
This should prevent the need for users to manually execute SQL queries.
4 years ago
Mark Felder
751712d970
Prevent mix tasks from spewing any internal logging unless DEBUG is in the env
...
e.g., DEBUG=1 mix pleroma.config migrate_from_db
4 years ago
Alex Gleason
30ed7b502f
Merge remote-tracking branch 'upstream/develop' into registration-workflow
4 years ago
Alexander Strizhakov
0a5b22bc3b
start limiters in mix tasks
4 years ago
feld
a1056aace1
Merge branch 'fix/mix-task-user-delete_activities' into 'develop'
...
Fix mix pleroma.user delete_activities task
See merge request pleroma/pleroma!3156
4 years ago
Mark Felder
97201f7e37
Need to start web_resp cache or mix task fails
4 years ago
Egor Kislitsyn
f69fe36ebf
Merge branch 'develop' into frontend-admin-api
4 years ago
sadposter
7947236575
Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
4 years ago
Alex Gleason
9546c1444c
Merge remote-tracking branch 'upstream/develop' into registration-workflow
4 years ago
Haelwenn (lanodan) Monnier
e2f573d68b
pleroma.instance: Fix Exiftool module name
4 years ago
Egor Kislitsyn
08cbd655d1
Merge branch 'develop' into frontend-admin-api
4 years ago
rinpatch
cc45c69fff
Remove release_env
...
While taking a final look at instance.gen before releasing I noticed
that the release_env task outputs messages in broken english. Upon
further inspection it seems to have even more severe issues which, in
my opinion, warrant it's at least temporary removal:
- We do not explain what it actually does, anywhere. Neither the task
docs nor instance.gen, nor installation instructions.
- It does not respect FHS on OTP releases (uses /opt/pleroma/config even
though we store the config in /etc/pleroma/config.exs).
- It doesn't work on OTP releases, which is the main reason it exists.
Neither systemd nor openrc service files for OTP include it.
- It is not mentioned in install guides other than the ones for Debian
and OTP releases.
4 years ago
sadposter
ddf36b096e
Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
4 years ago
Egor Kislitsyn
03e306785b
Add an API endpoint to install a new frontend
4 years ago
Maksim Pechnikov
2030ffd490
fix test
4 years ago
Maksim Pechnikov
cf53e300f8
added generate the release env to `pleroma.instance gen`
4 years ago
Maksim
e2333f757a
Apply 1 suggestion(s) to 1 file(s)
4 years ago
Maksim
499df7b73a
Apply 1 suggestion(s) to 1 file(s)
4 years ago
Maksim Pechnikov
14054cd004
update task messages
4 years ago
Maksim Pechnikov
20e68b30f0
added generated `pleroma.env`
4 years ago
Alex Gleason
dc38dc8472
Replace User.toggle_confirmation/1 with User.confirm/1, fixes #2235
4 years ago
Mark Felder
409f694e4f
Merge branch 'develop' into refactor/locked_user_field
4 years ago
Mark Felder
9968b7efed
Change user.locked field to user.is_locked
4 years ago
Alexander Strizhakov
6bf85440b3
mix tasks consistency
4 years ago
feld
03855f9789
Merge branch 'improve/instance-gen' into 'develop'
...
#2159 Support enabling upload filters during instance gen
See merge request pleroma/pleroma!3070
4 years ago
Mark Felder
8539e386c3
Add missing Copyright headers
4 years ago
Mark Felder
6c61ef14c3
Support enabling upload filters during instance gen
4 years ago
sadposter
a9938611f7
Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
4 years ago
Maksim Pechnikov
de993b856b
added `force` option to the unfollow operation
4 years ago
Mark Felder
8b84ca4901
Simplify the value comparison
4 years ago
Mark Felder
81faf540b3
Add some user feedback
4 years ago
Mark Felder
e33360fdb9
Cannot use batches with User.try_send_confirmation_email/1
4 years ago
Mark Felder
935ef21b02
Use the import
4 years ago
Mark Felder
8af8eb5ce7
Chase Pleroma.RepoStreamer.chunk_stream -> Pleroma.Repo.chunk_stream
4 years ago
Mark Felder
f3a1f9c3bb
Merge branch 'develop' into feature/bulk-confirmation
4 years ago
Mark Felder
f7e40f7ef1
Deny ConfigDB migration when deprecated settings found
4 years ago
Maksim Pechnikov
599f8bb152
RepoStreamer.chunk_stream -> Repo.chunk_stream
4 years ago
sadposter
95a1e5bf5a
Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
4 years ago
Alexander Strizhakov
15aece7238
remove validate_expires_at from enqueue method
4 years ago
Alexander Strizhakov
9bf1065a06
schedule activity expiration in Oban
4 years ago
Alexander Strizhakov
ab56dd54e7
use Pleroma.HTTP in emoji packs tasks
4 years ago
sadposter
d0ffefc270
Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
4 years ago
Mark Felder
d23d0c27c2
Handle possibility of user account in a bulk operation not having an email address
4 years ago
Mark Felder
75b6fef25d
Add mix task for bulk [un]confirming the local instance users
4 years ago
Mark Felder
23ca5f75af
Make it possible to bulk send confirmation emails to all unconfirmed users
4 years ago
Alexander Strizhakov
696bf09433
passing adapter options directly without adapter key
4 years ago
Alexander Strizhakov
a83916fdac
adapter options unification
...
not needed options deletion
4 years ago