-
Notifications
You must be signed in to change notification settings - Fork 117
fix: missing denormalized data in logs #880
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
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
0bf168c
to
372faa7
Compare
@@ -21,7 +21,7 @@ do $$ | |||
|
|||
-- select the date where the "11-make-stateless" migration has been applied | |||
select tstamp into _date | |||
from _system.goose_db_version | |||
from goose_db_version |
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.
wouldn't this be already executed, as it's a pre-existing migration? Don't we need to create a new migration file for that?
Or is just a simple refacto to simplify a bit, in which case nevermind.
internal/storage/bucket/migrations/32-fix-log-data-for-reverted-transactions/up.sql
Show resolved
Hide resolved
where logs.id = data.log_id and | ||
logs.ledger = data.ledger; | ||
|
||
exit when not found; |
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.
worth adding a pg_notify when we exit too? (I assume this is a kind of log)
@@ -0,0 +1,6 @@ | |||
do $$ | |||
begin |
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 think it's the 1st time I see tests after migration. Nice!
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.
And it's the first project where I write them ^^
I see this is a hotfix; do we have docs somewhere on how we want to handle hotfixes? Like making sure it's commited to the main branch then merged into the release branch? |
No description provided.