mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 06:16:08 +00:00
ui: Add X-Range header alongside the HTTP info for services/intentions
This header value controls whether ember-data should reconcile its local store/data or not.
This commit is contained in:
parent
e9f6361d26
commit
f8771ae3ea
@ -9,7 +9,12 @@ export default Adapter.extend({
|
|||||||
requestForQuery: function(request, { dc, filter, index, uri }) {
|
requestForQuery: function(request, { dc, filter, index, uri }) {
|
||||||
return request`
|
return request`
|
||||||
GET /v1/connect/intentions?${{ dc }}
|
GET /v1/connect/intentions?${{ dc }}
|
||||||
X-Request-ID: ${uri}
|
X-Request-ID: ${uri}${
|
||||||
|
typeof filter !== 'undefined'
|
||||||
|
? `
|
||||||
|
X-Range: ${filter}`
|
||||||
|
: ``
|
||||||
|
}
|
||||||
|
|
||||||
${{
|
${{
|
||||||
index,
|
index,
|
||||||
|
@ -5,6 +5,7 @@ export default Adapter.extend({
|
|||||||
if (typeof gateway !== 'undefined') {
|
if (typeof gateway !== 'undefined') {
|
||||||
return request`
|
return request`
|
||||||
GET /v1/internal/ui/gateway-services-nodes/${gateway}?${{ dc }}
|
GET /v1/internal/ui/gateway-services-nodes/${gateway}?${{ dc }}
|
||||||
|
X-Range: ${gateway}
|
||||||
X-Request-ID: ${uri}
|
X-Request-ID: ${uri}
|
||||||
|
|
||||||
${{
|
${{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user