Skip to content

Vdb 1226 median lift#149

Merged
yaoandrew merged 4 commits intostagingfrom
vdb-1226-median-lift
Apr 20, 2020
Merged

Vdb 1226 median lift#149
yaoandrew merged 4 commits intostagingfrom
vdb-1226-median-lift

Conversation

@yaoandrew
Copy link
Copy Markdown
Contributor

No description provided.

@yaoandrew yaoandrew force-pushed the vdb-1226-median-lift branch 3 times, most recently from d4ef552 to cf4d0cb Compare April 8, 2020 00:11
@yaoandrew yaoandrew force-pushed the vdb-1226-median-lift branch 4 times, most recently from caa31d7 to 239198d Compare April 10, 2020 02:41
Copy link
Copy Markdown
Contributor

@gslaughl gslaughl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Although it might be worth adding an integration test (despite the fact that it would be commented out), just so we can easily refer back to it later if we ever do find an event.

@yaoandrew yaoandrew force-pushed the vdb-1226-median-lift branch 2 times, most recently from 731c44f to 22aed83 Compare April 15, 2020 23:42
@yaoandrew yaoandrew requested a review from rmulhol April 15, 2020 23:45
@yaoandrew yaoandrew force-pushed the vdb-1226-median-lift branch from 22aed83 to 30fd141 Compare April 16, 2020 18:49
header, headerErr := persistHeader(db, blockNumber, blockChain)
Expect(headerErr).NotTo(HaveOccurred())

// TODO: fetch event from blockchain once one exists
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be a fan of marking this test as pending if we don't have an actual event to lookup from the chain, otherwise this is basically just reproducing the transformer test, right?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the main difference is that the transformer test doesn't interact with the DB at all-- it still passes even if there's no migration adding these events' table. Personally I'm indifferent whether we mark the whole test pending or have a 'partial' test like this one, just thought it was worth pointing out.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah good point 👍

for that matter this probably means we don't have tests that verify inserts work for all the integration tests that are currently pending 😱

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ha ha.. yeah, I think I'm going to make this pending since we may forget to update it when its not pending.

@yaoandrew yaoandrew force-pushed the vdb-1226-median-lift branch from 30fd141 to d7c815c Compare April 16, 2020 23:18
Copy link
Copy Markdown
Contributor

@rmulhol rmulhol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs migration timestamp bump after #169 was merged (and #170 incoming)

@yaoandrew yaoandrew force-pushed the vdb-1226-median-lift branch from d7c815c to bc4a994 Compare April 20, 2020 19:18
Copy link
Copy Markdown
Contributor

@rmulhol rmulhol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@yaoandrew yaoandrew merged commit 0af0d69 into staging Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants