Open amercader opened 1 year ago
@amercader PR #7382 for this issue is created. Please review and ping if necessary.
Upon investigating the code I had a discussion with older colleague and the reason is that this content is displayed in popup form and it is executing asynchronously.
@svetozarstojkovicdatopian thanks, I meant why we need to load the contents of the popup asynchronously and not render it directly in Jinja like the rest of the template.
@amercader I have been talking to some developers with more experience about this issue and what they are saying is that the popup is being rendered using Jinja but the ajax calls triggers that render.
CKAN version 2.9 / 2.10
Describe the bug The Data API window shows the
datastore_search_sql
endpoint even when switched off (which is the default)The snippet should use
config.get("ckan.datastore.sqlsearch.enabled")
to show the row only when enabled.Also looks like you need to click two times to open the window, probably a little bug in the js module. (Why do we need an AJAX call to get the content of the modal in the first place?)