summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/feature_compatibility_version_documentation.h
diff options
context:
space:
mode:
authorJason Chan <jason.chan@mongodb.com>2020-07-21 15:32:41 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-07-21 21:56:12 +0000
commitbbe2ef4b43290421b406684f204d0ef7100c5d57 (patch)
tree7c80f6bebf0c13f880f6910d4350bb1ed0900cd4 /src/mongo/db/commands/feature_compatibility_version_documentation.h
parent11545c03ed7294b114613dfb168bc6bc42e99fe3 (diff)
downloadmongo-bbe2ef4b43290421b406684f204d0ef7100c5d57.tar.gz
SERVER-49733 Parameterize the URLs referenced in feature_compatibility_version_documentation.h
Diffstat (limited to 'src/mongo/db/commands/feature_compatibility_version_documentation.h')
-rw-r--r--src/mongo/db/commands/feature_compatibility_version_documentation.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/mongo/db/commands/feature_compatibility_version_documentation.h b/src/mongo/db/commands/feature_compatibility_version_documentation.h
index 3c3c122d9d1..2926667d9ab 100644
--- a/src/mongo/db/commands/feature_compatibility_version_documentation.h
+++ b/src/mongo/db/commands/feature_compatibility_version_documentation.h
@@ -29,11 +29,19 @@
#pragma once
+#include <fmt/format.h>
+
+#include "mongo/db/commands/feature_compatibility_version_parser.h"
+
namespace mongo {
namespace feature_compatibility_version_documentation {
-constexpr StringData kCompatibilityLink =
- "https://docs.mongodb.com/master/release-notes/4.4-compatibility/#feature-compatibility"_sd;
-constexpr StringData kUpgradeLink =
- "https://docs.mongodb.com/master/release-notes/4.4/#upgrade-procedures"_sd;
+using namespace fmt::literals;
+
+const std::string kCompatibilityLink =
+ "https://docs.mongodb.com/master/release-notes/{}-compatibility/#feature-compatibility"_format(
+ FeatureCompatibilityVersionParser::kLastLTS);
+const std::string kUpgradeLink =
+ "https://docs.mongodb.com/master/release-notes/{}/#upgrade-procedures"_format(
+ FeatureCompatibilityVersionParser::kLastLTS);
} // namespace feature_compatibility_version_documentation
} // namespace mongo