cog
cog copied to clipboard
Code Generation with a human touch
This issue is to track Java builders. The common pattern in Java is to have the builder inside the class, so you can access to the builder doing `MyClass.Builder().blah(...).build()`. An...
Maps were adding the import only for references and we weren't checking if a reference was an array. In this second case, we were setting values like `Matchers` and `ObjectMatchers`...
I was relying on this metadata to include the right schema into Grafonnet. This PR fetches the metadata in the main config.
When a dataquery is successfully identified by the `DataqueryIdentification` compiler pass, it should update the schema metadata to reflect that fact. Possible alternative to #398
It returns: ```java public PanelBuilder setShowLegend() { if (this.internal.options == null) { this.internal.options = new Options(); } if (this.internal.options.legend == null) { this.internal.options.legend = new HeatmapLegend(); } this.internal.options.legend.show = true;...
`NotificationPolicy.java` and `Rule.java` don't add some imports and looks like `NotificationPolicy` expects have some field objects that aren't generated.
Instead of relying on `./schemas/composable/prometheus` for Grafana versions >= v11, we need to find a schema published and maintained by Grafana itself. Schema removed by: https://github.com/grafana/grafana/pull/83808 Possible replacement? https://github.com/grafana/grafana/blob/main/pkg/promlib/models/query.request.schema.json This...
There is a lot of complexity shared across jennies/languages to work with defaults. We should look into how these can be better modeled and how we can simplify the work...
It's really easy to have inconsistent formatting for identifiers (type names, variables, classes, fields, ...) This processing is split across various places: different jennies and templates mainly. What about applying...
There is no schema for this panel type. It would be a useful addition to the foundation-sdk: we need to either produce a schema ourselves, or ask the relevant team...