Sha256: 321fd174bd25d219f0353ba73a7db7c85adeeb3a9c677bc1acceee914cc70f7a

Contents?: true

Size: 1000 Bytes

Versions: 12

Compression:

Stored size: 1000 Bytes

Contents

import URI from 'urijs';
import { foremanUrl } from '../ForemanRhCloudHelpers';

export const inventoryUrl = path =>
  foremanUrl(`/foreman_inventory_upload/${path}`);

export const getInventoryDocsUrl = () =>
  foremanUrl(
    `/links/manual/?root_url=${URI.encode(
      'https://access.redhat.com/documentation/en-us/red_hat_insights/2023/html/red_hat_insights_remediations_guide/host-communication-with-insights_red-hat-insights-remediation-guide#uploading-satellite-host-inventory-to-insights_configuring-satellite-cloud-connector'
    )}`
  );

export const getActionsHistoryUrl = () =>
  foremanUrl(
    '/foreman_tasks/tasks?search=action++%3D++ForemanInventoryUpload%3A%3AAsync%3A%3AGenerateReportJob+or+action++%3D++ForemanInventoryUpload%3A%3AAsync%3A%3AGenerateAllReportsJob&page=1'
  );

export const isExitCodeLoading = exitCode => {
  const exitCodeLC = exitCode.toLowerCase();
  return (
    exitCodeLC.indexOf('running') !== -1 ||
    exitCodeLC.indexOf('restarting') !== -1
  );
};

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
foreman_rh_cloud-10.0.3 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-11.0.3 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-9.0.59 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-11.0.2 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-11.0.1 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-11.0.0 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-9.0.58 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-10.0.2 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-9.0.57 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-10.0.1 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-9.0.56 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-9.0.55 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js