Skip to content

(VDB-1080) Add Spot file par transformer#62

Merged
rmulhol merged 1 commit intostagingfrom
vdb-1080-spot-file-par
Dec 16, 2019
Merged

(VDB-1080) Add Spot file par transformer#62
rmulhol merged 1 commit intostagingfrom
vdb-1080-spot-file-par

Conversation

@rmulhol
Copy link
Copy Markdown
Contributor

@rmulhol rmulhol commented Dec 12, 2019

No description provided.

(
id SERIAL PRIMARY KEY,
header_id INTEGER NOT NULL REFERENCES headers (id) ON DELETE CASCADE,
log_id BIGINT NOT NULL REFERENCES header_sync_logs (id) ON DELETE CASCADE,
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.

Postgraphile basically asks for an index on every FK. So if we want to indulge it, we'll need one on log_id.

google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
gopkg.in/bsm/ratelimit.v1 v1.0.0-20160220154919-db14e161995a/go.mod h1:KF9sEfUPAXdG8Oev9e99iLGnl2uJMjc5B+4y3O7x610=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
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'm kind of weirded out by how erratic our dependencies are all of a sudden 🤔


var EventTransformerInitializer transformer.EventTransformerInitializer = event.Transformer{
Config: shared.GetEventTransformerConfig(constants.SpotFileParTable, constants.SpotFileParSignature()),
Converter: &par.Converter{},
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.

Are we moving away from using pointers here? Tbh I don't know why we'd use one or the other in this instance, just thinking about consistency

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 good catch - I think we should trend toward only using them when we have a good reason, like needing to modify the internal state of the struct. Will remove here since we pass the db connection as an arg to the function (rather than calling SetDB on the converter)

@rmulhol rmulhol force-pushed the vdb-1080-spot-file-par branch from a7af01a to c078221 Compare December 16, 2019 16:11
Copy link
Copy Markdown
Contributor

@elizabethengelman elizabethengelman left a comment

Choose a reason for hiding this comment

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

🦄

@rmulhol rmulhol merged commit 9458eed into staging Dec 16, 2019
@rmulhol rmulhol deleted the vdb-1080-spot-file-par branch December 16, 2019 16:55
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