Sha256: 5b90176fc8ed2718295eec0f682fbd23590ad2ad967a110f3e25a170108d4758

Contents?: true

Size: 787 Bytes

Versions: 69

Compression:

Stored size: 787 Bytes

Contents

import api, { orgId } from '../../../services/api';
import {
  ANSIBLE_COLLECTION_DETAILS_ERROR,
  ANSIBLE_COLLECTION_DETAILS_REQUEST,
  ANSIBLE_COLLECTION_DETAILS_SUCCESS,
} from './AnsibleCollectionDetailsConstants';
import { apiError } from '../../../utils/helpers';

export const getAnsibleCollectionDetails = ansibleCollectionId => async (dispatch) => {
  dispatch({ type: ANSIBLE_COLLECTION_DETAILS_REQUEST });

  try {
    const { data } = await api.get(`/ansible_collections/${ansibleCollectionId}`, {}, { organization_id: orgId() });
    return dispatch({
      type: ANSIBLE_COLLECTION_DETAILS_SUCCESS,
      response: data,
    });
  } catch (error) {
    return dispatch(apiError(ANSIBLE_COLLECTION_DETAILS_ERROR, error));
  }
};

export default getAnsibleCollectionDetails;

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
katello-4.1.0.rc2.2 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsActions.js
katello-4.1.0.rc2.1 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsActions.js
katello-4.0.1.1 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsActions.js
katello-3.18.3 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsActions.js
katello-4.1.0.rc2 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsActions.js
katello-4.0.1 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsActions.js
katello-4.1.0.rc1.1 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsActions.js
katello-4.1.0.rc1 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsActions.js
katello-4.0.0 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsActions.js
katello-4.0.0.rc3.1 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsActions.js
katello-4.0.0.rc3 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsActions.js
katello-3.18.2.1 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsActions.js
katello-3.18.2 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsActions.js
katello-3.17.3 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsActions.js
katello-4.0.0.rc2 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsActions.js
katello-3.18.1.1 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsActions.js
katello-3.17.2 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsActions.js
katello-4.0.0.rc1 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsActions.js
katello-3.18.1 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsActions.js
katello-3.18.0 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsActions.js