5afe / safe-client-gateway

Gateway service for Safe apps that serves transaction data conforming with the UI of our mobile apps
MIT License
56 stars 87 forks source link

/v2/flush not flush redis db #1120

Closed suraneti closed 1 year ago

suraneti commented 1 year ago

Describe the bug I've debugged when a transaction has succeeded and cfg-web POST /v2/flush to cgw-web but the Redis db is still not flushed. This makes a UI never be updated and needs to manually flush with redis-cli.

To Reproduce Steps to reproduce the behavior:

127.0.0.1:6379> KEYS *
 1) "c_reqs_http://txs-web-service.safe-infrastructure.svc.cluster.local:8888/api/v1/safes/0xf67ac3aa86192bC6C4Be66c51051746d29a024F3/"
 2) "c_reqs_http://txs-web-service.safe-infrastructure.svc.cluster.local:8888/api/v1/safes/0xf67ac3aa86192bC6C4Be66c51051746d29a024F3/all-transactions/?&ordering=executionDate\n        &queued=false&executed=true"
 3) "c_reqs_http://txs-web-service.safe-infrastructure.svc.cluster.local:8888/api/v1/safes/0xf67ac3aa86192bC6C4Be66c51051746d29a024F3/transfers/?&erc721=true&limit=1"
 4) "c_reqs_http://txs-web-service.safe-infrastructure.svc.cluster.local:8888/api/v1/safes/0xf67ac3aa86192bC6C4Be66c51051746d29a024F3/creation/"
 5) "c_reqs_http://txs-web-service.safe-infrastructure.svc.cluster.local:8888/api/v1/safes/0xf67ac3aa86192bC6C4Be66c51051746d29a024F3/multisig-transactions/?&ordering=-modified&executed=false&trusted=true&limit=1"
 6) "c_resp_/v1/chains/17778/safes/0xf67ac3aa86192bC6C4Be66c51051746d29a024F3/transactions/history"
 7) "c_reqs_http://txs-web-service.safe-infrastructure.svc.cluster.local:8888/api/v1/about/master-copies/"
 8) "c_reqs_http://txs-web-service.safe-infrastructure.svc.cluster.local:8888/api/v2/safes/0xf67ac3aa86192bC6C4Be66c51051746d29a024F3/collectibles/?limit=20&offset=0&trusted=false&exclude_spam=true"
 9) "c_resp_/v1/chains/17778/safes/0xf67ac3aa86192bC6C4Be66c51051746d29a024F3"
10) "c_reqs_http://nginx-service:8000/cfg/api/v1/chains/?limit=20&offset=0"
11) "c_reqs_http://txs-web-service.safe-infrastructure.svc.cluster.local:8888/api/v1/safes/0xf67ac3aa86192bC6C4Be66c51051746d29a024F3/all-transactions/?limit=20&offset=0&queued=false&executed=true"
12) "c_reqs_http://txs-web-service.safe-infrastructure.svc.cluster.local:8888/api/v1/safes/0xf67ac3aa86192bC6C4Be66c51051746d29a024F3/multisig-transactions/?limit=21&offset=0&nonce__gte=1&ordering=nonce,submissionDate&trusted=true"
13) "c_resp_/v1/chains/17778/safes/0xf67ac3aa86192bC6C4Be66c51051746d29a024F3/transactions/queued"

Expected behavior Redis db should be flushed, a UI should be updated after a tx is completed.

Environment (please complete the following information):

suraneti commented 1 year ago

Issue solved, related to issues/94.