From 4e81bd24d4ce64f0130a7a96b60d6d102434fc0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D0=B5=D0=BC?= Date: Wed, 12 Aug 2026 15:18:41 +0300 Subject: [PATCH 1/2] bumped damsel --- apps/dmt_object/src/dmt_object_id.erl | 8 ++++++-- migrations/1786536402-add_external_party_routes.sql | 11 +++++++++++ rebar.config | 2 +- rebar.lock | 2 +- 4 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 migrations/1786536402-add_external_party_routes.sql diff --git a/apps/dmt_object/src/dmt_object_id.erl b/apps/dmt_object/src/dmt_object_id.erl index 49d1ab9..709f620 100644 --- a/apps/dmt_object/src/dmt_object_id.erl +++ b/apps/dmt_object/src/dmt_object_id.erl @@ -29,7 +29,8 @@ party_config | shop_config | wallet_config - | partner. + | partner + | external_party_routes. -type numerical_ref() :: dmsl_domain_thrift:'CategoryRef'() @@ -54,7 +55,8 @@ dmsl_domain_thrift:'PartyConfigRef'() | dmsl_domain_thrift:'ShopConfigRef'() | dmsl_domain_thrift:'WalletConfigRef'() - | dmsl_domain_thrift:'PartnerRef'(). + | dmsl_domain_thrift:'PartnerRef'() + | dmsl_domain_thrift:'ExternalPartyRoutesRef'(). -export_type([numerical_object_type/0, uuid_object_type/0, numerical_ref/0, uuid_ref/0]). @@ -107,5 +109,7 @@ get_uuid_object_id(wallet_config, ID) -> #domain_WalletConfigRef{id = ID}; get_uuid_object_id(partner, ID) -> #domain_PartnerRef{id = ID}; +get_uuid_object_id(external_party_routes, ID) -> + #domain_ExternalPartyRoutesRef{id = ID}; get_uuid_object_id(Type, _ID) -> throw({not_supported, Type}). diff --git a/migrations/1786536402-add_external_party_routes.sql b/migrations/1786536402-add_external_party_routes.sql new file mode 100644 index 0000000..fce8d56 --- /dev/null +++ b/migrations/1786536402-add_external_party_routes.sql @@ -0,0 +1,11 @@ +-- migrations/1786536402-add_external_party_routes.sql +-- :up +-- Up migration + +INSERT INTO entity_type (name, has_sequence) VALUES +('external_party_routes', FALSE); + +-- :down +-- Down migration + +DELETE FROM entity_type WHERE name = 'external_party_routes'; diff --git a/rebar.config b/rebar.config index 70b3fa7..e36f03b 100644 --- a/rebar.config +++ b/rebar.config @@ -44,7 +44,7 @@ {cowboy_access_log, {git, "https://github.com/valitydev/cowboy_access_log.git", {branch, "master"}}}, {woody_user_identity, {git, "https://github.com/valitydev/woody_erlang_user_identity.git", {tag, "v1.1.0"}}}, {woody, {git, "https://github.com/valitydev/woody_erlang.git", {tag, "v1.1.0"}}}, - {damsel, {git, "https://github.com/valitydev/damsel.git", {tag, "v2.2.39"}}}, + {damsel, {git, "https://github.com/valitydev/damsel.git", {tag, "v2.2.43"}}}, %% Libraries for postgres interaction {epg_connector, {git, "https://github.com/valitydev/epg_connector.git", {tag, "v0.0.2"}}}, diff --git a/rebar.lock b/rebar.lock index a8bdb4a..f29604e 100644 --- a/rebar.lock +++ b/rebar.lock @@ -31,7 +31,7 @@ {<<"ctx">>,{pkg,<<"ctx">>,<<"0.6.0">>},2}, {<<"damsel">>, {git,"https://github.com/valitydev/damsel.git", - {ref,"25e75a53bbdc2cdbda7da266d05ae626fa3fa69b"}}, + {ref,"7280b62355269b2bd41f277ae43cbc44e7b54d65"}}, 0}, {<<"epg_connector">>, {git,"https://github.com/valitydev/epg_connector.git", From 9a6cb3089abdafe6f6c132552085cbcf8260f5fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D0=B5=D0=BC?= Date: Wed, 12 Aug 2026 16:42:12 +0300 Subject: [PATCH 2/2] Drop obsolete :up/:down markers from external_party_routes migration Co-authored-by: Cursor --- migrations/1786536402-add_external_party_routes.sql | 7 ------- 1 file changed, 7 deletions(-) diff --git a/migrations/1786536402-add_external_party_routes.sql b/migrations/1786536402-add_external_party_routes.sql index fce8d56..9b594c9 100644 --- a/migrations/1786536402-add_external_party_routes.sql +++ b/migrations/1786536402-add_external_party_routes.sql @@ -1,11 +1,4 @@ -- migrations/1786536402-add_external_party_routes.sql --- :up --- Up migration INSERT INTO entity_type (name, has_sequence) VALUES ('external_party_routes', FALSE); - --- :down --- Down migration - -DELETE FROM entity_type WHERE name = 'external_party_routes';