Sha256: 56bf27caca2c4f14b3383173c8976f92b1fe7830405f313e31f96c3971711922

Contents?: true

Size: 1.11 KB

Versions: 20

Compression:

Stored size: 1.11 KB

Contents

import Immutable from 'seamless-immutable';

export const initialState = Immutable({
  isPolling: false,
  jobInvocations: [],
  statuses: [],
});

export const pollingStarted = Immutable({
  isPolling: true,
  jobInvocations: [],
  statuses: [],
});

export const jobInvocationsPayload = Immutable({
  jobInvocations: {
    job_invocations: [
      [
        'Success',
        100,
        '#B7312D',
      ],
      [
        'Failed',
        20,
        '#B7312D',
      ],
      [
        'Pending',
        40,
        '#B7312D',
      ],
      [
        'Cancelled',
        0,
        '#B7312D',
      ],
    ],
    statuses: {
      cancelled: 0,
      failed: 0,
      pending: 0,
      success: 1,
    },
  },
});

export const jobInvocationsReceived = Immutable({
  isPolling: true,
  jobInvocations: [
    [
      'Success',
      100,
      '#B7312D',
    ],
    [
      'Failed',
      20,
      '#B7312D',
    ],
    [
      'Pending',
      40,
      '#B7312D',
    ],
    [
      'Cancelled',
      0,
      '#B7312D',
    ],
  ],
  statuses: {
    cancelled: 0,
    failed: 0,
    pending: 0,
    success: 1,
  },
});

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
foreman_remote_execution-1.8.3 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-1.8.2 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-1.8.1 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-1.8.0 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-1.7.1 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-1.7.0 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-1.6.7 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-1.6.6 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-1.6.5 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-1.6.4 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-1.5.6 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-1.6.3 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-1.6.2 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-1.5.5 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-1.6.1 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-1.6.0 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-1.5.4 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-1.5.3 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-1.5.2 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-1.5.1 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js