File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -965,6 +965,11 @@ defmodule Sequin.Transforms do
965965 "active_backfills" ->
966966 { :cont , { :ok , acc } }
967967
968+ # message_kind was deprecated in v0.10.x and removed in v0.14.x
969+ # Ignore it for backwards compatibility with existing YAML configs
970+ "message_kind" ->
971+ { :cont , { :ok , acc } }
972+
968973 # Ignore internal fields that might be present in the external data
969974 ignored when ignored in ~w( id inserted_at updated_at account_id replication_slot_id sequence_id) ->
970975 { :cont , { :ok , acc } }
Original file line number Diff line number Diff line change @@ -969,6 +969,25 @@ defmodule Sequin.YamlLoaderTest do
969969 assert % SequinStreamSink { } = consumer . sink
970970 end
971971
972+ test "ignores deprecated message_kind field for backwards compatibility" do
973+ # message_kind was removed in v0.14.x but users may still have it in their YAML
974+ # from v0.10.x when it was deprecated in the UI
975+ assert :ok =
976+ YamlLoader . apply_from_yml! ( """
977+ #{ account_and_db_yml ( ) }
978+
979+ sinks:
980+ - name: "sequin-playground-consumer"
981+ database: "test-db"
982+ message_kind: event
983+ destination:
984+ type: "sequin_stream"
985+ """ )
986+
987+ assert [ consumer ] = Repo . all ( SinkConsumer )
988+ assert consumer . name == "sequin-playground-consumer"
989+ end
990+
972991 test "creates sink consumer with schema filter" do
973992 assert :ok =
974993 YamlLoader . apply_from_yml! ( """
You can’t perform that action at this time.
0 commit comments