Skip to content
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

Repo #3

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Repo #3

wants to merge 5 commits into from

Conversation

crazybarber
Copy link
Owner

No description provided.

@crazybarber crazybarber requested a review from savoc May 30, 2019 20:57
@crazybarber crazybarber changed the title initial prototype Repo Jun 3, 2019
@@ -11,18 +11,22 @@ const (
Decommisioned // Removed from PROD
)

type ImplementationStatusDictionary struct {
Id ImplementationStatus `sql:",pk"`
Status string // Arbitrary name/tag for the source system
Copy link
Collaborator

Choose a reason for hiding this comment

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

source system? not status'?

SourceSystem *SourceSystem
}

// Definition of a field/attribute within the wide-row structure.
// This structure represents the canonical definition of the field.
type Field struct {
Id uint64 `json:"-"`
Name string `sql:",unique"` // The name of a field according to the wide-row design
Name string `sql:",pk"` // The name of a field according to the wide-row design
Copy link
Collaborator

Choose a reason for hiding this comment

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

How are you going to distinguish between 2 fields with the same name - the first one being a 'top level' field and the the other one being nested somewhere? Will Name contain the entire field path so field_A and field_B.field_A will end up having different Names?

GetEventTypes() ([]model.EventType, error)
GetFields() ([]model.Field, error)
GetEventTypeImplementations(sourceSystemName string) ([]model.EventTypeImplementation, error)
GetFieldImplementations(sourceSystemName string, fieldName string) ([]model.FieldImplementation, error)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should it really be taking sourceSystemName? fieldImplementation is already connecting a sourceSystem with a field so if you provide both sourceSystemName and fieldName to this function you'll end up with either 0 or 1 FieldImplementations.

Edit: OK, my bad - I didn't notice the EventTypeName in fieldImplementation... maybe because I'm not convinced that it's a good idea to have it there in the first place.

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