mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
This reverts commit 44b365028f
.
This commit is contained in:
parent
23535c2bb2
commit
30dcf0f6c5
@ -19,7 +19,7 @@ version: 2
|
|||||||
jobs:
|
jobs:
|
||||||
mysql-integration-test:
|
mysql-integration-test:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/golang:1.12.3
|
- image: circleci/golang:1.11.5
|
||||||
- image: circleci/mysql:5.6-ram
|
- image: circleci/mysql:5.6-ram
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: rootpass
|
MYSQL_ROOT_PASSWORD: rootpass
|
||||||
@ -39,7 +39,7 @@ jobs:
|
|||||||
|
|
||||||
postgres-integration-test:
|
postgres-integration-test:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/golang:1.12.3
|
- image: circleci/golang:1.11.5
|
||||||
- image: circleci/postgres:9.3-ram
|
- image: circleci/postgres:9.3-ram
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: grafanatest
|
POSTGRES_USER: grafanatest
|
||||||
@ -58,7 +58,7 @@ jobs:
|
|||||||
|
|
||||||
cache-server-test:
|
cache-server-test:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/golang:1.12.3
|
- image: circleci/golang:1.11.5
|
||||||
- image: circleci/redis:4-alpine
|
- image: circleci/redis:4-alpine
|
||||||
- image: memcached
|
- image: memcached
|
||||||
working_directory: /go/src/github.com/grafana/grafana
|
working_directory: /go/src/github.com/grafana/grafana
|
||||||
@ -88,7 +88,7 @@ jobs:
|
|||||||
|
|
||||||
backend-lint:
|
backend-lint:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/golang:1.12.3
|
- image: circleci/golang:1.11.5
|
||||||
environment:
|
environment:
|
||||||
# we need CGO because of go-sqlite3
|
# we need CGO because of go-sqlite3
|
||||||
CGO_ENABLED: 1
|
CGO_ENABLED: 1
|
||||||
@ -120,7 +120,7 @@ jobs:
|
|||||||
|
|
||||||
test-backend:
|
test-backend:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/golang:1.12.3
|
- image: circleci/golang:1.11.5
|
||||||
working_directory: /go/src/github.com/grafana/grafana
|
working_directory: /go/src/github.com/grafana/grafana
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
@ -130,7 +130,7 @@ jobs:
|
|||||||
|
|
||||||
build-all:
|
build-all:
|
||||||
docker:
|
docker:
|
||||||
- image: grafana/build-container:1.2.5
|
- image: grafana/build-container:1.2.4
|
||||||
working_directory: /go/src/github.com/grafana/grafana
|
working_directory: /go/src/github.com/grafana/grafana
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
@ -174,7 +174,7 @@ jobs:
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
docker:
|
docker:
|
||||||
- image: grafana/build-container:1.2.5
|
- image: grafana/build-container:1.2.4
|
||||||
working_directory: /go/src/github.com/grafana/grafana
|
working_directory: /go/src/github.com/grafana/grafana
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
@ -243,7 +243,7 @@ jobs:
|
|||||||
|
|
||||||
build-enterprise:
|
build-enterprise:
|
||||||
docker:
|
docker:
|
||||||
- image: grafana/build-container:1.2.5
|
- image: grafana/build-container:1.2.4
|
||||||
working_directory: /go/src/github.com/grafana/grafana
|
working_directory: /go/src/github.com/grafana/grafana
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
@ -275,7 +275,7 @@ jobs:
|
|||||||
|
|
||||||
build-all-enterprise:
|
build-all-enterprise:
|
||||||
docker:
|
docker:
|
||||||
- image: grafana/build-container:1.2.5
|
- image: grafana/build-container:1.2.4
|
||||||
working_directory: /go/src/github.com/grafana/grafana
|
working_directory: /go/src/github.com/grafana/grafana
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Golang build container
|
# Golang build container
|
||||||
FROM golang:1.12.3
|
FROM golang:1.11.5
|
||||||
|
|
||||||
WORKDIR $GOPATH/src/github.com/grafana/grafana
|
WORKDIR $GOPATH/src/github.com/grafana/grafana
|
||||||
|
|
||||||
|
@ -5,14 +5,14 @@ Upgrading Go or Node.js requires making changes in many different files. See bel
|
|||||||
## Go
|
## Go
|
||||||
|
|
||||||
- CircleCi
|
- CircleCi
|
||||||
- `/scripts/build/ci-build/Dockerfile`
|
- `grafana/build-container`
|
||||||
- Appveyor
|
- Appveyor
|
||||||
- Dockerfile
|
- Dockerfile
|
||||||
|
|
||||||
## Node.js
|
## Node.js
|
||||||
|
|
||||||
- CircleCI
|
- CircleCI
|
||||||
- `scripts/build/ci-build/Dockerfile`
|
- `grafana/build-container`
|
||||||
- Appveyor
|
- Appveyor
|
||||||
- Dockerfile
|
- Dockerfile
|
||||||
|
|
||||||
|
@ -407,15 +407,8 @@ func GetDashboardVersion(c *m.ReqContext) Response {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dashVersionMeta := &m.DashboardVersionMeta{
|
dashVersionMeta := &m.DashboardVersionMeta{
|
||||||
Id: query.Result.Id,
|
DashboardVersion: *query.Result,
|
||||||
DashboardId: query.Result.DashboardId,
|
CreatedBy: creator,
|
||||||
ParentVersion: query.Result.ParentVersion,
|
|
||||||
RestoredFrom: query.Result.RestoredFrom,
|
|
||||||
Version: query.Result.Version,
|
|
||||||
Created: query.Result.Created,
|
|
||||||
Message: query.Result.Message,
|
|
||||||
Data: query.Result.Data,
|
|
||||||
CreatedBy: creator,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return JSON(200, dashVersionMeta)
|
return JSON(200, dashVersionMeta)
|
||||||
|
@ -32,16 +32,8 @@ type DashboardVersion struct {
|
|||||||
// associated with the UserIds, overriding the field with the same name from
|
// associated with the UserIds, overriding the field with the same name from
|
||||||
// the DashboardVersion model.
|
// the DashboardVersion model.
|
||||||
type DashboardVersionMeta struct {
|
type DashboardVersionMeta struct {
|
||||||
Id int64 `json:"id"`
|
DashboardVersion
|
||||||
DashboardId int64 `json:"dashboardId"`
|
CreatedBy string `json:"createdBy"`
|
||||||
ParentVersion int `json:"parentVersion"`
|
|
||||||
RestoredFrom int `json:"restoredFrom"`
|
|
||||||
Version int `json:"version"`
|
|
||||||
Created time.Time `json:"created"`
|
|
||||||
|
|
||||||
Message string `json:"message"`
|
|
||||||
Data *simplejson.Json `json:"data"`
|
|
||||||
CreatedBy string `json:"createdBy"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// DashboardVersionDTO represents a dashboard version, without the dashboard
|
// DashboardVersionDTO represents a dashboard version, without the dashboard
|
||||||
|
@ -69,7 +69,7 @@ RUN apt-get update && \
|
|||||||
# base image to crossbuild grafana
|
# base image to crossbuild grafana
|
||||||
FROM ubuntu:14.04
|
FROM ubuntu:14.04
|
||||||
|
|
||||||
ENV GOVERSION=1.12.3 \
|
ENV GOVERSION=1.11.5 \
|
||||||
PATH=/usr/local/go/bin:$PATH \
|
PATH=/usr/local/go/bin:$PATH \
|
||||||
GOPATH=/go \
|
GOPATH=/go \
|
||||||
NODEVERSION=10.14.2
|
NODEVERSION=10.14.2
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
_version="1.2.5"
|
_version="1.2.4"
|
||||||
_tag="grafana/build-container:${_version}"
|
_tag="grafana/build-container:${_version}"
|
||||||
|
|
||||||
docker build -t $_tag .
|
docker build -t $_tag .
|
||||||
|
Loading…
Reference in New Issue
Block a user