question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add 'more_visualizations' to vis endpoint

See original GitHub issue

As we’ve done here https://github.com/CartoDB/cartodb/issues/12910, we need to add another field to the vis data for the public map static page.

The field to add is more_visualizations, and it’s needed for the following view:

captura de pantalla 2017-10-10 a las 11 55 17

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
javitoninocommented, Oct 10, 2017

more_visualizations just takes the 3 last updated visualizations from the user, excluding the current one. So I think the approach of using the generic visualization listing endpoint as Nacho mentioned should be enough and it replicates the current behaviour exactly.

I think that currently we don’t have a public endpoint to get several visualizations from a user The dashboard endpoint works as a public user (and it filters out non-public data). So something like this should work:

https://team.carto.com/u/javitonino/api/v1/viz/?per_page=4&types=derived

1reaction
matallocommented, Oct 10, 2017

totally agree with @juanignaciosl and “having an API that is meaningful and independent from the frontend”, one thing is try to avoid roundtrips, another very different is to expose everything we need in a single request

so, I wouldn’t want to bias your decision but having something in the carto-node client such .getRelatedVisualizations({{ id }}); and then a /api/v3/:id/related endpoint could help us achieve this

Read more comments on GitHub >

github_iconTop Results From Across the Web

An Introduction to APIs & Backend | by Codebase - Medium
We can add more visualizations by changing up our selections and pressing “Add Visualization”, and our new visualization will appear at the ...
Read more >
VisIt User Manual Documentation - Read the Docs
This command will install the 3.2.2 version of VisIt into the /usr/local/visit directory. Note that when you enter the above command, the file ......
Read more >
Cisco Crosswork Infrastructure 4.1 and Applications ...
From the main menu, choose Administration > Crosswork Manager > Crosswork Cluster. Step 2. At the top right, click View more visualizations. The ......
Read more >
Write Custom Scripts | Tutorial #2: Finish your first PxL Script
In Tutorial #3 we will learn how to add more visualizations for this script. previous Tutorial #1: Write your first PxL script. Tutorial...
Read more >
Databricks SQL dashboards
When you add a visualization based on a parameterized query to a dashboard, by default the parameter will be added as a dashboard...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found