From cedc1680b19714fa4e1fa104b2fd56588d9341d4 Mon Sep 17 00:00:00 2001 From: Stefano Cunego <93382903+kukkok3@users.noreply.github.com> Date: Thu, 2 Nov 2023 21:17:38 +0100 Subject: [PATCH] feat: Update fund11 event db data | NPG-000 (#612) --- containers/event-db-migrations/Earthfile | 2 +- ...tfund_event.sql => 00001_fund11_event.sql} | 34 +++++++++---------- ...ale_params.sql => 00002_fund11_params.sql} | 29 ++++++++-------- 3 files changed, 32 insertions(+), 33 deletions(-) rename src/event-db/stage_data/dev/{00001_testfund_event.sql => 00001_fund11_event.sql} (57%) rename src/event-db/stage_data/dev/{00002_testfund_ideascale_params.sql => 00002_fund11_params.sql} (64%) diff --git a/containers/event-db-migrations/Earthfile b/containers/event-db-migrations/Earthfile index 3c8a13d300..09aaabe6d5 100644 --- a/containers/event-db-migrations/Earthfile +++ b/containers/event-db-migrations/Earthfile @@ -43,11 +43,11 @@ publish: COPY --dir ../../src/event-db+build/migrations ./migrations IF [ "$data" = "historic" ] COPY --dir ../../src/event-db+build/historic_data ./historic_data + COPY ../../src/event-db+build/stage_data ./stage_data ELSE IF [ "$data" = "test" ] COPY --dir ../../src/event-db+build/test_data ./test_data END COPY ../../src/event-db+build/refinery.toml . - COPY ../../src/event-db+build/stage_data ./stage_data VOLUME /eventdb/tmp COPY ./entry.sh . diff --git a/src/event-db/stage_data/dev/00001_testfund_event.sql b/src/event-db/stage_data/dev/00001_fund11_event.sql similarity index 57% rename from src/event-db/stage_data/dev/00001_testfund_event.sql rename to src/event-db/stage_data/dev/00001_fund11_event.sql index 17e365b4f4..84bfb584f9 100644 --- a/src/event-db/stage_data/dev/00001_testfund_event.sql +++ b/src/event-db/stage_data/dev/00001_fund11_event.sql @@ -1,4 +1,4 @@ --- F10 +-- F11 INSERT INTO event ( row_id, name, @@ -26,25 +26,25 @@ INSERT INTO event ( extra, cast_to ) VALUES ( - 0, - 'Test Fund', - 'Catalyst Dev Environment - Test Fund', - '1970-01-01 00:00:00', -- Registration Snapshot Time - '1970-01-01 00:00:00', -- Snapshot Start. + 11, + 'Fund 11', + 'Catalyst Testnet - Fund 11', + '2023-11-01 21:00:00', -- Registration Snapshot Time + '2023-11-01 22:00:00', -- Snapshot Start. 450000000, -- Voting Power Threshold 1, -- Max Voting Power PCT NULL, -- Review Rewards - '1970-01-01 00:00:00', -- Start Time - '1970-01-01 00:00:00', -- End Time - '1970-01-01 00:00:00', -- Insight Sharing Start - '1970-01-01 00:00:00', -- Proposal Submission Start - '1970-01-01 00:00:00', -- Refine Proposals Start - '1970-01-01 00:00:00', -- Finalize Proposals Start - '1970-01-01 00:00:00', -- Proposal Assessment Start - '1970-01-01 00:00:00', -- Assessment QA Start - '1970-01-01 00:00:00', -- Voting Starts - '1970-01-01 00:00:00', -- Voting Ends - '1970-01-01 00:00:00', -- Tallying Ends + '2023-06-16 19:56:00', -- Start Time + '2023-09-18 00:00:00', -- End Time + '2023-06-22 00:00:00', -- Insight Sharing Start + '2023-06-22 00:00:00', -- Proposal Submission Start + '2023-06-22 00:00:00', -- Refine Proposals Start + '2023-07-13 00:00:00', -- Finalize Proposals Start + '2023-07-20 00:00:00', -- Proposal Assessment Start + '2023-08-10 00:00:00', -- Assessment QA Start + '2023-11-02 11:00:00', -- Voting Starts + '2023-11-07 11:00:00', -- Voting Ends + '2023-11-18 11:00:00', -- Tallying Ends NULL, -- Block 0 Data NULL, -- Block 0 Hash 1, -- Committee Size diff --git a/src/event-db/stage_data/dev/00002_testfund_ideascale_params.sql b/src/event-db/stage_data/dev/00002_fund11_params.sql similarity index 64% rename from src/event-db/stage_data/dev/00002_testfund_ideascale_params.sql rename to src/event-db/stage_data/dev/00002_fund11_params.sql index 01e91d6a72..3f0b9e9113 100644 --- a/src/event-db/stage_data/dev/00002_testfund_ideascale_params.sql +++ b/src/event-db/stage_data/dev/00002_fund11_params.sql @@ -1,20 +1,19 @@ --- Define F10 IdeaScale parameters. +-- Define F11 IdeaScale parameters. INSERT INTO config (id, id2, id3, value) VALUES ( 'ideascale', - '0', + '11', '', - '{ - "group_id": 37429, - "review_stage_ids": [171], - "nr_allocations": [1, 1], - "campaign_group_id": 88, + '{ + "group_id": 31051, + "review_stage_ids": [143, 145], + "nr_allocations": [30, 80], + "campaign_group_id": 63, "questions": { - "Question 1": "Impact / Alignment", - "Question 2": "Feasibility", - "Question 3": "Auditability" + "You are reviewing the positive IMPACT this project will have on the Cardano Ecosystem.\nHas this project clearly demonstrated in all aspects of the proposal that it will have a positive impact on the Cardano Ecosystem?": "Impact / Alignment", + "You are reviewing the FEASIBILITY of this project.\nIs this project feasible based on the proposal submitted? Does the plan and associated budget and milestones look achievable? Does the team have the skills, experience, capability and capacity to complete the project successfully?": "Feasibility", + "You are reviewing the VALUE FOR MONEY this represents for the Treasury and the Community\nIs the funding amount requested for this project reasonable and does it provide good Value for Money to the Treasury?": "Auditability" }, - "stage_ids": [4684, 4685, 4686], - "anonymize_start_id": 5000, + "stage_ids": [4590, 4596, 4602, 4608, 4614, 4620, 4626, 4632, 4638, 4644, 4650, 4656, 4662, 4591, 4597, 4603, 4609, 4615, 4621, 4627, 4633, 4639, 4645, 4651, 4657, 4663, 4592, 4598, 4604, 4610, 4616, 4622, 4628, 4634, 4640, 4646, 4652, 4658, 4664], "proposals": { "field_mappings": { "proposer_url": ["relevant_link_1", "website__github_repository__or_any_other_relevant_link__", "relevant_link_3"], @@ -51,10 +50,10 @@ INSERT INTO config (id, id2, id3, value) VALUES ( }' ); --- Use F10 params for event with row_id = 10. +-- Use F11 params for event with row_id = 11. INSERT INTO config (id, id2, id3, value) VALUES ( 'event', 'ideascale_params', - '0', - '{"params_id": "TestFund"}' + '11', + '{"params_id": "F11"}' );