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
Alexander Strizhakov
6aadb1cb40
digest algorithm is taken from header
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
Alexander Strizhakov
5eef4988bf
fix for elixir 1.11
...
load runtime configs in releases with config provider
4 years ago
lain
67b15cc033
Search: Save detected pg version in a persistent term.
4 years ago
lain
f9a4cf2097
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into websearch
4 years ago
feld
ecd1ef8cb5
Merge branch 'fix/2302-report-duplicates' into 'develop'
...
Fix for forwarded reports
Closes #2303 and #2302
See merge request pleroma/pleroma!3146
4 years ago
lain
e4289792d2
Linting.
4 years ago
lain
9a1e5f5d48
Search: Change search method based on detected pg version
4 years ago
lain
a407e33c78
Application: Save postgres version in the environment
4 years ago
Alexander Strizhakov
0a5b22bc3b
start limiters in mix tasks
4 years ago
feld
79a509ee61
Merge branch '2301-users-search-discoverability-fix' into 'develop'
...
[#2301 ] Proper handling of User.is_discoverable
Closes #2301
See merge request pleroma/pleroma!3162
4 years ago
feld
cd1b4155d5
Merge branch 'oban-jobs-to-simple-tasks' into 'develop'
...
Moving some background jobs into simple tasks
Closes #1790
See merge request pleroma/pleroma!3129
4 years ago
Ivan Tashkinov
b27d8f7437
Merge remote-tracking branch 'remotes/origin/develop' into 2301-users-search-discoverability-fix
...
# Conflicts:
# CHANGELOG.md
4 years ago
lain
5e04f4156c
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into websearch
4 years ago
Ivan Tashkinov
e164c37139
[ #2301 ] Proper handling of `User.is_discoverable`: users appear in in-service search but are hidden from external services like search bots.
4 years ago
Haelwenn
c8d11c3064
Merge branch '2317-old-reset-tokens' into 'develop'
...
Resolve "Don't allow old password reset tokens"
Closes #2317
See merge request pleroma/pleroma!3160
4 years ago
lain
8b90d62506
Search: Only skip ordering the rum index.
4 years ago
lain
a60242464e
Search: Add option to search with the websearch function
4 years ago
Ivan Tashkinov
fcad3e716a
[ #2301 ] Quick fix: users with is_discoverable == false (default!) are included in search results.
4 years ago