-
Notifications
You must be signed in to change notification settings - Fork 96
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
revert the druid name and add it to fact name in slices endpoint #541
Conversation
0241854
to
33a72a8
Compare
33a72a8
to
2e21a8a
Compare
CHANGELOG.md
Outdated
@@ -168,6 +168,9 @@ Current | |||
|
|||
### Removed: | |||
|
|||
- [Reverted the druid name change in slices endpoint instead added to factName](https://github.com/yahoo/fili/pull/541) | |||
* Reverting this PR #491 so that the name still points to apiName and added factName which points to druidName. |
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.
Adding link to #491
makes it better
In addition, it makes more sense to talk about the reason for this roll back as well as factName
@@ -179,7 +179,8 @@ protected SlicesApiRequest() { | |||
Column key = e.getKey(); | |||
if (key instanceof DimensionColumn) { | |||
Dimension dimension = ((DimensionColumn) key).getDimension(); | |||
row.put("name", table.getPhysicalColumnName(dimension.getApiName())); | |||
row.put("name", dimension.getApiName()); | |||
row.put("factName", table.getPhysicalColumnName(dimension.getApiName())); |
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.
dimension.getApiName()
to a variable since it's used twice
if (it.key instanceof DimensionColumn) { | ||
row["uri"] = uri + it.key.name | ||
row["factName"] = table.getPhysicalColumnName(it.key.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.
Just curious, why are we putting this inside a conditional?
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.
Because factName
was valid only for dimension rows
2e21a8a
to
6645068
Compare
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.
Typo. Otherwise, looks good to me
CHANGELOG.md
Outdated
@@ -172,7 +172,9 @@ Current | |||
### Removed: | |||
|
|||
- [Reverted the druid name change in slices endpoint instead added to factName](https://github.com/yahoo/fili/pull/541) | |||
* Reverting this PR #491 so that the name still points to apiName and added factName which points to druidName. | |||
* Reverting the PR-419(https://github.com/yahoo/fili/pull/419) so that the name still points to apiName and added factName which points to druidName. | |||
`name` was not valid for cases when its a Lookup dimension because it was pointing to the base dimension name , so reverted that change and added |
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.
its -> it is
6645068
to
06bfa3d
Compare
Reverting this PR #491 so that the
name
still points toapiName
and addedfactName
which points todruidName