The migration script is pulling in content from somewhere that no longer exists. For example, these pages:
These docs were removed/EoLed a long time ago and redirect to Infra docs.
Redirect to appropriate destination
It's possible these pages are still hanging out somewhere in Drupal as "dummy docs," in which case it would be good to have @roadlittledawn help investigate/resolve.
@austin-schaefer we are currently pulling that data from the docs endpoints: /api/migration/content/<type>/list. As you mentioned, we likely need to do a little work on the Drupal side to ensure these "dead" docs don't get synced as real pages.
we're pulling from dev, so that may be the cause here. dev is behind prod database. i haven't synced that in...month or more
@roadlittledawn : Hmm, I think these pages were deleted summer 2019-ish, so shouldn't be impacted by a belated sync.
ah those look like dummy docs. dummy docs are going to be hard to detect because they essentially look like a normal node. @austin-schaefer do we think that all dummy docs have text Redirect to WHATEVER in their body?
and are all "archived" docs unpublished? i can't remember what the workaround process was for archiving. I _think_ we unpublished them and set a redirect if applicable, right?
I think we'll eventually have to address this issue as part of redirects MMF. We don't currently have any redirect functionality in place.
It will be tricky to catch "dummy doc" and "archived" doc redirects. "Dummy docs" are a workaround for adding doc links to multiple categories/nav menus. "Archived" docs are old docs that still exist on the back end of the site (content is not available to front end) to redirect to another URL. Both types essentially masquerade as a redirect (or sometimes, collection of redirects) to another URL.
One way to do this might be to add this functionality to migration script:
gatsby-plugin-redirect-from plugindocId field in JSON to ask the redirects resource what URLs should redirect to _this_ doc, and check if this doc redirects to another URL.redirect_from in this doc/mdx file.I'd like to propose we fix this in MMF11 as It would be nice to have all migration tasks done as we going into the final stages of the project, @jerelmiller / @zstix / @roadlittledawn what do you think?
@jpvajda I believe the remaining work here is mostly dummy docs. There have been several instances of rogue content coming over which I've been able to fix by tweaking Drupal source (wrong URL paths for release notes and landing pages, filtering certain special nodes out of the JSON, etc).
After doing some of the redirect work and looking at dummy docs currently in the repo, I think it's going to be pretty tough to programmatically find and remove dummy docs. Maybe we add to a production readiness checklist / audit after migration but before launch? For example, I was able to search src/content/docs for Redirects to (a common but not standard thing for a TW to enter for the body content of a dummy doc) and quickly determine what was a dummy doc. One PR for that and if many eyes are on the repo, maybe we catch all the others?
@roadlittledawn what are dummy docs used for?
@jpvajda essentially a Drupal node masquerading as a redirect. it was a workaround to add links to the same piece of content in more than one category's menu. more info in this comment above