-
Notifications
You must be signed in to change notification settings - Fork 122
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
Z columns doc to have different template. #257
Conversation
public String getColumnBaseContent (String col) { | ||
String message = "The field '" + col + "' is internally used by Zingg."; | ||
|
||
if (col.equals(ColName.CLUSTER_COLUMN)) { |
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 needs to go in the template, not in the java code
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.
Moved to Template in if else blocks.
@@ -26,6 +26,7 @@ public class ColumnDocumenter extends DocumenterBase { | |||
|
|||
private final String CSV_TEMPLATE = "stopWordsCSV.ftlh"; |
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.
One thing I seem to have missed in my earlier reviews - we should have column templates which include stop word templates. Then it much easier to keep stuff modular and extend etc as needed
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.
moved content in a separate template and included in the parent template
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.
a. z col list should just be columns that star with z_
b. StopWordDocumenter should be introduced and included in the ColumnDocumenter. All code and logic for StopWords should go in there. We can then add more documenters for columns. eg data quality.
b. Moved the StopWords stuff in a separate class |
It will be neater to have a check in the pattern for z columns instead of keeping a list |
Please also rebase this pr as there is a merge conflict |
We go for documentation with marked data as input. It includes field definition fields and only few z_columns. DONT_USE fields also excluded. |
the details for Z columns have been moved to its template
Merge branch 'main' of https://github.com/navinrathore/zingg-1 into zDocForZColumns
fae532e
to
218208d
Compare
resolved conflict. |
Z_COLUMN List removal will be studied and will be removed in due time. |
Zingg internal columns (Z columns) should have different template.