Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
brian-dashboard-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
geant-swd
brian
brian-dashboard-manager
Commits
d2cb797e
Commit
d2cb797e
authored
3 years ago
by
Bjarke Madsen
Browse files
Options
Downloads
Patches
Plain Diff
Add missing commas and GEANTOPEN to public
parent
969221b5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
brian_dashboard_manager/config.py
+5
-4
5 additions, 4 deletions
brian_dashboard_manager/config.py
brian_dashboard_manager/grafana/dashboard.py
+3
-1
3 additions, 1 deletion
brian_dashboard_manager/grafana/dashboard.py
with
8 additions
and
5 deletions
brian_dashboard_manager/config.py
+
5
−
4
View file @
d2cb797e
...
...
@@ -67,9 +67,9 @@ DEFAULT_ORGANIZATIONS = [
"
excluded_dashboards
"
:
[
"
GÉANT Office devices
"
,
"
GÉANT VM
"
,
"
Lab Devices
"
"
Lab Devices
"
,
"
IAS
"
,
"
G
E
ANT
OPEN
"
,
"
G
É
ANT
Open
"
,
"
IAS Peers
"
],
"
excluded_folders
"
:
{
...
...
@@ -78,7 +78,8 @@ DEFAULT_ORGANIZATIONS = [
"
IAS PRIVATE
"
:
True
,
"
IAS PUBLIC
"
:
True
,
"
IAS UPSTREAM
"
:
True
,
"
GWS PHY Upstream
"
:
True
"
GWS PHY Upstream
"
:
True
,
"
GEANTOPEN
"
:
True
,
}
},
{
...
...
@@ -106,7 +107,7 @@ DEFAULT_ORGANIZATIONS = [
"
excluded_dashboards
"
:
[
"
GÉANT Office devices
"
,
"
GÉANT VM
"
,
"
Lab Devices
"
"
Lab Devices
"
,
"
IAS
"
,
"
IAS Peers
"
],
...
...
This diff is collapsed.
Click to expand it.
brian_dashboard_manager/grafana/dashboard.py
+
3
−
1
View file @
d2cb797e
...
...
@@ -30,7 +30,9 @@ def delete_dashboard(request: TokenRequest, dashboard, folder_id=None):
uid
=
dashboard
.
get
(
'
uid
'
)
if
uid
:
return
_delete_dashboard
(
request
,
uid
)
elif
dashboard
.
get
(
'
title
'
)
and
folder_id
:
elif
dashboard
.
get
(
'
title
'
):
# if a folder ID is not supplied,
# dashboard title should be globally unique
dash
=
_search_dashboard
(
request
,
dashboard
,
folder_id
)
if
dash
is
None
:
return
True
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment