Update bad db doc links
What does this MR do and why?
Relates to gitlab-org/database-team/team-tasks#246 (closed)
I created a script that went and figured out the proper attributions for tables that were accidentally attributed to 9af97ee6
I went through and manually verified the merge request links and they appear to all be valid!
#! /bin/bash
if [ -z $1 ]; then
for i in $(ag -l 9af97ee69a36de1dc4e73f4030d6316d3f0a82c5 -- db/docs/); do
TABLE=$(echo $i | sed -e 's,.*/,,' -e 's,.yml,,')
MR_ID=$(git log --reverse $(git log --pretty=format:"%h" $(ag -l "create_table :${TABLE}" db/migrate) | tail -1)..master --ancestry-path --merges | grep "gitlab-org/gitlab" -m 1 | sed 's/.*!//g')
echo ${TABLE}.yml - https://gitlab.com/gitlab-org/gitlab/-/merge_requests/${MR_ID}
test -z $MR_ID || echo $MR_ID | grep " " || sed -i -e "s,commit/9af97ee69a36de1dc4e73f4030d6316d3f0a82c5,merge_requests/$MR_ID," $i && rm $i-e
done
else
git log --reverse $(git log --pretty=format:"%h" $(ag -l "create_table :${1}" db/migrate) | tail -1)..master --ancestry-path
fi
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Simon Tomlinson