[SERVER-63970] Links in source should get updated when CMS changes to avoid staleness Created: 24/Feb/22  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Matt Kneiser Assignee: Backlog - Storage Execution Team
Resolution: Unresolved Votes: 0
Labels: documentation
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Storage Execution
Operating System: ALL
Participants:

 Description   

There's a broken link here:

https://github.com/mongodb/mongo/blob/master/src/mongo/db/storage/kv/kv_engine.h#L248

 

/**
  * Returns true if storage engine supports --directoryperdb.
  * See:
  *     http://docs.mongodb.org/manual/reference/program/mongod/#cmdoption--directoryperdb
  */

The correct link is now:

ttps://docs.mongodb.com/manual/reference/program/mongod/#std-option-mongod.–directoryperdb

 

But this points to a broader problem that we should be checking links in source, especially links to our own website/CMS, particularly links that refer to paragraphs within a page.

 

Helpful commands:

 

$ grep -hro "http[s]\?\://docs.mongodb[^[:space:]^(^)^\"^\\\']\+" src/mongo | grep -v "{}" | grep "#" | wc -l
30

$ grep -hro "http[s]\?\://docs.mongodb[^[:space:]^(^)^\"^\\\']\+" src/mongo | grep -v "{}" | grep "#" | xargs -I{} curl --silent --head --write-out '%{http_code} %{url_effective}\n' -o /dev/null {} | grep -v "^200" | wc -l
5

 

$ grep -hro "http[s]\?\://.*mongodb\.\(org\|com\)[^[:space:]^(^)^\"^\\\'^\.^\>]\+" src/mongo | sort | uniq | wc -l
116

 



 Comments   
Comment by Connie Chen [ 12/Apr/22 ]

Make sure these links in source are the proper doclinks 

Generated at Thu Feb 08 05:59:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.