cloudera / hue

Open source SQL Query Assistant service for Databases/Warehouses
https://cloudera.com
Apache License 2.0
1.17k stars 366 forks source link

Feature: editor content read from url #694

Closed lubomirmatus closed 3 years ago

lubomirmatus commented 6 years ago

I would like to propose new feature for query/text editor.

Now the Impala query editor can be opened by url https://<host>/hue/editor/?type=impala. It would be fine to be able also put text content for editor into url.

E.g.: https://<host>/hue/editor/?type=impala&text=<encoded-text>. The text content can be compacted and encoded for example as base64url(lzstring(text)). This method is used in imply project (sql editor part) - the web ui for druid database.

Also add "direct link" button/text-box somewhere into editor, so the user can copy link with included text content of editor and use it externally (send by email to someone, ...).

Example: We use Impala database as backend and Hue. We have some internal tools / webapps that uses Impala, and some of them points their links to Hue Impala SQL editor. Now we are only able to put query text into clipboard, open the empty editor by url, and then let user paste text from clipboard into editor. It would be fine to put the query text directly into url, so the editor will open with given text content.

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity and is not "roadmap" labeled or part of any milestone. Remove stale label or comment or this will be closed in 5 days.

gfarcas commented 2 months ago

The feature would be greatly appreciated