Open Thorben-D opened 2 weeks ago
@MariaAga what is our policy about links embedded into the UI, like this one: https://github.com/theforeman/foreman_rh_cloud/blob/e2ea8640c1014ef6895ed435cf4b2b31a82a39c7/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js#L44-L50
I suppose we need to make sure this link goes through our links controller. What would be the best way to do it?
@Thorben-D Some of those links, like https://github.com/theforeman/foreman_rh_cloud/blob/e2ea8640c1014ef6895ed435cf4b2b31a82a39c7/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/fixtures.js#L23
come from fixtures. There is no point in changing those. We can remove them from the list right away.
We dont have a links controller in JS, I suppose we could make some tests that check that links are not dead in this repo.
I only found an example for an external link in katello and its not treated specially <a href="https://access.redhat.com/articles/1586183">
and
export const SUBSCRIPTIONS_SERVICE_URL = 'https://console.redhat.com/subscriptions';
<a
href={SUBSCRIPTIONS_SERVICE_URL}
className="btn btn-default"
target="_blank"
rel="noreferrer"
>
I found quite a few links that refer the user to access.redhat.com/*. Some of these are already dead, so I think it would be wise for us to find replacements or verify that the links will continue to be available in the future:
[] 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
[] https://access.redhat.com/documentation/en-us/subscription_central/2020-04/html/getting_started_with_subscription_watch/assembly-about-subscriptionwatch
[] https://access.redhat.com/node/54483
[] https://access.redhat.com/node/3359651
[] https://access.redhat.com/node/4134081
[] https://access.redhat.com/node/3560291
[] https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/managing_monitoring_and_updating_the_kernel/installing-and-configuring-kdump_managing-monitoring-and-updating-the-kernel#memory-requirements-for-kdump_supported-kdump-configurations-and-targets
[] https://access.redhat.com/solutions/916043
[] https://access.redhat.com/security/vulnerabilities/smbloris
[] https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/kernel_administration_guide/kernel_crash_dump_guide#sect-kdump-memory-requirements
[] https://access.redhat.com/solutions/916043
[] https://cert-api.access.redhat.com/
[] https://access.redhat.com/node/3359651
[] https://access.redhat.com/documentation/en-us/subscription_central/2020-04/html/getting_started_with_subscription_watch/assembly-about-subscriptionwatch
I'll create a PR once we checked off every link.