Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
6.6.1, Cheshire-Cat
-
None
-
1
Description
First the UI document import should be able to use login credentials of the current session.
cbimport csv -c http://192.168.3.150:8091 -u <login> -p <password> -g #UUID#
|
If the URL is left as say <login> <password> (as above) then a popup should ask if the user wants to use his current login credentials. Alternatively there shuld be a [X] check box to use current login credentials.
Second the screen should be able to be opened and accept a URL param to set the data source. Assume I am logged into a couchbase server http://192.168.3.150:8091/ and I am also on docs.couchbase.com and want to run an example. By allowing a parameters like:
param import_focus to pass "https%3A%2F%2Fdocs.couchbase.com%2Fserver%2F6.5%2Feventing%2F_attachments%2Fexamples%2Fhigh_risk%2Fcards.json"
|
|
param import_g to pass
|
"%27%25type%25%3A%25txnid%25%27"
|
Such that I can make a URL encoded link like:
http://192.168.3.150:8091/ui/index.html#!/documents/editor?import_focus="https%3A%2F%2Fdocs.couchbase.com%2Fserver%2F6.5%2Feventing%2F_attachments%2Fexamples%2Fhigh_risk%2Fcards.json"import_g="%27%25type%25%3A%25txnid%25%27"
|
So that the URL when clicked form the docs.couchbase.com is loaded into the couchbase UI as
cbimport csv -c https://docs.couchbase.com/server/6.5/eventing/_attachments/examples/high_risk/cards.json -u <login> -p <password> -g '%type%:%txnid%'
|
Maybe this will only work with "localhost" instead of an IP or domain name but regardless it would be a nice integration between both the server UI and the official documentation.
These capabilities are even more important as we promote CouchbaseCloud which has no user shell.