Open jqnatividad opened 6 years ago
This should be 100% CSS and javascript built on something from https://en.wikipedia.org/wiki/Comparison_of_JavaScript-based_source_code_editors
Perhaps, #78 can be revisited to not only enable this, but to improve the UX in general when entering freetext that requires formatting.
That's a great idea. No reason to have two rich JS text editors
Resource Queries are pretty powerful, as the data publisher has access to the full expressive power of PostgreSQL - not just a SQL dialect that cannot do joins, computed columns, aggregations, spatial queries, etc.
For example, this complex SQL to do aggregations for a viz was handled without problems using the Resource Query feature:
In actuality, though, the SQL above was pretty-printed, and here is what it actually looks like when defining it in CKAN:
And that's after adding whitespace to make it more readable.
Would be nice if there's a FORMAT button to re-format the Resource Query, perhaps, by using something like sqlparse.