-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Functions: fixing S4 ORM #10596
Functions: fixing S4 ORM #10596
Conversation
I see that you haven't updated any README files. Would it make sense to do so? |
Running downstream job at https://github.com/smartcontractkit/operator-ui/actions/runs/6155009757 |
Running downstream job at https://github.com/smartcontractkit/operator-ui/actions/runs/6155023612 |
@@ -0,0 +1,7 @@ | |||
-- +goose Up |
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.
Use "s4" in the file name instead of "functions".
@@ -71,7 +71,7 @@ RETURNING id;`, o.tableName) | |||
if errors.Is(err, sql.ErrNoRows) { | |||
return ErrVersionTooLow | |||
} | |||
return nil | |||
return err |
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.
Is it possible to trigger as error here in a test? It looks like it should never happen now...
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.
It will be hard to trigger, e.g. close DB connection..
@@ -0,0 +1,7 @@ | |||
-- +goose Up | |||
|
|||
ALTER TABLE "s4".shared ALTER COLUMN version TYPE BIGINT; |
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.
Can you add (or modify) a test to actually save a version larger than INT?
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.
Added.
Running downstream job at https://github.com/smartcontractkit/operator-ui/actions/runs/6157416552 |
Running downstream job at https://github.com/smartcontractkit/operator-ui/actions/runs/6157425045 |
SonarQube Quality Gate |
No description provided.