Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zoomOutViewLevel and setView don't work correctly when the target view is global view #89

Open
javafuns opened this issue Sep 29, 2017 · 4 comments

Comments

@jrsquared
Copy link
Contributor

I need a lot more context about this to troubleshoot. Can you give me example JSON for the original graph, the example JSON for the graph you are trying to replace it with, and reproducible steps?

@javafuns
Copy link
Author

let trafficData =
{
"renderer": "global",
"name": "edge",
"nodes": [
{
"renderer": "region",
"name": "INTERNET",
"class": "normal"
},
{
"renderer": "region",
"name": "us-east-1",
"class": "normal",
"updated": 1466838546805,
"maxVolume": 50000,
"nodes": [
{
"name": "INTERNET",
"renderer": "focusedChild",
"class": "normal"
},
{
"name": "proxy-prod",
"renderer": "focusedChild",
"class": "warning",
"notices": [
{
"title": "Platform service",
"link": "http://cloud.oracle.com/microservice/platform-service/about.html",
"severity": 1
}
],
"clusters": [
{
"name": "conveyorized",
"metrics": {
"danger": 15.376,
"normal": 22666.646
}
}
]
}
],
"connections": [
{
"source": "INTERNET",
"target": "proxy-prod",
"metadata": {
"nodeType": "deployment"
},
"metrics": {
"danger": 116.524,
"normal": 15598.906
},
"class": "normal"
}
]
}
],
"connections": [
{
"source": "INTERNET",
"target": "us-east-1",
"metrics": {
"normal": 26037.626,
"danger": 92.37
},
"notices": [
],
"class": "normal"
}
]
}

@javafuns
Copy link
Author

let newTrafficData =
{
"renderer": "global",
"name": "edge",
"nodes": [
{
"renderer": "region",
"name": "INTERNET",
"class": "normal"
},
{
"renderer": "region",
"name": "us-west-1",
"updated": 1466838546805,
"maxVolume": 0,
"class": "normal",
"nodes": [
{
"name": "INTERNET",
"renderer": "focusedChild",
"class": "normal"
},
{
"name": "gradine",
"renderer": "focusedChild",
"class": "normal"
},
{
"name": "atma",
"renderer": "focusedChild",
"class": "normal"
},
{
"name": "cleavage",
"renderer": "focusedChild",
"class": "normal"
}
],
"connections": [
{
"source": "INTERNET",
"target": "gradine",
"metadata": {
"nodeType": "deployment"
}
},
{
"source": "INTERNET",
"target": "atma",
"metadata": {
"nodeType": "deployment"
}
},
{
"source": "INTERNET",
"target": "cleavage",
"metadata": {
"nodeType": "deployment"
}
}
]
}
],
"connections": [
{
"source": "INTERNET",
"target": "us-phoenix-1",
"metrics": {
},
"class": "normal"
}
]
}

@javafuns
Copy link
Author

  1. set trafficData
    viz.updateData(trafficData);
    viz.setView();
  2. drill down to global->us-east-1->proxy-prod
  3. update with new data (Please note the data is completely different)
    viz.updateData(newTrafficData);
  4. zoom out to global level
    viz.zoomOutViewLevel();
    viz.zoomOutViewLevel();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants