Find duplicates of redirects.yaml
The following discussion from !2008 (merged) should be addressed:
-
@marcel.amirault started a discussion: (+4 comments) @axil Could you take a look?
🙏 BTW, do you think it would be complicated to add a check that looks for duplicate entries? Somehow this redirect wasn't working (I think), as we had a pipeline failure yesterday related to this, and the only problem I could find was that it was duplicated... https://gitlab.com/gitlab-org/gitlab-docs/-/jobs/1470249143
I used the following snippet, and it already found a bunch of duplicates
grep -Ir " - from:" content/_data/redirects.yaml | sort | uniq -d
- from: /ee/administration/geo/replication/remove_geo_node.html
- from: /ee/api/project_analytics.html
- from: /ee/ci/chatops/README.html
- from: /ee/ci/docker/README.html
- from: /ee/ci/examples/test-clojure-application.html
- from: /ee/ci/quick_start/README.html
- from: /ee/ci/services/README.html
- from: /ee/ci/ssh_keys/README.html
- from: /ee/development/documentation/styleguide.html
- from: /ee/development/new_fe_guide/dependencies.html
- from: /ee/development/product_analytics/snowplow.html
- from: /ee/development/product_analytics/usage_ping.html
- from: /ee/development/usage_ping.html
- from: /ee/downgrade_ee_to_ce/README.html
- from: /ee/gitlab-basics/create-project.html
- from: /ee/gitlab-basics/fork-project.html
- from: /ee/gitlab-basics/README.html
- from: /ee/install/README.html
- from: /ee/intro/README.html
- from: /ee/legal/README.html
- from: /ee/operations/incident_management/alert_integrations.html
- from: /ee/operations/incident_management/alert_notifications.html
- from: /ee/raketasks/README.html
- from: /ee/topics/web_application_firewall/
- from: /ee/topics/web_application_firewall/index.html
- from: /ee/topics/web_application_firewall/quick_start_guide.html
- from: /ee/university/README.html
- from: /ee/university/training/gitlab_flow.html
- from: /ee/update/README.html
- from: /ee/user/project/clusters/securing.html
- from: /ee/user/project/merge_requests/work_in_progress_merge_requests.html
- from: /ee/user/project/milestones/burndown_charts.html