-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature(tool/move): update files pointing to the moved document(s) #8493
Conversation
Can we have a review on this? @claas or @LeoMcA ? #8372 proved valuable in keeping the number of flaws at bay. A few refactoring (like CSS) are ahead of us (as part of Mozilla's initiative to improve discoverability and navigability) and this feature will be needed to lower significantly the amount of menial work needed. |
This pull request has merge conflicts that must be resolved before it can be merged. |
This pull request has merge conflicts that must be resolved before it can be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@OnkarRuikar Sorry for taking so long to get back to you.
Two requests:
- Can you please fill out the PR template, especially the Problem, Solution and "How did you test the changes?" sections?
- Also, can you fix the tests?
Thank you! 🙌
PS: Converting to draft in the mean-time.
Closing because this has been implemented and thoroughly tested on content side. |
Fixes Rename Markdown links when an internal page is moved using
yarn content move
#8292Changes are almost same as Remove Markdown links in content when a page is deleted using command
yarn content delete
#8372The PR:
status
(new) andl10n
(translated content) frontmatter attributes tooptionalFrontMatterKeys
array. Without this changeDocument.saveFile()
removes these from metadata.referringFiles
type from array to set in delete command. When a dirctory is deleted multiple sub pages get deleted so the array was getting duplicate entries.