generated from edenia/full-stack-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of github.com:edenia/eden-spend-explorer into fix/…
…add-missing-image-on-help-section-340
- Loading branch information
Showing
36 changed files
with
312 additions
and
394 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...grations/default/1671577379707_drop_view_public_percent_by_all_elections_incomes/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- Could not auto-generate a down migration. | ||
-- Please write an appropriate down migration for the SQL below: | ||
-- DROP VIEW "public"."percent_by_all_elections_incomes"; |
1 change: 1 addition & 0 deletions
1
...migrations/default/1671577379707_drop_view_public_percent_by_all_elections_incomes/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP VIEW "public"."percent_by_all_elections_incomes"; |
3 changes: 3 additions & 0 deletions
3
...a/migrations/default/1671577419197_drop_view_public_percent_by_delegates_incomes/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- Could not auto-generate a down migration. | ||
-- Please write an appropriate down migration for the SQL below: | ||
-- DROP VIEW "public"."percent_by_delegates_incomes"; |
1 change: 1 addition & 0 deletions
1
hasura/migrations/default/1671577419197_drop_view_public_percent_by_delegates_incomes/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP VIEW "public"."percent_by_delegates_incomes"; |
3 changes: 3 additions & 0 deletions
3
.../migrations/default/1671577459727_drop_view_public_percent_by_delegates_expenses/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- Could not auto-generate a down migration. | ||
-- Please write an appropriate down migration for the SQL below: | ||
-- DROP VIEW "public"."percent_by_delegates_expenses"; |
1 change: 1 addition & 0 deletions
1
...ra/migrations/default/1671577459727_drop_view_public_percent_by_delegates_expenses/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP VIEW "public"."percent_by_delegates_expenses"; |
3 changes: 3 additions & 0 deletions
3
hasura/migrations/default/1671577939532_run_sql_migration/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- Could not auto-generate a down migration. | ||
-- Please write an appropriate down migration for the SQL below: | ||
-- DROP VIEW "public"."historic_expenses"; |
1 change: 1 addition & 0 deletions
1
hasura/migrations/default/1671577939532_run_sql_migration/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP VIEW "public"."historic_expenses"; |
22 changes: 22 additions & 0 deletions
22
hasura/migrations/default/1671577947390_run_sql_migration/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
-- Could not auto-generate a down migration. | ||
-- Please write an appropriate down migration for the SQL below: | ||
-- CREATE OR REPLACE VIEW "public"."historic_expenses" AS | ||
-- SELECT historic_expenses.delegate_payer, | ||
-- historic_expenses.election, | ||
-- COALESCE(( SELECT sum(transaction_by_category_and_election.amount) AS sum | ||
-- FROM transaction_by_category_and_election | ||
-- WHERE (((transaction_by_category_and_election.category)::text = 'claimed'::text) AND ((transaction_by_category_and_election.delegate_payer)::text = (historic_expenses.delegate_payer)::text) AND ((transaction_by_category_and_election.type)::text = 'income'::text) AND (transaction_by_category_and_election.election = historic_expenses.election))), (0)::numeric) AS eos_claimed, | ||
-- COALESCE(( SELECT sum(transaction_by_category_and_election.amount) AS sum | ||
-- FROM transaction_by_category_and_election | ||
-- WHERE (((transaction_by_category_and_election.category)::text = 'unclaimed'::text) AND ((transaction_by_category_and_election.delegate_payer)::text = (historic_expenses.delegate_payer)::text) AND ((transaction_by_category_and_election.type)::text = 'income'::text) AND (transaction_by_category_and_election.election = historic_expenses.election))), (0)::numeric) AS eos_unclaimed, | ||
-- COALESCE(( SELECT sum(transaction_by_category_and_election.amount) AS sum | ||
-- FROM transaction_by_category_and_election | ||
-- WHERE (((transaction_by_category_and_election.category)::text != 'uncategorized'::text) AND ((transaction_by_category_and_election.delegate_payer)::text = (historic_expenses.delegate_payer)::text) AND ((transaction_by_category_and_election.type)::text = 'expense'::text) AND (transaction_by_category_and_election.election = historic_expenses.election))), (0)::numeric) AS eos_categorized, | ||
-- COALESCE(( SELECT sum(transaction_by_category_and_election.usd_total) AS sum | ||
-- FROM transaction_by_category_and_election | ||
-- WHERE (((transaction_by_category_and_election.category)::text != 'uncategorized'::text) AND ((transaction_by_category_and_election.delegate_payer)::text = (historic_expenses.delegate_payer)::text) AND ((transaction_by_category_and_election.type)::text = 'expense'::text) AND (transaction_by_category_and_election.election = historic_expenses.election))), (0)::numeric) AS usd_categorized, | ||
-- avg(historic_expenses.exchange_rate) AS exchange_rate | ||
-- FROM transaction_by_category_and_election historic_expenses | ||
-- WHERE ((historic_expenses.type)::text = 'expense'::text) | ||
-- GROUP BY historic_expenses.delegate_payer, historic_expenses.election, historic_expenses.type | ||
-- ORDER BY historic_expenses.election; |
20 changes: 20 additions & 0 deletions
20
hasura/migrations/default/1671577947390_run_sql_migration/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
CREATE OR REPLACE VIEW "public"."historic_expenses" AS | ||
SELECT historic_expenses.delegate_payer, | ||
historic_expenses.election, | ||
COALESCE(( SELECT sum(transaction_by_category_and_election.amount) AS sum | ||
FROM transaction_by_category_and_election | ||
WHERE (((transaction_by_category_and_election.category)::text = 'claimed'::text) AND ((transaction_by_category_and_election.delegate_payer)::text = (historic_expenses.delegate_payer)::text) AND ((transaction_by_category_and_election.type)::text = 'income'::text) AND (transaction_by_category_and_election.election = historic_expenses.election))), (0)::numeric) AS eos_claimed, | ||
COALESCE(( SELECT sum(transaction_by_category_and_election.amount) AS sum | ||
FROM transaction_by_category_and_election | ||
WHERE (((transaction_by_category_and_election.category)::text = 'unclaimed'::text) AND ((transaction_by_category_and_election.delegate_payer)::text = (historic_expenses.delegate_payer)::text) AND ((transaction_by_category_and_election.type)::text = 'income'::text) AND (transaction_by_category_and_election.election = historic_expenses.election))), (0)::numeric) AS eos_unclaimed, | ||
COALESCE(( SELECT sum(transaction_by_category_and_election.amount) AS sum | ||
FROM transaction_by_category_and_election | ||
WHERE (((transaction_by_category_and_election.category)::text != 'uncategorized'::text) AND ((transaction_by_category_and_election.delegate_payer)::text = (historic_expenses.delegate_payer)::text) AND ((transaction_by_category_and_election.type)::text = 'expense'::text) AND (transaction_by_category_and_election.election = historic_expenses.election))), (0)::numeric) AS eos_categorized, | ||
COALESCE(( SELECT sum(transaction_by_category_and_election.usd_total) AS sum | ||
FROM transaction_by_category_and_election | ||
WHERE (((transaction_by_category_and_election.category)::text != 'uncategorized'::text) AND ((transaction_by_category_and_election.delegate_payer)::text = (historic_expenses.delegate_payer)::text) AND ((transaction_by_category_and_election.type)::text = 'expense'::text) AND (transaction_by_category_and_election.election = historic_expenses.election))), (0)::numeric) AS usd_categorized, | ||
avg(historic_expenses.exchange_rate) AS exchange_rate | ||
FROM transaction_by_category_and_election historic_expenses | ||
WHERE ((historic_expenses.type)::text = 'expense'::text) | ||
GROUP BY historic_expenses.delegate_payer, historic_expenses.election, historic_expenses.type | ||
ORDER BY historic_expenses.election; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.