Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ULID support #355

Merged
merged 4 commits into from
Sep 25, 2024
Merged

feat: add ULID support #355

merged 4 commits into from
Sep 25, 2024

Conversation

kalinkrustev
Copy link
Contributor

No description provided.

@kalinkrustev kalinkrustev merged commit 7acc88f into feat/fx-impl Sep 25, 2024
14 checks passed
@kalinkrustev kalinkrustev deleted the feat/ulid branch September 25, 2024 10:21
kleyow added a commit that referenced this pull request Jan 18, 2025
* feat(mojaloop/#3689): fx quotes pov implementation (#326)

* chore(snapshot): 15.8.0-snapshot.11

* fix(mojaloop/#3689): fx quotes fixes (#328)

* fix(mojaloop/#3689): fx quotes bug fix (#329)

* feat: enable sending events directly to Kafka (#332)

* feat(mojaloop/#3933): update participant accounts validation (#333)

feat(mojaloop/#3933): update participant accounts validation
- Added validation for `supportedCurrencies` when present in `POST /quotes` request (payer DFSP must have position account for all supported currencies
- Added validation for `payeeReceiveAmount` currency when present (payee DFSP must have position account for the `payeeReceiveAmount` currency)
- Fixed error handling to prevent sending double error callbacks
- Ensure top-level tracing spans are finished correctly
- Updated integration tests harness to support new changes
- Added integration tests for the use case
- Updated dependencies and resolve audit issues

* add check for db on api, fix docker compose

* chore(snapshot): 15.8.0-snapshot.17

* disable coverage, fix image scan

* chore(snapshot): 15.8.0-snapshot.18

* disable coverage, fix image scan

* chore(snapshot): 15.8.0-snapshot.19

* image scan

* chore(snapshot): 15.8.0-snapshot.20

* revert

* chore(snapshot): 15.8.0-snapshot.21

* feat: allow UUID v7 in the API patterns (#334)

* feat(csi-20 & csi-164): parameterize 'switch' id (#339)

* fix: quotes participants validation (#340)

* fix: quotes validation

* chore(snapshot): 15.8.0-snapshot.22

* fix: integration test

* chore: await in promise all

* fix: lint

* chore(snapshot): 15.8.0-snapshot.23

* chore(snapshot): 15.8.0-snapshot.24

* feat(mojaloop/#3991): add support for cross-network proxy routing (#341)

feat(mojaloop/#3991): add support for cross-network proxy routing (#341)
- Added proxy lib
- Added configuration for proxy
- Added unit and integration tests for proxy related functionalities

* fix: deps

* chore(snapshot): 15.8.0-snapshot.32

* feat(csi-334): updated proxyCache lib to use redis cluster (#342)

* feat(csi-334): updated proxyCache lib to use redis cluster

* chore(snapshot): 15.8.0-snapshot.33

* fix(csi-414): fixed TypeError - Cannot read properties of undefined; updated proxyCache lib; added request logging (#344)

* feat(csi-334): updated proxyCache lib; added request logging

* fix(csi-414): fixed TypeError - Cannot read properties of undefined (reading 'value')

* fix(csi-414): updated deps

* chore(snapshot): 15.8.0-snapshot.34

* fix(csi-411): disable validation on proxied request (#346)

* disable validation

* disable validation

* unit tests

* int tests

* test

* remove

* update

* harden int tests

* fix

* update int tests for persistant mode

* fix unit

* fix(csi-498): generated accept/contentType headers based on requested resource; improved logging (#347)

* fix(csi-498): generated accept/contentType headers based on requested resource; improved logging

* fix(csi-498): updated deps

* chore(snapshot): 15.8.0-snapshot.35

* chore(snapshot): 15.8.0-snapshot.36

* fix(csi-498): generated accept/contentType headers based on requested resource; improved logging

* fix(csi-498): generated accept/contentType headers based on requested resource; improved logging

* feat(mojaloop/#3885): extend fxquote functionality to persistant mode (#348)

* database functions and model logic

* upgrade harness

* fix tests

* db unit test

* int tests

* lint

* fx quote error

* lint

* addressed comments

* comments

* feat(mojaloop/#3817): harden fx quotes (#345)

* fix(mojaloop/#3817): restore proxied source validation (#349)

* chore: renable coverage and improve coverage (#350)

* coverage

* improve coverage

* fix

* lint dep

* fix(csi-550): add logs to QuotesModel (#351)

* fix(csi-550): add logs to QuotesModel

* fix(csi-550): add logs to QuotesModel

* fix(csi-550): add logs to QuotesModel

* fix(csi-550): add logs to QuotesModel

* chore(snapshot): 15.8.0-snapshot.37

* fix(csi-550): added logs to QuotesModel.forwardQuoteRequest()

* chore(snapshot): 15.8.0-snapshot.38

* fix(csi-550): improved logs in QuotesModel

* chore(snapshot): 15.8.0-snapshot.39

* fix(csi-550): improved logs in QuotesModel for handleQuoteRequest

* chore(snapshot): 15.8.0-snapshot.40

* fix: await transaction commit and rollback and avoid unhandledPromise error (#354)

* feat: add ULID support (#355)

* fix: regex

* fix: merge conflict

* test: start using mojaloop/build orb (#358)

* chore: version

* chore(release): [ci skip] 15.9.0-iso.0

* chore: continuous deployment

* chore(release): [ci skip] 15.9.0-iso.1

* feat(csi-107): add iso-20022 support (#357)

* feat(csi-107): added ISO openApi yaml

* feat(csi-107): added ISO openApi yaml

* feat(csi-107): added iso openApi yaml; added transformerLib

* feat(csi-107): skipped failed validation tests

* feat(csi-107): added isIsoApi config; made messageFromRequestDto async

* feat(csi-107): added isFxRequest util

* feat(csi-107): added PAYLOAD_STORAGES; update messageFromRequestDto input format

* feat(csi-107): added payloadCache

* feat(csi-107): added payloadCache

* feat(csi-107): added context-field

* feat(csi-107): added HapiRawPayload plugin

* feat(csi-107): fixed audit:check

* feat(csi-107): added QS-iso, added int tests

* feat(csi-107): moved context inside content

* feat(csi-107): used dataUri to store originalPayload

* feat(csi-107): updated transformerLib; stored payload in kafka as object

* feat(csi-107): fixed int-tests; ignored some places for test coverage

* chore(snapshot): 15.8.0-snapshot.44

* feat(csi-107): updated transformLib

* feat(csi-107): added ISO openApi yaml

* feat(csi-107): added ISO openApi yaml

* feat(csi-107): added iso openApi yaml; added transformerLib

* feat(csi-107): skipped failed validation tests

* feat(csi-107): added isIsoApi config; made messageFromRequestDto async

* feat(csi-107): added isFxRequest util

* feat(csi-107): added PAYLOAD_STORAGES; update messageFromRequestDto input format

* feat(csi-107): added payloadCache

* feat(csi-107): added payloadCache

* feat(csi-107): added context-field

* feat(csi-107): added HapiRawPayload plugin

* feat(csi-107): fixed audit:check

* feat(csi-107): added QS-iso, added int tests

* feat(csi-107): moved context inside content

* feat(csi-107): used dataUri to store originalPayload

* feat(csi-107): updated transformerLib; stored payload in kafka as object

* feat(csi-107): fixed int-tests; ignored some places for test coverage

* feat(csi-107): updated transformLib

* chore(release): [ci skip] 15.9.0-iso.2

* feat(csi-107): added initPayloadCache; added payloadCache to QH (#360)

* feat(csi-107): added initPayloadCache; added payloadCache to QH

* feat(csi-107): added APY_TYPE support to QH

* feat(csi-107): fixed addOriginalPayload logic

* feat(csi-107): fixed ISO header for /quotes

* feat(csi-107): fixed ISO header for /quotes

* chore(release): [ci skip] 15.9.0-iso.3

* chore: continuous deployment

* chore(release): [ci skip] 15.9.0-iso.4

* build: test package.json version

* build: test package.json version

* chore(release): [ci skip] 15.9.0-iso.5

* feat(csi-107): fixed /fxQuotes payload transforming (#362)

* feat(csi-107): fixed /fxQuotes payload transforming

* feat(csi-107): skipped ISO e2e tests

* feat(csi-107): removed some todos

* chore(release): [ci skip] 15.9.0-iso.6

* fix(csi-107): fixed QSh iso callback (#364)

* chore(release): [ci skip] 15.9.0-iso.7

* feat(csi-107): refactor QSh to avoid using API_TYPE env var (#365)

* feat(csi-107): refactor QSh to avoid using API_TYPE env var

* feat(csi-107): refactor QSh to avoid using API_TYPE env var

* chore(snapshot): 15.9.0-snapshot.0

* feat(csi-107): refactor QSh to avoid using API_TYPE env var

* feat(csi-107): fixed ISO GET requests

* feat(csi-107): fixed ISO GET requests

* chore(release): [ci skip] 15.9.0-iso.8

* feat(csi-107): updated transformLib

* chore(release): [ci skip] 15.9.0-iso.9

* feat(csi-107): fixed PUT /fxQuotes/error ISO callback

* chore(release): [ci skip] 15.9.0-iso.10

* chore: update iso api spec and dependencies (#366)

* chore: update iso api spec and dependencies

* chore: coverage...oddly

* chore(release): [ci skip] 15.9.0-iso.11

* chore: update deps and api (#367)

* chore: update deps

* chore: update api

* chore(release): [ci skip] 15.9.0-iso.12

* feat: call rules during fx quote (#361)

* chore(release): [ci skip] 15.9.0-iso.13

* fix: pass proxyClient to _fetchParticipantInfo in fxQuotesModel

* chore: dependencies

* test: update expected history length in fxQuotes integration test

* chore(release): [ci skip] 15.9.0-iso.14

* chore: forward put error callbacks (#368)

* chore(release): [ci skip] 15.9.0-iso.15

* chore: use the central-services-metrics plugin (#369)

* chore(release): [ci skip] 15.9.0-iso.16

* chore: update dependencies

* chore(release): [ci skip] 15.9.0-iso.17

* chore: update dependencies

* chore(release): [ci skip] 15.9.0-iso.18

* feat(csi-927): used common loggingPlugin (#373)

* chore(release): [ci skip] 15.9.0-iso.19

* chore: standardize egress audit and un-stringify payload (#375)

* chore: standardize egress audit and un-stringify payload

* chore: address comments

* chore(release): [ci skip] 15.9.0-iso.20

* chore: use the central-services-metrics plugin

* chore(release): [ci skip] 15.9.0-iso.21

* feat: add error counters for metrics (#378)

* feat: add error counters for metrics

* feat: add error counters for metrics

* chore: tests

* chore: tests

* chore: more metrics

* chore: add steps

* chore: better metrics

* chore: coverage

* chore(release): [ci skip] 15.9.0-iso.22

* chore: refactor error metrics (#381)

* chore: refactor error metrics

* chore: refactor error metrics

* chore: refactor error metrics

* chore: operations

* chore: use lib

* chore: fix init

* chore: dep

* chore(release): [ci skip] 15.9.0-iso.23

* chore: minor/iso dependency updates pi26 (#377)

* chore(release): [ci skip] 15.9.0-iso-depdency-updates-pi26.0

* chore: update dependencies and create custom operators for json-rules-engine

* chore(release): [ci skip] 15.9.0-iso-depdency-updates-pi26.1

* chore: fix hoek vulnerability

fixed by removing unused good-console and good-squeeze which are deprecated as of 2020

* chore(release): [ci skip] 15.9.0-iso-depdency-updates-pi26.2

* chore(release): [ci skip] 15.9.0-iso-depdency-updates-pi26.3

* chore: sync versions in package json and lock

* chore: sync versions in package json and lock

* chore(release): [ci skip] 15.9.0-iso-depdency-updates-pi26.5

---------

Co-authored-by: mojaloopci <info@mojaloop.io>

* fix: monorepo (#382)

* chore: copilot suggestions

* chore: todos

* chore(release): [ci skip] 16.1.0-iso.0

* chore: comments

* chore(release): [ci skip] 16.1.0-iso.1

---------

Co-authored-by: Steven Oderayi <oderayi@gmail.com>
Co-authored-by: Kalin Krustev <kalin.krustev@gmail.com>
Co-authored-by: vijayg10 <33152110+vijayg10@users.noreply.github.com>
Co-authored-by: Eugen Klymniuk <keramet.kh@gmail.com>
Co-authored-by: geka.evk <geka.evk@gmail.com>
Co-authored-by: mojaloopci <info@mojaloop.io>
Co-authored-by: Juan Correa <gibaros@users.noreply.github.com>
kleyow added a commit that referenced this pull request Jan 21, 2025
* feat(mojaloop/#3689): fx quotes pov implementation (#326)

* chore(snapshot): 15.8.0-snapshot.11

* fix(mojaloop/#3689): fx quotes fixes (#328)

* fix(mojaloop/#3689): fx quotes bug fix (#329)

* feat: enable sending events directly to Kafka (#332)

* feat(mojaloop/#3933): update participant accounts validation (#333)

feat(mojaloop/#3933): update participant accounts validation
- Added validation for `supportedCurrencies` when present in `POST /quotes` request (payer DFSP must have position account for all supported currencies
- Added validation for `payeeReceiveAmount` currency when present (payee DFSP must have position account for the `payeeReceiveAmount` currency)
- Fixed error handling to prevent sending double error callbacks
- Ensure top-level tracing spans are finished correctly
- Updated integration tests harness to support new changes
- Added integration tests for the use case
- Updated dependencies and resolve audit issues

* add check for db on api, fix docker compose

* chore(snapshot): 15.8.0-snapshot.17

* disable coverage, fix image scan

* chore(snapshot): 15.8.0-snapshot.18

* disable coverage, fix image scan

* chore(snapshot): 15.8.0-snapshot.19

* image scan

* chore(snapshot): 15.8.0-snapshot.20

* revert

* chore(snapshot): 15.8.0-snapshot.21

* feat: allow UUID v7 in the API patterns (#334)

* feat(csi-20 & csi-164): parameterize 'switch' id (#339)

* fix: quotes participants validation (#340)

* fix: quotes validation

* chore(snapshot): 15.8.0-snapshot.22

* fix: integration test

* chore: await in promise all

* fix: lint

* chore(snapshot): 15.8.0-snapshot.23

* chore(snapshot): 15.8.0-snapshot.24

* feat(mojaloop/#3991): add support for cross-network proxy routing (#341)

feat(mojaloop/#3991): add support for cross-network proxy routing (#341)
- Added proxy lib
- Added configuration for proxy
- Added unit and integration tests for proxy related functionalities

* fix: deps

* chore(snapshot): 15.8.0-snapshot.32

* feat(csi-334): updated proxyCache lib to use redis cluster (#342)

* feat(csi-334): updated proxyCache lib to use redis cluster

* chore(snapshot): 15.8.0-snapshot.33

* fix(csi-414): fixed TypeError - Cannot read properties of undefined; updated proxyCache lib; added request logging (#344)

* feat(csi-334): updated proxyCache lib; added request logging

* fix(csi-414): fixed TypeError - Cannot read properties of undefined (reading 'value')

* fix(csi-414): updated deps

* chore(snapshot): 15.8.0-snapshot.34

* fix(csi-411): disable validation on proxied request (#346)

* disable validation

* disable validation

* unit tests

* int tests

* test

* remove

* update

* harden int tests

* fix

* update int tests for persistant mode

* fix unit

* fix(csi-498): generated accept/contentType headers based on requested resource; improved logging (#347)

* fix(csi-498): generated accept/contentType headers based on requested resource; improved logging

* fix(csi-498): updated deps

* chore(snapshot): 15.8.0-snapshot.35

* chore(snapshot): 15.8.0-snapshot.36

* fix(csi-498): generated accept/contentType headers based on requested resource; improved logging

* fix(csi-498): generated accept/contentType headers based on requested resource; improved logging

* feat(mojaloop/#3885): extend fxquote functionality to persistant mode (#348)

* database functions and model logic

* upgrade harness

* fix tests

* db unit test

* int tests

* lint

* fx quote error

* lint

* addressed comments

* comments

* feat(mojaloop/#3817): harden fx quotes (#345)

* fix(mojaloop/#3817): restore proxied source validation (#349)

* chore: renable coverage and improve coverage (#350)

* coverage

* improve coverage

* fix

* lint dep

* fix(csi-550): add logs to QuotesModel (#351)

* fix(csi-550): add logs to QuotesModel

* fix(csi-550): add logs to QuotesModel

* fix(csi-550): add logs to QuotesModel

* fix(csi-550): add logs to QuotesModel

* chore(snapshot): 15.8.0-snapshot.37

* fix(csi-550): added logs to QuotesModel.forwardQuoteRequest()

* chore(snapshot): 15.8.0-snapshot.38

* fix(csi-550): improved logs in QuotesModel

* chore(snapshot): 15.8.0-snapshot.39

* fix(csi-550): improved logs in QuotesModel for handleQuoteRequest

* chore(snapshot): 15.8.0-snapshot.40

* fix: await transaction commit and rollback and avoid unhandledPromise error (#354)

* feat: add ULID support (#355)

* fix: regex

* fix: merge conflict

* test: start using mojaloop/build orb (#358)

* chore: version

* chore(release): [ci skip] 15.9.0-iso.0

* chore: continuous deployment

* chore(release): [ci skip] 15.9.0-iso.1

* feat(csi-107): add iso-20022 support (#357)

* feat(csi-107): added ISO openApi yaml

* feat(csi-107): added ISO openApi yaml

* feat(csi-107): added iso openApi yaml; added transformerLib

* feat(csi-107): skipped failed validation tests

* feat(csi-107): added isIsoApi config; made messageFromRequestDto async

* feat(csi-107): added isFxRequest util

* feat(csi-107): added PAYLOAD_STORAGES; update messageFromRequestDto input format

* feat(csi-107): added payloadCache

* feat(csi-107): added payloadCache

* feat(csi-107): added context-field

* feat(csi-107): added HapiRawPayload plugin

* feat(csi-107): fixed audit:check

* feat(csi-107): added QS-iso, added int tests

* feat(csi-107): moved context inside content

* feat(csi-107): used dataUri to store originalPayload

* feat(csi-107): updated transformerLib; stored payload in kafka as object

* feat(csi-107): fixed int-tests; ignored some places for test coverage

* chore(snapshot): 15.8.0-snapshot.44

* feat(csi-107): updated transformLib

* feat(csi-107): added ISO openApi yaml

* feat(csi-107): added ISO openApi yaml

* feat(csi-107): added iso openApi yaml; added transformerLib

* feat(csi-107): skipped failed validation tests

* feat(csi-107): added isIsoApi config; made messageFromRequestDto async

* feat(csi-107): added isFxRequest util

* feat(csi-107): added PAYLOAD_STORAGES; update messageFromRequestDto input format

* feat(csi-107): added payloadCache

* feat(csi-107): added payloadCache

* feat(csi-107): added context-field

* feat(csi-107): added HapiRawPayload plugin

* feat(csi-107): fixed audit:check

* feat(csi-107): added QS-iso, added int tests

* feat(csi-107): moved context inside content

* feat(csi-107): used dataUri to store originalPayload

* feat(csi-107): updated transformerLib; stored payload in kafka as object

* feat(csi-107): fixed int-tests; ignored some places for test coverage

* feat(csi-107): updated transformLib

* chore(release): [ci skip] 15.9.0-iso.2

* feat(csi-107): added initPayloadCache; added payloadCache to QH (#360)

* feat(csi-107): added initPayloadCache; added payloadCache to QH

* feat(csi-107): added APY_TYPE support to QH

* feat(csi-107): fixed addOriginalPayload logic

* feat(csi-107): fixed ISO header for /quotes

* feat(csi-107): fixed ISO header for /quotes

* chore(release): [ci skip] 15.9.0-iso.3

* chore: continuous deployment

* chore(release): [ci skip] 15.9.0-iso.4

* build: test package.json version

* build: test package.json version

* chore(release): [ci skip] 15.9.0-iso.5

* feat(csi-107): fixed /fxQuotes payload transforming (#362)

* feat(csi-107): fixed /fxQuotes payload transforming

* feat(csi-107): skipped ISO e2e tests

* feat(csi-107): removed some todos

* chore(release): [ci skip] 15.9.0-iso.6

* fix(csi-107): fixed QSh iso callback (#364)

* chore(release): [ci skip] 15.9.0-iso.7

* feat(csi-107): refactor QSh to avoid using API_TYPE env var (#365)

* feat(csi-107): refactor QSh to avoid using API_TYPE env var

* feat(csi-107): refactor QSh to avoid using API_TYPE env var

* chore(snapshot): 15.9.0-snapshot.0

* feat(csi-107): refactor QSh to avoid using API_TYPE env var

* feat(csi-107): fixed ISO GET requests

* feat(csi-107): fixed ISO GET requests

* chore(release): [ci skip] 15.9.0-iso.8

* feat(csi-107): updated transformLib

* chore(release): [ci skip] 15.9.0-iso.9

* feat(csi-107): fixed PUT /fxQuotes/error ISO callback

* chore(release): [ci skip] 15.9.0-iso.10

* chore: update iso api spec and dependencies (#366)

* chore: update iso api spec and dependencies

* chore: coverage...oddly

* chore(release): [ci skip] 15.9.0-iso.11

* chore: update deps and api (#367)

* chore: update deps

* chore: update api

* chore(release): [ci skip] 15.9.0-iso.12

* feat: call rules during fx quote (#361)

* chore(release): [ci skip] 15.9.0-iso.13

* fix: pass proxyClient to _fetchParticipantInfo in fxQuotesModel

* chore: dependencies

* test: update expected history length in fxQuotes integration test

* chore(release): [ci skip] 15.9.0-iso.14

* chore: forward put error callbacks (#368)

* chore(release): [ci skip] 15.9.0-iso.15

* chore: use the central-services-metrics plugin (#369)

* chore(release): [ci skip] 15.9.0-iso.16

* chore: update dependencies

* chore(release): [ci skip] 15.9.0-iso.17

* chore: update dependencies

* chore(release): [ci skip] 15.9.0-iso.18

* feat(csi-927): used common loggingPlugin (#373)

* chore(release): [ci skip] 15.9.0-iso.19

* chore: standardize egress audit and un-stringify payload (#375)

* chore: standardize egress audit and un-stringify payload

* chore: address comments

* chore(release): [ci skip] 15.9.0-iso.20

* chore: use the central-services-metrics plugin

* chore(release): [ci skip] 15.9.0-iso.21

* feat: add error counters for metrics (#378)

* feat: add error counters for metrics

* feat: add error counters for metrics

* chore: tests

* chore: tests

* chore: more metrics

* chore: add steps

* chore: better metrics

* chore: coverage

* chore(release): [ci skip] 15.9.0-iso.22

* chore: refactor error metrics (#381)

* chore: refactor error metrics

* chore: refactor error metrics

* chore: refactor error metrics

* chore: operations

* chore: use lib

* chore: fix init

* chore: dep

* chore(release): [ci skip] 15.9.0-iso.23

* chore: minor/iso dependency updates pi26 (#377)

* chore(release): [ci skip] 15.9.0-iso-depdency-updates-pi26.0

* chore: update dependencies and create custom operators for json-rules-engine

* chore(release): [ci skip] 15.9.0-iso-depdency-updates-pi26.1

* chore: fix hoek vulnerability

fixed by removing unused good-console and good-squeeze which are deprecated as of 2020

* chore(release): [ci skip] 15.9.0-iso-depdency-updates-pi26.2

* chore(release): [ci skip] 15.9.0-iso-depdency-updates-pi26.3

* chore: sync versions in package json and lock

* chore: sync versions in package json and lock

* chore(release): [ci skip] 15.9.0-iso-depdency-updates-pi26.5

---------

Co-authored-by: mojaloopci <info@mojaloop.io>

* fix: monorepo (#382)

* chore: copilot suggestions

* chore: todos

* chore(release): [ci skip] 16.1.0-iso.0

* chore: licensing

---------

Co-authored-by: Steven Oderayi <oderayi@gmail.com>
Co-authored-by: Kalin Krustev <kalin.krustev@gmail.com>
Co-authored-by: vijayg10 <33152110+vijayg10@users.noreply.github.com>
Co-authored-by: Eugen Klymniuk <keramet.kh@gmail.com>
Co-authored-by: geka.evk <geka.evk@gmail.com>
Co-authored-by: mojaloopci <info@mojaloop.io>
Co-authored-by: Juan Correa <gibaros@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants