Skip to content

Commit

Permalink
replaceAll for dots in node name
Browse files Browse the repository at this point in the history
  • Loading branch information
rchakode committed Mar 12, 2024
1 parent 56eac57 commit 040d9ba
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def create_directory_if_not_exists(path):


class Config:
version = '22.12.1'
version = '24.03.2'
db_round_decimals = 6
db_non_allocatable = 'non-allocatable'
db_billing_hourly_rate = '.billing-hourly-rate'
Expand Down
7 changes: 3 additions & 4 deletions js/frontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,7 @@ define(['jquery', 'bootstrap', 'bootswatch', 'd3Selection', 'stackedAreaChart',
for (let nname in data) {
if (data.hasOwnProperty(nname)) {
let node = data[nname];
let nname4Css = nname.replace('.', '_');
nodeHtmlList += '<li><a href="#" data-toggle="modal" data-target="#' + node.id + '">' + nname4Css + '</a></li>';
nodeHtmlList += '<li><a href="#" data-toggle="modal" data-target="#' + node.id + '">' + nname + '</a></li>';
popupContent += createPopupContent(node);
}
}
Expand Down Expand Up @@ -464,7 +463,7 @@ define(['jquery', 'bootstrap', 'bootswatch', 'd3Selection', 'stackedAreaChart',
let dynHtml = '';
let donuts = new Map();
for (let [nname, _] of dataset.data) {
let nname4Css = nname.replace('.', '_');
let nname4Css = nname.replaceAll('.', '_');
donuts[nname] = donut();
dynHtml += '<div class="col-md-4">';
dynHtml += ' <h4>' + nname + '</h4>';
Expand All @@ -474,7 +473,7 @@ define(['jquery', 'bootstrap', 'bootswatch', 'd3Selection', 'stackedAreaChart',
}
$("#js-nodes-load-container").html(dynHtml);
for (let [nname, ndata] of dataset.data) {
let nname4Css = nname.replace('.', '_');
let nname4Css = nname.replaceAll('.', '_');
updateDonutChart(ndata['chartData'],
donuts[nname],
'js-' + nname4Css,
Expand Down
2 changes: 1 addition & 1 deletion manifests/helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ apiVersion: v1
appVersion: "1.0"
description: Helm chart for Kubernetes Opex Analtytics
name: kube-opex-analytics
version: 22.12.1
version: 24.03.2


2 changes: 1 addition & 1 deletion manifests/kustomize/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ resources:
images:
- name: kube-opex-analytics
newName: rchakode/kube-opex-analytics
newTag: 22.12.1
newTag: 24.03.2

0 comments on commit 040d9ba

Please sign in to comment.