fix(rest): remove timeouts for all REST services (#4385)

chore56-add-JS-source-map
Alice Groux 2020-11-05 08:49:37 +01:00 committed by GitHub
parent 1545a42f08
commit 0d20988bef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
29 changed files with 6 additions and 34 deletions

View File

@ -19,7 +19,6 @@ angular.module('portainer.docker').factory('Container', [
params: { all: 0, action: 'json', filters: '@filters' }, params: { all: 0, action: 'json', filters: '@filters' },
isArray: true, isArray: true,
interceptor: ContainersInterceptor, interceptor: ContainersInterceptor,
timeout: 15000,
}, },
get: { get: {
method: 'GET', method: 'GET',
@ -48,20 +47,17 @@ angular.module('portainer.docker').factory('Container', [
logs: { logs: {
method: 'GET', method: 'GET',
params: { id: '@id', action: 'logs' }, params: { id: '@id', action: 'logs' },
timeout: 4500,
ignoreLoadingBar: true, ignoreLoadingBar: true,
transformResponse: logsHandler, transformResponse: logsHandler,
}, },
stats: { stats: {
method: 'GET', method: 'GET',
params: { id: '@id', stream: false, action: 'stats' }, params: { id: '@id', stream: false, action: 'stats' },
timeout: 4500,
ignoreLoadingBar: true, ignoreLoadingBar: true,
}, },
top: { top: {
method: 'GET', method: 'GET',
params: { id: '@id', action: 'top' }, params: { id: '@id', action: 'top' },
timeout: 4500,
ignoreLoadingBar: true, ignoreLoadingBar: true,
}, },
start: { start: {

View File

@ -16,7 +16,7 @@ angular.module('portainer.docker').factory('Image', [
endpointId: EndpointProvider.endpointID, endpointId: EndpointProvider.endpointID,
}, },
{ {
query: { method: 'GET', params: { all: 0, action: 'json' }, isArray: true, interceptor: ImagesInterceptor, timeout: 15000 }, query: { method: 'GET', params: { all: 0, action: 'json' }, isArray: true, interceptor: ImagesInterceptor },
get: { method: 'GET', params: { action: 'json' } }, get: { method: 'GET', params: { action: 'json' } },
search: { method: 'GET', params: { action: 'search' } }, search: { method: 'GET', params: { action: 'search' } },
history: { method: 'GET', params: { action: 'history' }, isArray: true }, history: { method: 'GET', params: { action: 'history' }, isArray: true },

View File

@ -18,7 +18,6 @@ angular.module('portainer.docker').factory('Network', [
method: 'GET', method: 'GET',
isArray: true, isArray: true,
interceptor: NetworksInterceptor, interceptor: NetworksInterceptor,
timeout: 15000,
}, },
get: { get: {
method: 'GET', method: 'GET',

View File

@ -35,7 +35,6 @@ angular.module('portainer.docker').factory('Service', [
logs: { logs: {
method: 'GET', method: 'GET',
params: { id: '@id', action: 'logs' }, params: { id: '@id', action: 'logs' },
timeout: 4500,
ignoreLoadingBar: true, ignoreLoadingBar: true,
transformResponse: logsHandler, transformResponse: logsHandler,
}, },

View File

@ -18,10 +18,9 @@ angular.module('portainer.docker').factory('System', [
info: { info: {
method: 'GET', method: 'GET',
params: { action: 'info' }, params: { action: 'info' },
timeout: 15000,
interceptor: InfoInterceptor, interceptor: InfoInterceptor,
}, },
version: { method: 'GET', params: { action: 'version' }, timeout: 4500, interceptor: VersionInterceptor }, version: { method: 'GET', params: { action: 'version' }, interceptor: VersionInterceptor },
events: { events: {
method: 'GET', method: 'GET',
params: { action: 'events', since: '@since', until: '@until' }, params: { action: 'events', since: '@since', until: '@until' },

View File

@ -17,7 +17,6 @@ angular.module('portainer.docker').factory('Task', [
logs: { logs: {
method: 'GET', method: 'GET',
params: { id: '@id', action: 'logs' }, params: { id: '@id', action: 'logs' },
timeout: 4500,
ignoreLoadingBar: true, ignoreLoadingBar: true,
transformResponse: logsHandler, transformResponse: logsHandler,
}, },

View File

@ -18,7 +18,7 @@ angular.module('portainer.docker').factory('Volume', [
endpointId: EndpointProvider.endpointID, endpointId: EndpointProvider.endpointID,
}, },
{ {
query: { method: 'GET', interceptor: VolumesInterceptor, timeout: 15000 }, query: { method: 'GET', interceptor: VolumesInterceptor },
get: { method: 'GET', params: { id: '@id' } }, get: { method: 'GET', params: { id: '@id' } },
create: { create: {
method: 'POST', method: 'POST',

View File

@ -12,9 +12,9 @@ angular.module('portainer.integrations.storidge').factory('Storidge', [
{ {
rebootCluster: { method: 'POST', params: { resource: 'clusters', action: 'reboot' } }, rebootCluster: { method: 'POST', params: { resource: 'clusters', action: 'reboot' } },
shutdownCluster: { method: 'POST', params: { resource: 'clusters', action: 'shutdown' } }, shutdownCluster: { method: 'POST', params: { resource: 'clusters', action: 'shutdown' } },
queryEvents: { method: 'GET', params: { resource: 'clusters', action: 'events' }, timeout: 4500, ignoreLoadingBar: true, isArray: true }, queryEvents: { method: 'GET', params: { resource: 'clusters', action: 'events' }, ignoreLoadingBar: true, isArray: true },
getVersion: { method: 'GET', params: { resource: 'clusters', action: 'version' } }, getVersion: { method: 'GET', params: { resource: 'clusters', action: 'version' } },
getInfo: { method: 'GET', params: { resource: 'clusters', action: 'info' }, timeout: 4500, ignoreLoadingBar: true }, getInfo: { method: 'GET', params: { resource: 'clusters', action: 'info' }, ignoreLoadingBar: true },
queryNodes: { method: 'GET', params: { resource: 'nodes' } }, queryNodes: { method: 'GET', params: { resource: 'nodes' } },
getNode: { method: 'GET', params: { resource: 'nodes', id: '@id' } }, getNode: { method: 'GET', params: { resource: 'nodes', id: '@id' } },

View File

@ -14,7 +14,6 @@ angular.module('portainer.kubernetes').factory('KubernetesComponentStatus', [
{ {
get: { get: {
method: 'GET', method: 'GET',
timeout: 15000,
ignoreLoadingBar: true, ignoreLoadingBar: true,
}, },
} }

View File

@ -15,7 +15,6 @@ angular.module('portainer.kubernetes').factory('KubernetesEndpoints', [
{ {
get: { get: {
method: 'GET', method: 'GET',
timeout: 15000,
ignoreLoadingBar: true, ignoreLoadingBar: true,
}, },
} }

View File

@ -17,7 +17,6 @@ angular.module('portainer.kubernetes').factory('KubernetesHorizontalPodAutoScale
{ {
get: { get: {
method: 'GET', method: 'GET',
timeout: 15000,
ignoreLoadingBar: true, ignoreLoadingBar: true,
}, },
getYaml: { getYaml: {

View File

@ -15,7 +15,6 @@ function factory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
{ {
get: { get: {
method: 'GET', method: 'GET',
timeout: 15000,
ignoreLoadingBar: true, ignoreLoadingBar: true,
}, },
getYaml: { getYaml: {

View File

@ -16,7 +16,6 @@ angular.module('portainer.kubernetes').factory('KubernetesNodes', [
{ {
get: { get: {
method: 'GET', method: 'GET',
timeout: 15000,
ignoreLoadingBar: true, ignoreLoadingBar: true,
}, },
getYaml: { getYaml: {

View File

@ -17,7 +17,6 @@ angular.module('portainer.kubernetes').factory('KubernetesConfigMaps', [
{ {
get: { get: {
method: 'GET', method: 'GET',
timeout: 15000,
ignoreLoadingBar: true, ignoreLoadingBar: true,
}, },
getYaml: { getYaml: {

View File

@ -17,7 +17,6 @@ angular.module('portainer.kubernetes').factory('KubernetesControllerRevisions',
{ {
get: { get: {
method: 'GET', method: 'GET',
timeout: 15000,
ignoreLoadingBar: true, ignoreLoadingBar: true,
}, },
getYaml: { getYaml: {

View File

@ -17,7 +17,6 @@ angular.module('portainer.kubernetes').factory('KubernetesDaemonSets', [
{ {
get: { get: {
method: 'GET', method: 'GET',
timeout: 15000,
ignoreLoadingBar: true, ignoreLoadingBar: true,
}, },
getYaml: { getYaml: {

View File

@ -17,7 +17,6 @@ angular.module('portainer.kubernetes').factory('KubernetesDeployments', [
{ {
get: { get: {
method: 'GET', method: 'GET',
timeout: 15000,
ignoreLoadingBar: true, ignoreLoadingBar: true,
}, },
getYaml: { getYaml: {

View File

@ -11,7 +11,6 @@ angular.module('portainer.kubernetes').factory('KubernetesEndpoints', function K
{ {
get: { get: {
method: 'GET', method: 'GET',
timeout: 15000,
ignoreLoadingBar: true, ignoreLoadingBar: true,
}, },
} }

View File

@ -17,7 +17,6 @@ angular.module('portainer.kubernetes').factory('KubernetesEvents', [
{ {
get: { get: {
method: 'GET', method: 'GET',
timeout: 15000,
ignoreLoadingBar: true, ignoreLoadingBar: true,
}, },
getYaml: { getYaml: {

View File

@ -7,7 +7,7 @@ angular.module('portainer.kubernetes').factory('KubernetesHealth', [
API_ENDPOINT_ENDPOINTS + '/:id/kubernetes/healthz', API_ENDPOINT_ENDPOINTS + '/:id/kubernetes/healthz',
{}, {},
{ {
ping: { method: 'GET', timeout: 15000, params: { id: 'id' } }, ping: { method: 'GET', params: { id: 'id' } },
} }
); );
}, },

View File

@ -16,7 +16,6 @@ angular.module('portainer.kubernetes').factory('KubernetesNamespaces', [
{ {
get: { get: {
method: 'GET', method: 'GET',
timeout: 15000,
ignoreLoadingBar: true, ignoreLoadingBar: true,
}, },
getYaml: { getYaml: {

View File

@ -17,7 +17,6 @@ angular.module('portainer.kubernetes').factory('KubernetesPersistentVolumeClaims
{ {
get: { get: {
method: 'GET', method: 'GET',
timeout: 15000,
ignoreLoadingBar: true, ignoreLoadingBar: true,
}, },
getYaml: { getYaml: {

View File

@ -18,7 +18,6 @@ angular.module('portainer.kubernetes').factory('KubernetesPods', [
{ {
get: { get: {
method: 'GET', method: 'GET',
timeout: 15000,
ignoreLoadingBar: true, ignoreLoadingBar: true,
}, },
getYaml: { getYaml: {

View File

@ -17,7 +17,6 @@ angular.module('portainer.kubernetes').factory('KubernetesReplicaSets', [
{ {
get: { get: {
method: 'GET', method: 'GET',
timeout: 15000,
ignoreLoadingBar: true, ignoreLoadingBar: true,
}, },
getYaml: { getYaml: {

View File

@ -17,7 +17,6 @@ angular.module('portainer.kubernetes').factory('KubernetesResourceQuotas', [
{ {
get: { get: {
method: 'GET', method: 'GET',
timeout: 15000,
ignoreLoadingBar: true, ignoreLoadingBar: true,
}, },
getYaml: { getYaml: {

View File

@ -17,7 +17,6 @@ angular.module('portainer.kubernetes').factory('KubernetesSecrets', [
{ {
get: { get: {
method: 'GET', method: 'GET',
timeout: 15000,
ignoreLoadingBar: true, ignoreLoadingBar: true,
}, },
getYaml: { getYaml: {

View File

@ -17,7 +17,6 @@ angular.module('portainer.kubernetes').factory('KubernetesServices', [
{ {
get: { get: {
method: 'GET', method: 'GET',
timeout: 15000,
ignoreLoadingBar: true, ignoreLoadingBar: true,
}, },
getYaml: { getYaml: {

View File

@ -17,7 +17,6 @@ angular.module('portainer.kubernetes').factory('KubernetesStatefulSets', [
{ {
get: { get: {
method: 'GET', method: 'GET',
timeout: 15000,
ignoreLoadingBar: true, ignoreLoadingBar: true,
}, },
getYaml: { getYaml: {

View File

@ -16,7 +16,6 @@ angular.module('portainer.kubernetes').factory('KubernetesStorage', [
{ {
get: { get: {
method: 'GET', method: 'GET',
timeout: 15000,
ignoreLoadingBar: true, ignoreLoadingBar: true,
}, },
getYaml: { getYaml: {