Example of setting without keyword in value:
```elixir
-config :tesla, :adapter, Tesla.Adapter.Hackney
+config :tesla, :adapter, {Tesla.Adapter.Finch, name: MyFinch}
```
List of settings which support only full update by key:
def check_http_adapter do
http_adapter = Application.get_env(:tesla, :adapter)
+
case http_adapter do
{Tesla.Adapter.Finch, _} ->
:ok
--- /dev/null
+defmodule Pleroma.Repo.Migrations.RemoveUnusedIndices do
+ use Ecto.Migration
+
+ def change do
+ drop_if_exists(
+ index(:activities, ["(data->>'actor')", "inserted_at desc"], name: :activities_actor_index)
+ )
+
+ drop_if_exists(index(:objects, ["(data->'tag')"], using: :gin, name: :objects_tags))
+ end
+end
end
test "check_http_adapter/0" do
- clear_config([:tesla, :adapter], Gun)
+ Application.put_env(:tesla, :adapter, Gun)
assert capture_log(fn ->
DeprecationWarnings.check_http_adapter()
end) =~ "Your config is using a custom tesla adapter"
+
+ Application.put_env(:tesla, :adapter, Tesla.Mock)
end
end