Skip to content

Commit

Permalink
Merge dashboard lib (#12512)
Browse files Browse the repository at this point in the history
* change dashboard module path

* dashboard lib

* fix go mod
  • Loading branch information
skudasov authored Mar 20, 2024
1 parent ece2329 commit 48779ad
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions charts/chainlink-cluster/dashboard/cmd/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package main

import (
"github.com/K-Phoen/grabana/dashboard"
lib "github.com/smartcontractkit/chainlink/dashboard-lib/lib"
core_don "github.com/smartcontractkit/chainlink/dashboard-lib/lib/core-don"
k8spods "github.com/smartcontractkit/chainlink/dashboard-lib/lib/k8s-pods"
lib "github.com/smartcontractkit/chainlink/dashboard-lib"
core_don "github.com/smartcontractkit/chainlink/dashboard-lib/core-don"
k8spods "github.com/smartcontractkit/chainlink/dashboard-lib/k8s-pods"
waspdb "github.com/smartcontractkit/wasp/dashboard"
)

Expand Down
4 changes: 2 additions & 2 deletions charts/chainlink-cluster/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.21.7

require (
github.com/K-Phoen/grabana v0.22.1
github.com/smartcontractkit/chainlink/dashboard-lib v0.22.1
github.com/smartcontractkit/chainlink/dashboard-lib v0.0.0-00010101000000-000000000000
github.com/smartcontractkit/wasp v0.4.6
)

Expand Down Expand Up @@ -34,5 +34,5 @@ replace (
github.com/mwitkow/grpc-proxy => github.com/smartcontractkit/grpc-proxy v0.0.0-20230731113816-f1be6620749f

github.com/sercand/kuberesolver/v4 => github.com/sercand/kuberesolver/v5 v5.1.1
github.com/smartcontractkit/chainlink/dashboard-lib => ../../dashboard
github.com/smartcontractkit/chainlink/dashboard-lib => ../../dashboard-lib
)
2 changes: 1 addition & 1 deletion dashboard/README.md → dashboard-lib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ Components should be imported from this module, see [example](../charts/chainlin
## How to convert from JSON using Grabana codegen utility
1. Download Grabana binary [here](https://github.com/K-Phoen/grabana/releases)
2. ./bin/grabana convert-go -i dashboard.json > lib/my_new_component/rows.go
3. Create a [component](lib/k8s-pods/component.go)
3. Create a [component](k8s-pods/component.go)
2 changes: 1 addition & 1 deletion dashboard/lib/config.go → dashboard-lib/config.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dashboardlib
package dashboard_lib

import "os"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion dashboard/lib/dashboard.go → dashboard-lib/dashboard.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dashboardlib
package dashboard_lib

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion dashboard/go.mod → dashboard-lib/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/smartcontractkit/chainlink/v2/dashboard-lib
module github.com/smartcontractkit/chainlink/dashboard-lib

go 1.21.7

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion dashboard/lib/log.go → dashboard-lib/log.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dashboardlib
package dashboard_lib

import (
"os"
Expand Down

0 comments on commit 48779ad

Please sign in to comment.