From c8ab4ebbd7a3e13b027d3e95645a8e22017bc21f Mon Sep 17 00:00:00 2001 From: Mario Pino Date: Tue, 17 Dec 2019 03:30:47 +0100 Subject: [PATCH] Update proposals every new block (#3295) * Update proposals every 10 blocks * changelog * istanbul ignore next * Trigger CI * istanbul ignore next * Use loaded * Update snap * istanbul ignore next * Update single proposal page every new block * Job is done! * Comment * Remove comment * istanbul ignore next * Improve coverage * Update all proposal data * Simplify * Revert * Fix watcher func testing * Fix, cleanup, optimization * Update snap * Cleanup --- .../mario_3277-proposals-page-never-refreshes | 1 + src/components/governance/PageProposal.vue | 58 +++++- src/components/governance/PageProposals.vue | 46 ++++- .../governance/PageProposal.spec.js | 8 + .../__snapshots__/PageProposal.spec.js.snap | 192 +++++++++++++++++- .../__snapshots__/PageProposals.spec.js.snap | 11 +- 6 files changed, 293 insertions(+), 23 deletions(-) create mode 100644 changes/mario_3277-proposals-page-never-refreshes diff --git a/changes/mario_3277-proposals-page-never-refreshes b/changes/mario_3277-proposals-page-never-refreshes new file mode 100644 index 0000000000..abb977c839 --- /dev/null +++ b/changes/mario_3277-proposals-page-never-refreshes @@ -0,0 +1 @@ +[Fixed] [#3277](https://github.com/cosmos/lunie/issues/3277) Update proposals every 10 blocks @mariopino \ No newline at end of file diff --git a/src/components/governance/PageProposal.vue b/src/components/governance/PageProposal.vue index b586a292fe..5382c048ce 100644 --- a/src/components/governance/PageProposal.vue +++ b/src/components/governance/PageProposal.vue @@ -1,12 +1,6 @@