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(mojaloop/#4000): timeout handler #489

Merged
merged 123 commits into from
Aug 20, 2024
Merged

Conversation

oderayi
Copy link
Contributor

@oderayi oderayi commented Jul 24, 2024

No description provided.

geka-evk and others added 30 commits July 5, 2024 12:43
@oderayi oderayi requested a review from bushjames as a code owner July 31, 2024 09:56
@oderayi oderayi changed the title feat: timeout handler feat(mojaloop/#4000): timeout handler Jul 31, 2024
src/api/index.js Show resolved Hide resolved
src/domain/timeout/index.js Outdated Show resolved Hide resolved
src/lib/proxyCache.js Outdated Show resolved Hide resolved
src/handlers/register.js Outdated Show resolved Hide resolved
@oderayi oderayi requested review from vijayg10 and geka-evk August 5, 2024 08:27
@oderayi oderayi requested a review from geka-evk August 7, 2024 16:25
Copy link

sonarcloud bot commented Aug 20, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
30.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@oderayi oderayi merged commit 07b7382 into feat/csi-16 Aug 20, 2024
15 of 16 checks passed
geka-evk added a commit that referenced this pull request Aug 21, 2024
* fix(csi-241): fixed unit-tests

* fix(csi-241): fixed unit-tests

* fix(csi-241): fixed unit-tests

* fix(csi-241): fixed unit-tests

* feat(csi-16): refactoring - moved getPartiesByTypeAndID to a separate file

* ci: fix docker build

* feat(csi-263): implemented getPartiesByTypeAndID proxy changes (#485)

* feat(csi-263): implemented getPartiesByTypeAndID proxy changes

* feat(csi-263): implemented getPartiesByTypeAndID proxy changes

* feat(csi-263): update npm test:... scripts

* feat(csi-263): added networks to redis in d-c

* feat(csi-263): added proxyCache logic for success PUT /parties

* feat(csi-263): added proxyCache logic for error PUT /parties

* feat(csi-263): updated proxyConfig format

* feat(csi-263): added jest-unit.config.js

* feat(csi-215): updated test-harness version to use fx

* chore(snapshot): 15.4.0-snapshot.0

* chore(snapshot): 15.4.0-snapshot.1

* chore(snapshot): 15.4.0-snapshot.2

* chore(snapshot): 15.4.0-snapshot.3

* chore(snapshot): 15.4.0-snapshot.4

* chore(snapshot): 15.4.0-snapshot.5

* chore(snapshot): 15.4.0-snapshot.6

* chore(snapshot): 15.4.0-snapshot.7

* chore(snapshot): 15.4.0-snapshot.8

* chore(snapshot): 15.4.0-snapshot.9

* chore(snapshot): 15.4.0-snapshot.10

* chore(snapshot): 15.4.0-snapshot.11

* feat: make proxy routing optional & update health check (#486)

* chore(csi-16): updated central-services-shared version

* chore(snapshot): 15.4.0-snapshot.12

* chore(snapshot): 15.4.0-snapshot.13

* chore(snapshot): 15.4.0-snapshot.14

* chore(csi-16): inited proxies cache

* chore(snapshot): 15.4.0-snapshot.15

* chore(snapshot): 15.4.0-snapshot.16

* feat(csi-263): added proxy int-test from parties handler

* feat(csi-263): added proxy int-test from parties handler

* feat(csi-263): added --runInBand to unit tests

* feat(csi-16): proxyCacheTtlSec = 40

* chore(snapshot): 15.4.0-snapshot.17

* feat(csi-16): proxyCacheTtlSec = 40

* feat(csi-16): proxyCacheTtlSec = 40

* chore(snapshot): 15.4.0-snapshot.18

* Update docker/account-lookup-service/default.json

Co-authored-by: Steven Oderayi <oderayi@gmail.com>

* Update test/integration-config.json

Co-authored-by: Steven Oderayi <oderayi@gmail.com>

---------

Co-authored-by: Steven Oderayi <oderayi@gmail.com>

* feat(csi-334): e2e als-proxy flow validation (#487)

* feat(csi-263): implemented getPartiesByTypeAndID proxy changes

* feat(csi-263): implemented getPartiesByTypeAndID proxy changes

* feat(csi-263): update npm test:... scripts

* feat(csi-263): added networks to redis in d-c

* feat(csi-263): added proxyCache logic for success PUT /parties

* feat(csi-263): added proxyCache logic for error PUT /parties

* feat(csi-263): updated proxyConfig format

* feat(csi-263): added jest-unit.config.js

* feat(csi-215): updated test-harness version to use fx

* chore(snapshot): 15.4.0-snapshot.0

* chore(snapshot): 15.4.0-snapshot.1

* chore(snapshot): 15.4.0-snapshot.2

* chore(snapshot): 15.4.0-snapshot.3

* chore(snapshot): 15.4.0-snapshot.4

* chore(snapshot): 15.4.0-snapshot.5

* chore(snapshot): 15.4.0-snapshot.6

* chore(snapshot): 15.4.0-snapshot.7

* chore(snapshot): 15.4.0-snapshot.8

* chore(snapshot): 15.4.0-snapshot.9

* chore(snapshot): 15.4.0-snapshot.10

* chore(snapshot): 15.4.0-snapshot.11

* feat: make proxy routing optional & update health check (#486)

* chore(csi-16): updated central-services-shared version

* chore(snapshot): 15.4.0-snapshot.12

* chore(snapshot): 15.4.0-snapshot.13

* chore(snapshot): 15.4.0-snapshot.14

* chore(csi-16): inited proxies cache

* chore(snapshot): 15.4.0-snapshot.15

* chore(snapshot): 15.4.0-snapshot.16

* feat(csi-263): added proxy int-test from parties handler

* feat(csi-263): added proxy int-test from parties handler

* feat(csi-263): added --runInBand to unit tests

* feat(csi-16): proxyCacheTtlSec = 40

* chore(snapshot): 15.4.0-snapshot.17

* feat(csi-16): proxyCacheTtlSec = 40

* feat(csi-16): proxyCacheTtlSec = 40

* chore(snapshot): 15.4.0-snapshot.18

* Update docker/account-lookup-service/default.json

Co-authored-by: Steven Oderayi <oderayi@gmail.com>

* Update test/integration-config.json

Co-authored-by: Steven Oderayi <oderayi@gmail.com>

* feat(csi-334): added source to proxyCache for payee case

* chore(snapshot): 15.4.0-snapshot.19

* feat(csi-334): added axios-retry

* chore(snapshot): 15.4.0-snapshot.20

* fix(csi-321): fixed failed GP tests

* chore(snapshot): 15.4.0-snapshot.21

* fix(csi-321): fixed case of sendCallback to requester

* chore(snapshot): 15.4.0-snapshot.22

* fix(csi-321): added contextLogger

* fix(csi-334): add proxyLib with redis-cluster

* chore(snapshot): 15.4.0-snapshot.23

* fix(csi-334): add proxyLib with redis-cluster

* chore(snapshot): 15.4.0-snapshot.24

* fix(csi-334): fixed config

* chore(snapshot): 15.4.0-snapshot.25

* fix(csi-334): used new proxyLib

---------

Co-authored-by: Steven Oderayi <oderayi@gmail.com>

* fix(csi-334): switched to redis standalone; improved logging; added int-test

* fix(csi-334): improved logging

* chore(snapshot): 15.4.0-snapshot.26

* fix(csi-418): fixed oracle update logic; added tests (#490)

* fix(csi-418): fixed oracle update logic; added tests

* chore(snapshot): 15.4.0-snapshot.27

* fix(csi-418): fixed oracle update logic; added tests

* chore(snapshot): 15.4.0-snapshot.28

* feat: PROXY_MAP

* chore(snapshot): 15.4.0-snapshot.29

* feat(mojaloop/#4000): timeout handler (#489)

---------

Co-authored-by: Steven Oderayi <oderayi@gmail.com>
Co-authored-by: Kalin Krustev <kalin.krustev@gmail.com>
geka-evk added a commit that referenced this pull request Dec 11, 2024
* feat(csi-164): parameterize 'switch' id (#482)

* fix(csi-241): fixed unit-tests (#483)

* fix(csi-241): fixed unit-tests

* fix(csi-241): fixed unit-tests

* fix(csi-241): fixed unit-tests

* fix(csi-241): fixed unit-tests

* test: temporarily disable int test shutdown

* fix: update parameters for sendRequest and update tests

* chore: update deps, re-enable int test shutdown

---------

Co-authored-by: Steven Oderayi <oderayi@gmail.com>

* chore(snapshot): 15.4.0-snapshot.0

* chore(snapshot): 15.4.0-snapshot.1

* chore(snapshot): 15.4.0-snapshot.2

* chore(snapshot): 15.4.0-snapshot.3

* chore(snapshot): 15.4.0-snapshot.4

* chore(snapshot): 15.4.0-snapshot.5

* chore(snapshot): 15.4.0-snapshot.6

* chore(snapshot): 15.4.0-snapshot.7

* chore(snapshot): 15.4.0-snapshot.8

* chore(snapshot): 15.4.0-snapshot.9

* chore(snapshot): 15.4.0-snapshot.10

* chore(snapshot): 15.4.0-snapshot.11

* chore(snapshot): 15.4.0-snapshot.12

* chore(csi-16): updated deps

* chore(snapshot): 15.4.0-snapshot.13

* feat(csi-16): added proxy caching logic (#484)

* fix(csi-241): fixed unit-tests

* fix(csi-241): fixed unit-tests

* fix(csi-241): fixed unit-tests

* fix(csi-241): fixed unit-tests

* feat(csi-16): refactoring - moved getPartiesByTypeAndID to a separate file

* ci: fix docker build

* feat(csi-263): implemented getPartiesByTypeAndID proxy changes (#485)

* feat(csi-263): implemented getPartiesByTypeAndID proxy changes

* feat(csi-263): implemented getPartiesByTypeAndID proxy changes

* feat(csi-263): update npm test:... scripts

* feat(csi-263): added networks to redis in d-c

* feat(csi-263): added proxyCache logic for success PUT /parties

* feat(csi-263): added proxyCache logic for error PUT /parties

* feat(csi-263): updated proxyConfig format

* feat(csi-263): added jest-unit.config.js

* feat(csi-215): updated test-harness version to use fx

* chore(snapshot): 15.4.0-snapshot.0

* chore(snapshot): 15.4.0-snapshot.1

* chore(snapshot): 15.4.0-snapshot.2

* chore(snapshot): 15.4.0-snapshot.3

* chore(snapshot): 15.4.0-snapshot.4

* chore(snapshot): 15.4.0-snapshot.5

* chore(snapshot): 15.4.0-snapshot.6

* chore(snapshot): 15.4.0-snapshot.7

* chore(snapshot): 15.4.0-snapshot.8

* chore(snapshot): 15.4.0-snapshot.9

* chore(snapshot): 15.4.0-snapshot.10

* chore(snapshot): 15.4.0-snapshot.11

* feat: make proxy routing optional & update health check (#486)

* chore(csi-16): updated central-services-shared version

* chore(snapshot): 15.4.0-snapshot.12

* chore(snapshot): 15.4.0-snapshot.13

* chore(snapshot): 15.4.0-snapshot.14

* chore(csi-16): inited proxies cache

* chore(snapshot): 15.4.0-snapshot.15

* chore(snapshot): 15.4.0-snapshot.16

* feat(csi-263): added proxy int-test from parties handler

* feat(csi-263): added proxy int-test from parties handler

* feat(csi-263): added --runInBand to unit tests

* feat(csi-16): proxyCacheTtlSec = 40

* chore(snapshot): 15.4.0-snapshot.17

* feat(csi-16): proxyCacheTtlSec = 40

* feat(csi-16): proxyCacheTtlSec = 40

* chore(snapshot): 15.4.0-snapshot.18

* Update docker/account-lookup-service/default.json

Co-authored-by: Steven Oderayi <oderayi@gmail.com>

* Update test/integration-config.json

Co-authored-by: Steven Oderayi <oderayi@gmail.com>

---------

Co-authored-by: Steven Oderayi <oderayi@gmail.com>

* feat(csi-334): e2e als-proxy flow validation (#487)

* feat(csi-263): implemented getPartiesByTypeAndID proxy changes

* feat(csi-263): implemented getPartiesByTypeAndID proxy changes

* feat(csi-263): update npm test:... scripts

* feat(csi-263): added networks to redis in d-c

* feat(csi-263): added proxyCache logic for success PUT /parties

* feat(csi-263): added proxyCache logic for error PUT /parties

* feat(csi-263): updated proxyConfig format

* feat(csi-263): added jest-unit.config.js

* feat(csi-215): updated test-harness version to use fx

* chore(snapshot): 15.4.0-snapshot.0

* chore(snapshot): 15.4.0-snapshot.1

* chore(snapshot): 15.4.0-snapshot.2

* chore(snapshot): 15.4.0-snapshot.3

* chore(snapshot): 15.4.0-snapshot.4

* chore(snapshot): 15.4.0-snapshot.5

* chore(snapshot): 15.4.0-snapshot.6

* chore(snapshot): 15.4.0-snapshot.7

* chore(snapshot): 15.4.0-snapshot.8

* chore(snapshot): 15.4.0-snapshot.9

* chore(snapshot): 15.4.0-snapshot.10

* chore(snapshot): 15.4.0-snapshot.11

* feat: make proxy routing optional & update health check (#486)

* chore(csi-16): updated central-services-shared version

* chore(snapshot): 15.4.0-snapshot.12

* chore(snapshot): 15.4.0-snapshot.13

* chore(snapshot): 15.4.0-snapshot.14

* chore(csi-16): inited proxies cache

* chore(snapshot): 15.4.0-snapshot.15

* chore(snapshot): 15.4.0-snapshot.16

* feat(csi-263): added proxy int-test from parties handler

* feat(csi-263): added proxy int-test from parties handler

* feat(csi-263): added --runInBand to unit tests

* feat(csi-16): proxyCacheTtlSec = 40

* chore(snapshot): 15.4.0-snapshot.17

* feat(csi-16): proxyCacheTtlSec = 40

* feat(csi-16): proxyCacheTtlSec = 40

* chore(snapshot): 15.4.0-snapshot.18

* Update docker/account-lookup-service/default.json

Co-authored-by: Steven Oderayi <oderayi@gmail.com>

* Update test/integration-config.json

Co-authored-by: Steven Oderayi <oderayi@gmail.com>

* feat(csi-334): added source to proxyCache for payee case

* chore(snapshot): 15.4.0-snapshot.19

* feat(csi-334): added axios-retry

* chore(snapshot): 15.4.0-snapshot.20

* fix(csi-321): fixed failed GP tests

* chore(snapshot): 15.4.0-snapshot.21

* fix(csi-321): fixed case of sendCallback to requester

* chore(snapshot): 15.4.0-snapshot.22

* fix(csi-321): added contextLogger

* fix(csi-334): add proxyLib with redis-cluster

* chore(snapshot): 15.4.0-snapshot.23

* fix(csi-334): add proxyLib with redis-cluster

* chore(snapshot): 15.4.0-snapshot.24

* fix(csi-334): fixed config

* chore(snapshot): 15.4.0-snapshot.25

* fix(csi-334): used new proxyLib

---------

Co-authored-by: Steven Oderayi <oderayi@gmail.com>

* fix(csi-334): switched to redis standalone; improved logging; added int-test

* fix(csi-334): improved logging

* chore(snapshot): 15.4.0-snapshot.26

* fix(csi-418): fixed oracle update logic; added tests (#490)

* fix(csi-418): fixed oracle update logic; added tests

* chore(snapshot): 15.4.0-snapshot.27

* fix(csi-418): fixed oracle update logic; added tests

* chore(snapshot): 15.4.0-snapshot.28

* feat: PROXY_MAP

* chore(snapshot): 15.4.0-snapshot.29

* feat(mojaloop/#4000): timeout handler (#489)

---------

Co-authored-by: Steven Oderayi <oderayi@gmail.com>
Co-authored-by: Kalin Krustev <kalin.krustev@gmail.com>

* chore: deps

* chore(snapshot): 15.4.0-snapshot.32

* chore(snapshot): 15.4.0-snapshot.33

* chore(snapshot): 15.4.0-snapshot.34

* fix: jws signing (#497)

* fix: config

* chore(snapshot): 15.4.0-snapshot.35

* fix: github-advanced-security alerts

* chore: addressed PR comments

* chore: added audit:check to pre-commit

* chore: added docs/Proxy

* chore: added Timeout flow docs

* Update docs/Proxy/P2P.md

Co-authored-by: Sam <10507686+elnyry-sam-k@users.noreply.github.com>

* chore: updated license

---------

Co-authored-by: Steven Oderayi <oderayi@gmail.com>
Co-authored-by: Eugen Klymniuk <keramet.kh@gmail.com>
Co-authored-by: geka.evk <geka.evk@gmail.com>
Co-authored-by: Kalin Krustev <kalin.krustev@gmail.com>
Co-authored-by: Sam <10507686+elnyry-sam-k@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.

3 participants