Add 'more_visualizations' to vis endpoint
See original GitHub issueAs 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:
-
“More from user” view: https://github.com/CartoDB/cartodb/blob/master/app/views/admin/visualizations/public_map.html.erb#L261
-
Visualizations controller: https://github.com/CartoDB/cartodb/blob/master/app/controllers/admin/visualizations_controller.rb#L246
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (12 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.https://team.carto.com/u/javitonino/api/v1/viz/?per_page=4&types=derived
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