-
Notifications
You must be signed in to change notification settings - Fork 44
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
NONEVM-745 LogPoller db models #921
base: develop
Are you sure you want to change the base?
Conversation
I was thinking for this JIRA we would add a definition for |
Wow! It looks like you did a lot more work here than was necessary at present. That's great to see, although I'm a bit confused as to why this is all in this PR as opposed to separate PR's. It says NONEVM-745 in the title, but it looks like a combination of that, NONEVM-746, and some of NONEVM-744: https://smartcontract-it.atlassian.net/browse/NONEVM-744 NONEVM-746 (Implementation of the ORM) has been blocked on the db prod + unit testing PR's I'm working on. But it looks like you've managed to work around that for now? |
dbURL, ok := os.LookupEnv("CL_DATABASE_URL") | ||
require.True(t, ok, "CL_DATABASE_URL must be set") | ||
chainID := uuid.NewString() | ||
dbx := pg.NewSqlxDB(t, dbURL) |
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.
I'm really confused... I have a PR open to move NewSqlDB
and some other things over from chainlink
to chainlink-common
, but as far as I know it hasn't been merged yet. 🤔
I wonder if someone else moved it over already.
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.
Yes, it's not merged. I've used your PR as a dependency to unblock myself.
Could you add links in the description here and in smartcontractkit/chainlink#15171 to each other and any other PR's they depend on? |
Yeah, I had to do some additional work that exceeds the scope of the NONEVM-745 to ensure that we can actually read/write into defined models from the database. |
# Conflicts: # go.mod # go.sum # integration-tests/go.mod # integration-tests/go.sum
Quality Gate failedFailed conditions |
"fmt" | ||
"strings" | ||
"time" | ||
) |
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.
While reviewing @EasterTheBunny 's DSL Parsing PR, I noticed we're missing unit tests for the functions in this file. In evm we have a Test_QueryArgs
set of tests that runs through these in a query_test.go
file. Should we add something similar here?
Depends on: