Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-63970

Links in source should get updated when CMS changes to avoid staleness

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Storage Execution
    • ALL

      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

       

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            matt.kneiser@mongodb.com Matt Kneiser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: