Skip to content

Commit

Permalink
webui: adjust http requests in analytics module views
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper committed Apr 17, 2023
1 parent 43bf518 commit 03eb332
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ $this->headTitle($title);

<script>

d3.json("<?php echo $this->url('analytics', array('action' => 'getData'), null) . '?data=config-resource-graph'; ?>").then(function(data) {
d3.json("<?php echo $this->url('api/analytics', array(), array()) . '?type=config-resource-graph'; ?>").then(function(data) {

function ticked() {
link
Expand Down
4 changes: 2 additions & 2 deletions webui/module/Analytics/view/analytics/analytics/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ $this->headTitle($title);
<script>

$.ajax({
url: '<?php echo $this->url('analytics', array('action' => 'getData'), null) . '?data=overall-jobtotals'; ?>',
url: '<?php echo $this->url('api/analytics', array(), null) . '?type=overall-jobtotals'; ?>',
dataType: 'json',
timeout: 10000,
success: function(data) {
Expand Down Expand Up @@ -113,7 +113,7 @@ $this->headTitle($title);
.append("g")
.attr("transform", `translate(${margin.left}, ${margin.top})`);

d3.json("<?php echo $this->url('analytics', array('action' => 'getData'), null) . '?data=jobtotals'; ?>").then(function(data) {
d3.json("<?php echo $this->url('api/analytics', array(), array()) . '?type=jobtotals'; ?>").then(function(data) {

const root = d3.hierarchy(data).sum(d => d.bytes).sort((a, b) => b.value - a.value)

Expand Down

0 comments on commit 03eb332

Please sign in to comment.