diff --git a/BarChart/backend/bar.cue b/BarChart/schemas/bar.cue similarity index 100% rename from BarChart/backend/bar.cue rename to BarChart/schemas/bar.cue diff --git a/BarChart/backend/bar.json b/BarChart/schemas/bar.json similarity index 100% rename from BarChart/backend/bar.json rename to BarChart/schemas/bar.json diff --git a/BarChart/backend/migrate.cue b/BarChart/schemas/migrate.cue similarity index 100% rename from BarChart/backend/migrate.cue rename to BarChart/schemas/migrate.cue diff --git a/GaugeChart/backend/gauge.cue b/GaugeChart/schemas/gauge.cue similarity index 100% rename from GaugeChart/backend/gauge.cue rename to GaugeChart/schemas/gauge.cue diff --git a/GaugeChart/backend/gauge.json b/GaugeChart/schemas/gauge.json similarity index 100% rename from GaugeChart/backend/gauge.json rename to GaugeChart/schemas/gauge.json diff --git a/GaugeChart/backend/migrate.cue b/GaugeChart/schemas/migrate.cue similarity index 100% rename from GaugeChart/backend/migrate.cue rename to GaugeChart/schemas/migrate.cue diff --git a/MarkdownChart/backend/markdown.cue b/MarkdownChart/schemas/markdown.cue similarity index 100% rename from MarkdownChart/backend/markdown.cue rename to MarkdownChart/schemas/markdown.cue diff --git a/MarkdownChart/backend/markdown.json b/MarkdownChart/schemas/markdown.json similarity index 100% rename from MarkdownChart/backend/markdown.json rename to MarkdownChart/schemas/markdown.json diff --git a/MarkdownChart/backend/migrate.cue b/MarkdownChart/schemas/migrate.cue similarity index 100% rename from MarkdownChart/backend/migrate.cue rename to MarkdownChart/schemas/migrate.cue diff --git a/PieChart/backend/pie.cue b/PieChart/schemas/pie.cue similarity index 100% rename from PieChart/backend/pie.cue rename to PieChart/schemas/pie.cue diff --git a/PieChart/backend/pie.json b/PieChart/schemas/pie.json similarity index 100% rename from PieChart/backend/pie.json rename to PieChart/schemas/pie.json diff --git a/README.md b/README.md index 8ce5b45..ae20669 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,6 @@ This repository contains the core plugins for [Perses](https://github.com/perses ## Build locally -### Get backend schemas dependencies +### Get plugin schemas dependencies Most if not all the plugins schemas rely on the [`common` CUE package of the perses/perses repo](https://github.com/perses/perses/tree/main/cue/schemas/common). To be able to evaluate the CUE model of a given plugin locally, you thus need to make this package available as en external CUE dependency for it. In the future this is something where you'd just have to run `cue get` (in the same way as `go get` for Golang libs), but for now you have to rely on an utility we provide through percli: `percli plugin update`. diff --git a/ScatterChart/backend/scatter.cue b/ScatterChart/schemas/scatter.cue similarity index 100% rename from ScatterChart/backend/scatter.cue rename to ScatterChart/schemas/scatter.cue diff --git a/ScatterChart/backend/scatter.json b/ScatterChart/schemas/scatter.json similarity index 100% rename from ScatterChart/backend/scatter.json rename to ScatterChart/schemas/scatter.json diff --git a/StatChart/backend/migrate.cue b/StatChart/schemas/migrate.cue similarity index 100% rename from StatChart/backend/migrate.cue rename to StatChart/schemas/migrate.cue diff --git a/StatChart/backend/stat.cue b/StatChart/schemas/stat.cue similarity index 100% rename from StatChart/backend/stat.cue rename to StatChart/schemas/stat.cue diff --git a/StatChart/backend/stat.json b/StatChart/schemas/stat.json similarity index 100% rename from StatChart/backend/stat.json rename to StatChart/schemas/stat.json diff --git a/Table/backend/migrate.cue b/Table/schemas/migrate.cue similarity index 100% rename from Table/backend/migrate.cue rename to Table/schemas/migrate.cue diff --git a/Table/backend/table.cue b/Table/schemas/table.cue similarity index 100% rename from Table/backend/table.cue rename to Table/schemas/table.cue diff --git a/Table/backend/table.json b/Table/schemas/table.json similarity index 100% rename from Table/backend/table.json rename to Table/schemas/table.json diff --git a/TimeSeriesChart/backend/migrate.cue b/TimeSeriesChart/schemas/migrate.cue similarity index 100% rename from TimeSeriesChart/backend/migrate.cue rename to TimeSeriesChart/schemas/migrate.cue diff --git a/TimeSeriesChart/backend/time-series.cue b/TimeSeriesChart/schemas/time-series.cue similarity index 100% rename from TimeSeriesChart/backend/time-series.cue rename to TimeSeriesChart/schemas/time-series.cue diff --git a/TimeSeriesChart/backend/time-series.json b/TimeSeriesChart/schemas/time-series.json similarity index 100% rename from TimeSeriesChart/backend/time-series.json rename to TimeSeriesChart/schemas/time-series.json diff --git a/TimeSeriesTable/backend/time-series-table.cue b/TimeSeriesTable/schemas/time-series-table.cue similarity index 100% rename from TimeSeriesTable/backend/time-series-table.cue rename to TimeSeriesTable/schemas/time-series-table.cue diff --git a/TimeSeriesTable/backend/time-series-table.json b/TimeSeriesTable/schemas/time-series-table.json similarity index 100% rename from TimeSeriesTable/backend/time-series-table.json rename to TimeSeriesTable/schemas/time-series-table.json diff --git a/TraceTable/backend/trace-table.cue b/TraceTable/schemas/trace-table.cue similarity index 100% rename from TraceTable/backend/trace-table.cue rename to TraceTable/schemas/trace-table.cue diff --git a/TraceTable/backend/trace-table.json b/TraceTable/schemas/trace-table.json similarity index 100% rename from TraceTable/backend/trace-table.json rename to TraceTable/schemas/trace-table.json diff --git a/TracingGanttChart/backend/tracing-gantt-chart.cue b/TracingGanttChart/schemas/tracing-gantt-chart.cue similarity index 100% rename from TracingGanttChart/backend/tracing-gantt-chart.cue rename to TracingGanttChart/schemas/tracing-gantt-chart.cue diff --git a/TracingGanttChart/backend/tracing-gantt-chart.json b/TracingGanttChart/schemas/tracing-gantt-chart.json similarity index 100% rename from TracingGanttChart/backend/tracing-gantt-chart.json rename to TracingGanttChart/schemas/tracing-gantt-chart.json diff --git a/scripts/validate-schemas/validate-schemas.go b/scripts/validate-schemas/validate-schemas.go index 2a9981a..3898a2f 100644 --- a/scripts/validate-schemas/validate-schemas.go +++ b/scripts/validate-schemas/validate-schemas.go @@ -22,7 +22,7 @@ import ( "github.com/sirupsen/logrus" ) -const schemasPath = "backend" +const schemasPath = "schemas" // check that the CUE schemas for a given plugin are valid (= not raising errors) func validateSchema(pluginName string) error {