mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Dashboard: Remove super old prop that has not been used in years (#50826)
This commit is contained in:
@@ -37,7 +37,6 @@ When a user creates a new dashboard, a new dashboard JSON object is initialized
|
|||||||
"style": "dark",
|
"style": "dark",
|
||||||
"timezone": "browser",
|
"timezone": "browser",
|
||||||
"editable": true,
|
"editable": true,
|
||||||
"hideControls": false,
|
|
||||||
"graphTooltip": 1,
|
"graphTooltip": 1,
|
||||||
"panels": [],
|
"panels": [],
|
||||||
"time": {
|
"time": {
|
||||||
|
|||||||
@@ -406,7 +406,6 @@ Content-Type: application/json
|
|||||||
{
|
{
|
||||||
"dashboard": {
|
"dashboard": {
|
||||||
"editable":false,
|
"editable":false,
|
||||||
"hideControls":true,
|
|
||||||
"nav":[
|
"nav":[
|
||||||
{
|
{
|
||||||
"enable":false,
|
"enable":false,
|
||||||
|
|||||||
@@ -177,7 +177,6 @@ Content-Length: 1300
|
|||||||
|
|
||||||
- **version** - The dashboard version to restore to
|
- **version** - The dashboard version to restore to
|
||||||
|
|
||||||
**Example response**:
|
|
||||||
**Example response**:
|
**Example response**:
|
||||||
|
|
||||||
```http
|
```http
|
||||||
@@ -290,7 +289,6 @@ Content-Length: 1300
|
|||||||
JSON body schema:
|
JSON body schema:
|
||||||
|
|
||||||
- **base** - an object representing the base dashboard version
|
- **base** - an object representing the base dashboard version
|
||||||
- **diffType** - the type of diff to return. Can be "json" or "basic".
|
|
||||||
- **new** - an object representing the new dashboard version
|
- **new** - an object representing the new dashboard version
|
||||||
- **diffType** - the type of diff to return. Can be "json" or "basic".
|
- **diffType** - the type of diff to return. Can be "json" or "basic".
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ title: 'HTTP Snapshot API '
|
|||||||
{
|
{
|
||||||
"dashboard": {
|
"dashboard": {
|
||||||
"editable":false,
|
"editable":false,
|
||||||
"hideControls":true,
|
|
||||||
"nav":[
|
"nav":[
|
||||||
{
|
{
|
||||||
"enable":false,
|
"enable":false,
|
||||||
@@ -157,7 +156,6 @@ Content-Type: application/json
|
|||||||
This API call can be used without authentication by using the secret delete key for the snapshot.
|
This API call can be used without authentication by using the secret delete key for the snapshot.
|
||||||
|
|
||||||
`GET /api/snapshots-delete/:deleteKey`
|
`GET /api/snapshots-delete/:deleteKey`
|
||||||
|
|
||||||
|
|
||||||
**Example Request**:
|
**Example Request**:
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"style": "dark",
|
"style": "dark",
|
||||||
"timezone": "browser",
|
"timezone": "browser",
|
||||||
"editable": true,
|
"editable": true,
|
||||||
"hideControls": false,
|
|
||||||
"sharedCrosshair": false,
|
"sharedCrosshair": false,
|
||||||
"rows": [
|
"rows": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
"style": "dark",
|
"style": "dark",
|
||||||
"timezone": "browser",
|
"timezone": "browser",
|
||||||
"editable": true,
|
"editable": true,
|
||||||
"hideControls": false,
|
|
||||||
"sharedCrosshair": false,
|
"sharedCrosshair": false,
|
||||||
"rows": [
|
"rows": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -66,7 +66,6 @@ describe('SaveDashboardAsForm', () => {
|
|||||||
expect(savedDashboardModel.id).toBe(null);
|
expect(savedDashboardModel.id).toBe(null);
|
||||||
expect(savedDashboardModel.title).toBe('name');
|
expect(savedDashboardModel.title).toBe('name');
|
||||||
expect(savedDashboardModel.editable).toBe(true);
|
expect(savedDashboardModel.editable).toBe(true);
|
||||||
expect(savedDashboardModel.hideControls).toBe(false);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it("appends 'Copy' to the name when the dashboard isnt new", async () => {
|
it("appends 'Copy' to the name when the dashboard isnt new", async () => {
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ const getSaveAsDashboardClone = (dashboard: DashboardModel) => {
|
|||||||
clone.uid = '';
|
clone.uid = '';
|
||||||
clone.title += ' Copy';
|
clone.title += ' Copy';
|
||||||
clone.editable = true;
|
clone.editable = true;
|
||||||
clone.hideControls = false;
|
|
||||||
|
|
||||||
// remove alerts if source dashboard is already persisted
|
// remove alerts if source dashboard is already persisted
|
||||||
// do not want to create alert dupes
|
// do not want to create alert dupes
|
||||||
|
|||||||
@@ -72,7 +72,6 @@ export function restore(version: any, restoredFrom?: any): any {
|
|||||||
editable: true,
|
editable: true,
|
||||||
gnetId: null,
|
gnetId: null,
|
||||||
graphTooltip: 0,
|
graphTooltip: 0,
|
||||||
hideControls: false,
|
|
||||||
id: 1,
|
id: 1,
|
||||||
links: [],
|
links: [],
|
||||||
restoredFrom: restoredFrom,
|
restoredFrom: restoredFrom,
|
||||||
|
|||||||
@@ -1,14 +1,10 @@
|
|||||||
{
|
{
|
||||||
"id": null,
|
"id": null,
|
||||||
"title": "Templated Graphs Nested",
|
"title": "Templated Graphs Nested",
|
||||||
"tags": [
|
"tags": ["showcase", "templated"],
|
||||||
"showcase",
|
|
||||||
"templated"
|
|
||||||
],
|
|
||||||
"style": "dark",
|
"style": "dark",
|
||||||
"timezone": "browser",
|
"timezone": "browser",
|
||||||
"editable": true,
|
"editable": true,
|
||||||
"hideControls": false,
|
|
||||||
"rows": [
|
"rows": [
|
||||||
{
|
{
|
||||||
"title": "Row1",
|
"title": "Row1",
|
||||||
@@ -27,10 +23,7 @@
|
|||||||
"x-axis": true,
|
"x-axis": true,
|
||||||
"y-axis": true,
|
"y-axis": true,
|
||||||
"scale": 1,
|
"scale": 1,
|
||||||
"y_formats": [
|
"y_formats": ["short", "short"],
|
||||||
"short",
|
|
||||||
"short"
|
|
||||||
],
|
|
||||||
"grid": {
|
"grid": {
|
||||||
"max": null,
|
"max": null,
|
||||||
"min": 0,
|
"min": 0,
|
||||||
@@ -110,10 +103,7 @@
|
|||||||
"x-axis": true,
|
"x-axis": true,
|
||||||
"y-axis": true,
|
"y-axis": true,
|
||||||
"scale": 1,
|
"scale": 1,
|
||||||
"y_formats": [
|
"y_formats": ["short", "short"],
|
||||||
"short",
|
|
||||||
"short"
|
|
||||||
],
|
|
||||||
"grid": {
|
"grid": {
|
||||||
"max": null,
|
"max": null,
|
||||||
"min": 0,
|
"min": 0,
|
||||||
@@ -180,29 +170,8 @@
|
|||||||
"notice": false,
|
"notice": false,
|
||||||
"enable": true,
|
"enable": true,
|
||||||
"status": "Stable",
|
"status": "Stable",
|
||||||
"time_options": [
|
"time_options": ["5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d"],
|
||||||
"5m",
|
"refresh_intervals": ["5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d"],
|
||||||
"15m",
|
|
||||||
"1h",
|
|
||||||
"6h",
|
|
||||||
"12h",
|
|
||||||
"24h",
|
|
||||||
"2d",
|
|
||||||
"7d",
|
|
||||||
"30d"
|
|
||||||
],
|
|
||||||
"refresh_intervals": [
|
|
||||||
"5s",
|
|
||||||
"10s",
|
|
||||||
"30s",
|
|
||||||
"1m",
|
|
||||||
"5m",
|
|
||||||
"15m",
|
|
||||||
"30m",
|
|
||||||
"1h",
|
|
||||||
"2h",
|
|
||||||
"1d"
|
|
||||||
],
|
|
||||||
"now": true
|
"now": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user