-
Notifications
You must be signed in to change notification settings - Fork 54
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
Document Datatables
#164
Comments
We need also to improve the recipe documentation generator so that we can see which datatables a recipe produces. |
I haven't worked with data tables before so will definitely need some assistance from someone else to get a doc added and the markdown generator updated. Happy to clean up or write the doc if I get some more information, though. |
I started looking into this but it sounds like this feature is only half finished right now. If you make a recipe with a data table and run it locally, you can't actually access or see that table as other plugins haven't been updated. Furthermore, it sounds like testing for the data tables hasn't been fleshed out yet. I plan on waiting until those things are resolved before working on this issue. |
To save some of my notes for the future: When making a Data Table you'll need to:
Example Data Table Class: public class NameOfTable extends DataTable<NameOfTable.Row> {
public NameOfTale(Recipe recipe) {
super (recipe,
"Display name of table",
"A detailed description of the table."
)
}
@Value
public static class Row {
@Column(displayName = "Some name",
description = "Some description.")
String someColumn;
@Column(displayName = "A different display name",
description = "A different description.")
Long someOtherColumn;
}
} Questions:
|
related issue for the markdown generator: openrewrite/rewrite-recipe-markdown-generator#57 |
Adding a link here for folks already interested in data tables, as those have been documented for users of Moderne: Documentation of data tables for OpenRewrite will make sense as soon as we have support in each of the plugins for producing data tables as well, likely using the same format as used in the CLI: |
As data tables appear to be more of a moderne feature and there are no plans to update OpenRewrite recipe output to see and use data tables, I'm going to go ahead and close this issue. If that changes in the future, we can explore adding this to the docs. |
At this moment there are some important recipes that use datatables, which is an interesting structure to aggregate data in the Moderne platform.
There is no documentation yet about datatables, which should be a basic OpenRewrite concept.
The text was updated successfully, but these errors were encountered: