Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CBGT UI #1152

Closed
tleyden opened this issue Sep 21, 2015 · 7 comments
Closed

Add CBGT UI #1152

tleyden opened this issue Sep 21, 2015 · 7 comments

Comments

@tleyden
Copy link
Contributor

tleyden commented Sep 21, 2015

No description provided.

@tleyden
Copy link
Contributor Author

tleyden commented Oct 20, 2015

After attempting this, I'm seeing this page:

screen shot 2015-10-20 at 11 47 12 am

However if I try to click the Indexes link it tries to take me to http://localhost:4985/indexes/ rather than http://localhost:4985/_cbgt/ui/indexes/. And going directly to http://localhost:4985/_cbgt/ui/indexes/ shows me the same page in the screenshot above.

Also, when I do "view source" it's trying to show static assets from /static rather than /_cbgt/ui/static.

Either I'm doing something wrong (very likely), or the cbgt ui isn't very "embeddable friendly", or both.

@steveyen any tips?

tleyden pushed a commit that referenced this issue Oct 20, 2015
@tleyden
Copy link
Contributor Author

tleyden commented Oct 20, 2015

Here's the code I added to sync gateway.

@steveyen
Copy link
Member

No smoking guns. Traun & I talked about some theories. A related /api/diag REST fix is in available, which should be able to grab tons more info.

@zgramana zgramana added backlog and removed review labels Oct 23, 2015
@tleyden tleyden changed the title [Distributed Index] Add CBGT UI Add CBGT UI Jan 14, 2016
@tleyden
Copy link
Contributor Author

tleyden commented Jan 14, 2016

Tagging this as release-prep 1.2 to try to get it into the release

@tleyden
Copy link
Contributor Author

tleyden commented Jan 14, 2016

@steveyen I tried adding this again with this code and got pretty much the same results. If I go to _cbgt/ui, it tries to redirect to static/index.html

curl -v http://localhost:4985/_cbgt/ui/
*   Trying ::1...
* Connected to localhost (::1) port 4985 (#0)
> GET /_cbgt/ui/ HTTP/1.1
> Host: localhost:4985
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 302 Found
< Location: /static/index.html
< Date: Thu, 14 Jan 2016 20:04:32 GMT
< Content-Length: 41
< Content-Type: text/html; charset=utf-8
<
<a href="/static/index.html">Found</a>.

* Connection #0 to host localhost left intact

In the browser if I go directly to _cbgt/ui/nodes/, I see this:

screen shot 2016-01-14 at 12 07 49 pm

Any tips or examples I can look at?

@tleyden
Copy link
Contributor Author

tleyden commented Jan 15, 2016

Current status: did some experiments, but turned into pretty deep rabbit hole where paths aren't correct. Also, I later discovered that calling managerOptions["urlPrefix"] = "/_cbgt/ui" breaks the cbgt rest api (everything is 404 after that change), so that will need more work.

NOTE: in order to change any of the html / js / or css within CBGT, you just need to run make in the cbgt folder, which will rebuild the "bindata" assets. Due to $GOPATH issues, I ended up doing that under my normal $GOPATH, then copying the bindata.go file back over to the cbgt sync gateway submodule.

@adamcfraser adamcfraser modified the milestones: 1.3, Future May 26, 2016
@djpongh djpongh modified the milestones: Future, Iridium Aug 9, 2018
@adamcfraser
Copy link
Collaborator

Not planning to add this - any future monitoring enhancements will be done as part of manageability integration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants