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

Revert "Move link to API Browser into System menu" #2587

Merged
merged 4 commits into from Aug 3, 2016
Merged

Conversation

joschi
Copy link
Contributor

@joschi joschi commented Aug 2, 2016

This reverts commit b6fe1a9.

@joschi joschi added this to the 2.1.0 milestone Aug 2, 2016
@@ -29,6 +29,10 @@ const NodeMaintenanceDropdown = React.createClass({
<MenuItem>Configure internal logging</MenuItem>
</LinkContainer>
</IfPermitted>

<MenuItem href={`${this.props.node.transport_address}api-browser`} target="_blank">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please construct this link like we do with the one in NodesActions? Something like:

new URI(`${this.props.node.transport_address}/api-browser`).normalizePathname();

I think we could add a component that unifies both usages, I leave it up to you.

@bernd bernd self-assigned this Aug 3, 2016
@bernd
Copy link
Member

bernd commented Aug 3, 2016

LGTM 👍

@bernd bernd merged commit 981ef53 into master Aug 3, 2016
@bernd bernd deleted the revert-pr-2361 branch August 3, 2016 14:34
mpfz0r added a commit that referenced this pull request Oct 10, 2019
Usually, the link to the API browser is meant to talk to one specific node only.

In cases where Graylog is served behind a load balancer, the node
specific URL is not reachable.
We autodetect that ( `http_external_uri` != `http_publish_uri` )
and display a "cluster global API browser button".

Since the API browser behind this address might end up talking
to random nodes of the cluster, display a warning box, to make
users aware of this.

Fixes #5920

Refs #2360
Refs #2587
bernd pushed a commit that referenced this pull request Oct 22, 2019
* Introduce a cluster global API browser button

Usually, the link to the API browser is meant to talk to one specific node only.

In cases where Graylog is served behind a load balancer, the node
specific URL is not reachable.
We autodetect that ( `http_external_uri` != `http_publish_uri` )
and display a "cluster global API browser button".

Since the API browser behind this address might end up talking
to random nodes of the cluster, display a warning box, to make
users aware of this.

Fixes #5920

Refs #2360
Refs #2587

* Fix review comments
bernd pushed a commit that referenced this pull request Oct 22, 2019
* Introduce a cluster global API browser button

Usually, the link to the API browser is meant to talk to one specific node only.

In cases where Graylog is served behind a load balancer, the node
specific URL is not reachable.
We autodetect that ( `http_external_uri` != `http_publish_uri` )
and display a "cluster global API browser button".

Since the API browser behind this address might end up talking
to random nodes of the cluster, display a warning box, to make
users aware of this.

Fixes #5920

Refs #2360
Refs #2587

* Fix review comments

(cherry picked from commit 6ac71c0)
mpfz0r pushed a commit that referenced this pull request Oct 23, 2019
* Introduce a cluster global API browser button (#6567)

* Introduce a cluster global API browser button

Usually, the link to the API browser is meant to talk to one specific node only.

In cases where Graylog is served behind a load balancer, the node
specific URL is not reachable.
We autodetect that ( `http_external_uri` != `http_publish_uri` )
and display a "cluster global API browser button".

Since the API browser behind this address might end up talking
to random nodes of the cluster, display a warning box, to make
users aware of this.

Fixes #5920

Refs #2360
Refs #2587

* Fix review comments

(cherry picked from commit 6ac71c0)

* Remove unused Alert import

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

Successfully merging this pull request may close these issues.

None yet

3 participants