-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into snyk-fix-183152281d2b39b416c82314af7227c9
- Loading branch information
Showing
26 changed files
with
4,974 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+138 KB
images/images/version1.3.0/use-cases/configure-mongodb/add-access-list-entry.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+57.6 KB
images/images/version1.3.0/use-cases/configure-mongodb/api-access-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+164 KB
images/images/version1.3.0/use-cases/configure-mongodb/create-api-key.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+161 KB
images/images/version1.3.0/use-cases/configure-mongodb/host-mapping.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+111 KB
images/images/version1.3.0/use-cases/configure-mongodb/ops-access-manager.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+189 KB
images/images/version1.3.0/use-cases/configure-mongodb/ops-deployment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+160 KB
images/images/version1.3.0/use-cases/configure-mongodb/ops-manager-db.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+78.2 KB
images/images/version1.3.0/use-cases/configure-mongodb/ops-manager-ui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+69 KB
images/images/version1.3.0/use-cases/configure-mongodb/ops-organizations.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+86.9 KB
images/images/version1.3.0/use-cases/configure-mongodb/organization-settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+228 KB
images/images/version1.3.0/use-cases/configure-mongodb/replicaset-deployment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+55.3 KB
...images/version1.3.0/use-cases/configure-mongodb/replicaset-outside-clusters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+69.9 KB
.../images/version1.3.0/use-cases/configure-mongodb/replicaset-within-clusters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+141 KB
images/images/version1.3.0/use-cases/configure-mongodb/save-api-key-info.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
function uniquePath(path) { | ||
const segments = path?.split("/").filter(Boolean); | ||
for (let i = 0; i < segments.length; i++) { | ||
if (segments.length === 2 && segments[i] === segments[i + 1]) { | ||
return segments[0] + "/"; | ||
} | ||
} | ||
return path; | ||
} | ||
|
||
|
||
export function getValidPaths(items) { | ||
return items?.flatMap((item) => { | ||
const paths = []; | ||
|
||
if (item?.label) { | ||
if (item.label !== "Overview") { | ||
const formattedTitle = `category/${item?.label.toLowerCase().replace(/\s+/g, "-")}`; | ||
paths.push(formattedTitle); | ||
} | ||
} | ||
|
||
if (item?.items) { | ||
paths.push(...getValidPaths(item?.items)); | ||
} else if (typeof item === "string") { | ||
paths.push(uniquePath(item)); | ||
} | ||
|
||
return paths; | ||
}); | ||
} |
Oops, something went wrong.