In order to have useful test data we should replicate data from our main instance to some test instance (potentially on a different network)
Current ideas/plan
added June 1, 2021
Script to retrieve all existing data (except ERC20 ownership) from current network; write to local file and/or IPFS document
Script to create all contribution and contributor objects from backup anew (careful with IDs)
Contract addition: allow setting confirmedAtBlock dynamically when creating object, until migration done. Set boolean flag to disallow afterwards
In order to have useful test data we should replicate data from our main instance to some test instance (potentially on a different network)
### Current ideas/plan
*added June 1, 2021*
* [x] Script to retrieve all existing data (except ERC20 ownership) from current network; write to local file and/or IPFS document
* [x] Script to create all contribution and contributor objects from backup anew (careful with IDs)
* [x] Contract addition: allow setting `confirmedAtBlock` dynamically when creating object, until migration done. Set boolean flag to disallow afterwards
I was just wondering if there's a fairly easy way for me to mirror the current Rinkeby data to my local testnet. Then I had an idea: could this be a function that is only called when deploying the contracts/DAO? By this, I mean it wouldn't usually be allowed to e.g. create a contribution with a confirmed_at in the past, but I guess during contract deployment the function could actually do this by directly storing all data from a JSON dump or something, right?
I was just wondering if there's a fairly easy way for me to mirror the current Rinkeby data to my local testnet. Then I had an idea: could this be a function that is only called when deploying the contracts/DAO? By this, I mean it wouldn't usually be allowed to e.g. create a contribution with a `confirmed_at` in the past, but I guess during contract deployment the function could actually do this by directly storing all data from a JSON dump or something, right?
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
In order to have useful test data we should replicate data from our main instance to some test instance (potentially on a different network)
Current ideas/plan
added June 1, 2021
confirmedAtBlockdynamically when creating object, until migration done. Set boolean flag to disallow afterwardsI was just wondering if there's a fairly easy way for me to mirror the current Rinkeby data to my local testnet. Then I had an idea: could this be a function that is only called when deploying the contracts/DAO? By this, I mean it wouldn't usually be allowed to e.g. create a contribution with a
confirmed_atin the past, but I guess during contract deployment the function could actually do this by directly storing all data from a JSON dump or something, right?