-
Notifications
You must be signed in to change notification settings - Fork 0
Task/andrin/str 154 #14
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
….ExpectQuery it seems
…contact to match db and avoid confusion with many-to-many index tables
…i into task/andrin/str-154
…r transaction events in unit21
@@ -13,7 +22,7 @@ CREATE TABLE device ( | |||
type TEXT DEFAULT '', -- enum: to be defined at struct level in Go | |||
description TEXT DEFAULT '', | |||
fingerprint TEXT DEFAULT '', | |||
ip_addresses JSONB DEFAULT '[]'::JSONB, | |||
ip_addresses TEXT[] DEFAULT NULL, |
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.
This should be JSONB, since we are dealing with it as a string array at the Go level
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.
This is the change that @saito-sv and I discussed at some length. It is the 2nd change that will need to be made to all arrays.
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.
@auroter, we can discuss further in office hours.
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.
We need to use the zerolog package for logging but approving here.
Unit21 Integration layer is now complete.
To test:
Run
go test ./pkg/internal/unit21/
Go to https://sandbox2.unit21.com/
Confirm that a new entity, instrument, and transaction were all created at the time you ran the tests. Confirm that each are filled out to a reasonable level of completion. Only missing extraneous details we don't maintain.