-
Notifications
You must be signed in to change notification settings - Fork 1
Refactor config #2
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
base: master
Are you sure you want to change the base?
Conversation
Be a bit more verbose in naming, to attempt to improve readability
pearsonryan
left a comment
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.
Looks good most just one description comment I have.
| "joinOn": [ | ||
| "joinTargetTable" | ||
| ] |
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.
I like this name a lot more.
| "targetTable": { | ||
| "description": "Target table.", | ||
| "destinationTable": { | ||
| "description": "Destination table where denormalized data will be stored.", |
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.
I think this makes much more sense to me. We have a table that joins to the targetTable and the denormalized data is put in a destinationTable if I have been reading this correctly.
| "$ref": "#/definitions/column" | ||
| }, | ||
| "default": null, | ||
| "description": "Columns to select from table.", |
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 may be a little confusing of a description here. Maybe something like "Columns to watch for changes. If null then all columns will be watched." just to let people know this field gets used when you only want denorm to pick up changes to specific columns.
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.
You might include the word "source" as well, as in "source table" or "source data."
| "destinationKeyExpr": { | ||
| "default": null, | ||
| "description": "SQL expressions for target key values.", | ||
| "description": "SQL expressions for this table's columns that make up the destination table's key columns ([this table name].[column name]).", |
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.
👏
| "description": "Name of table.", | ||
| "title": "Name", | ||
| "type": "string" | ||
| "description": "Columns. Must match columns from destinationQuery select (?)", |
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.
Reminder to remove the (?)
Be a bit more verbose in naming, to attempt to improve readability