Skip to content

Add support for backfilling urns from fork events#193

Merged
rmulhol merged 2 commits intostagingfrom
backfill-urn-forks
May 26, 2020
Merged

Add support for backfilling urns from fork events#193
rmulhol merged 2 commits intostagingfrom
backfill-urn-forks

Conversation

@rmulhol
Copy link
Copy Markdown
Contributor

@rmulhol rmulhol commented May 21, 2020

No description provided.

@rmulhol rmulhol force-pushed the backfill-urn-forks branch from f4954f9 to e3a5c8b Compare May 21, 2020 23:50
- Get it from a dependency
- Compatibility for not exporting HeaderRepository implementation
"github.com/makerdao/vdb-mcd-transformers/transformers/test_data"
"github.com/makerdao/vulcanizedb/libraries/shared/factories/event"
"github.com/makerdao/vulcanizedb/pkg/core"
"github.com/makerdao/vulcanizedb/pkg/datastore"
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 made a note in sky-ecosystem/vulcanizedb#96 as well, but I'm not sure I understand the switch to importing datastore when we're also still importing repositories on the line below. Not a big deal, just wanted to understand what's going on! Also, super possible that I'm having "end of the day before a day off brain". ;p

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.

Yeah the idea is that for the type we import the interface from datastore and then when we initialize we use NewHeaderRepository from repositories, but the actual implementation of headerRepository in repositories is private

}
}

func (retriever dartDinkRetriever) RetrieveDartDinkDiffs(dartDink DartDink) error {
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.

This is kind of nitpicky, but RetrieveDartDinkDiff seems like the method will be returning DartDinkDiffs to me, instead of the inserting them. But I'm not sure how else to name this besides going back to FetchAndPersist.... Definitely not merge blocking though!

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.

Yeah, this was a major struggle for me. I'm honestly just not sure how to name this, but DartDinkFetchAndPersister is where I drew the line 😅

@rmulhol rmulhol merged commit 1f00532 into staging May 26, 2020
@rmulhol rmulhol deleted the backfill-urn-forks branch May 26, 2020 22:03
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.

2 participants