cowprotocol / dune-bridge

Other
4 stars 3 forks source link

Referral Data #22

Closed bh2smith closed 2 years ago

bh2smith commented 2 years ago

This script has essentially already been reviewed as part of cow-dune in

https://github.com/cowprotocol/cow-dune/pull/16 and https://github.com/cowprotocol/cow-dune/pull/17

However, it is now being moved here so we can make it part of our kubernetes deployment. Which already contained the necessary pod orchestration.

Test Plan

This can be run with:

 python -m dune_api_scripts.update.user_retention

Although you will have to provide RETENTION_QUERY env var.

Volume Data.

I have manually copied retention.csv into the v10/ directory for testing. We will likely have to create v11 for this, but I am just experimenting at the moment.

retention.csv