Skip to content

Commit

Permalink
Merge pull request #272 from nzzdev/dev
Browse files Browse the repository at this point in the history
Remove shouldBeBar & -LineChart checks
  • Loading branch information
migingreen authored Feb 7, 2024
2 parents be61e22 + 627a838 commit 100b981
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 112 deletions.
42 changes: 10 additions & 32 deletions resources/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@
"type": "ToolEndpoint",
"config": {
"endpoint": "notification/logScaleMinValueRequirements",
"fields": ["options.chartType", "options.lineChartOptions.yScaleType", "data"]
"fields": [
"options.chartType",
"options.lineChartOptions.yScaleType",
"data"
]
},
"priority": {
"type": "high",
Expand Down Expand Up @@ -231,36 +235,7 @@
"fields": ["data"]
}
},
"notificationChecks": [
{
"type": "ToolEndpoint",
"config": {
"endpoint": "notification/shouldBeBarChart",
"fields": ["data", "options.chartType"],
"options": {
"limit": 2
}
},
"priority": {
"type": "medium",
"value": 3
}
},
{
"type": "ToolEndpoint",
"config": {
"endpoint": "notification/shouldBeLineChart",
"fields": ["data", "options.chartType"],
"options": {
"limit": 40
}
},
"priority": {
"type": "medium",
"value": 4
}
}
]
"notificationChecks": []
},
"default": "Bar"
},
Expand Down Expand Up @@ -688,7 +663,10 @@
"type": "ToolEndpoint",
"config": {
"endpoint": "notification/checkMinValueYAxisLogScale",
"fields": ["options.lineChartOptions.yScaleType", "options.lineChartOptions.minValue"]
"fields": [
"options.lineChartOptions.yScaleType",
"options.lineChartOptions.minValue"
]
},
"priority": {
"type": "high",
Expand Down
35 changes: 0 additions & 35 deletions routes/notification/shouldBeBarChart.js

This file was deleted.

43 changes: 0 additions & 43 deletions routes/notification/shouldBeLineChart.js

This file was deleted.

2 changes: 0 additions & 2 deletions routes/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ module.exports = [
require("./notification/supportedDateFormat"),
require("./notification/unsupportedDateFormat"),
require("./notification/unsupportedDateFormatEvents"),
require("./notification/shouldBeBarChart.js"),
require("./notification/shouldBeLineChart.js"),
require("./notification/shouldBeBars.js"),
require("./notification/tooManyRows.js"),
require("./locales.js"),
Expand Down

0 comments on commit 100b981

Please sign in to comment.