-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove dagcargo materialized views #735
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
c5568c9
fix: remove dagcargo materialized views
vasco-santos 42c6500
fix: not need cargo credentials for testing
vasco-santos d2c030b
fix: add grant
vasco-santos 964f574
fix: remove testing option
vasco-santos ba4ec12
chore: apply suggestions from code review
vasco-santos f4744a0
chore: address review
vasco-santos f84e3ab
Merge branch 'fix/remove-dagcargo-materialized-views' of github.com:w…
vasco-santos 5bd1ad3
chore: address review
vasco-santos b7bed2c
chore: apply suggestions from code review
vasco-santos f2cd333
fix: remove current user specific mapping
vasco-santos e26d0c7
chore: apply suggestions from code review
vasco-santos 4174427
fix: add cargo flag to test script
vasco-santos 62aade2
chore: apply suggestions from code review
vasco-santos d06968c
fix: create cargo testing
vasco-santos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -25,12 +25,6 @@ PG_REST_JWT=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoicG9zdGdyZXMifQ.oM0S | |
|
||
# Connection string for locally running postgres used in tests | ||
PG_CONNECTION=postgres://postgres:[email protected]:5432/postgres | ||
|
||
# Read-only `dagcargo` credentials for "foreign data wrapper" (fdw) in tests | ||
DAG_CARGO_HOST=<get from password vault - dagcargo replica> | ||
DAG_CARGO_USER=<get from password vault - dagcargo replica> | ||
DAG_CARGO_PASSWORD=<get from password vault - dagcargo replica> | ||
DAG_CARGO_DATABASE=<get from password vault - dagcargo replica> | ||
``` | ||
|
||
Production vars are set in Github Actions secrets. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
CREATE SCHEMA IF NOT EXISTS cargo; | ||
|
||
CREATE TABLE IF NOT EXISTS cargo.aggregate_entries ( | ||
aggregate_cid TEXT NOT NULL, | ||
cid_v1 TEXT NOT NULL, | ||
datamodel_selector TEXT NOT NULL | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS cargo.aggregates ( | ||
aggregate_cid TEXT NOT NULL UNIQUE, | ||
piece_cid TEXT UNIQUE NOT NULL, | ||
sha256hex TEXT NOT NULL, | ||
export_size BIGINT NOT NULL, | ||
metadata JSONB, | ||
entry_created TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW() | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS cargo.deals ( | ||
deal_id BIGINT UNIQUE NOT NULL, | ||
aggregate_cid TEXT NOT NULL, | ||
client TEXT NOT NULL, | ||
provider TEXT NOT NULL, | ||
status TEXT NOT NULL, | ||
status_meta TEXT, | ||
start_epoch INTEGER NOT NULL, | ||
start_time TIMESTAMP WITH TIME ZONE NOT NULL, | ||
end_epoch INTEGER NOT NULL, | ||
end_time TIMESTAMP WITH TIME ZONE NOT NULL, | ||
sector_start_epoch INTEGER, | ||
sector_start_time TIMESTAMP WITH TIME ZONE, | ||
entry_created TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), | ||
entry_last_updated TIMESTAMP WITH TIME ZONE NOT NULL | ||
); |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should keep the ability to setup non-testing version for running locally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so, use the flag testing instead of cargo.