WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.

Commit 9521e1a

Browse files
committed
Updates re: missing product info
1 parent 38abf46 commit 9521e1a

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

audit/common/Constants.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ const (
107107
StreamProcessingDir = "atlas-stream-processing"
108108
TriggersDir = "triggers"
109109
VectorSearchDir = "atlas-vector-search"
110+
AiIntegrationsDir = "ai-integrations"
110111
)
111112

112113
var CanonicalLanguages = []string{Bash, C, CPP,

audit/common/GetProductInfo.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ func GetProductInfo(projectOrSubdir string) ProductInfo {
2323
}
2424

2525
var SubProductDirs = []string{
26+
AiIntegrationsDir,
2627
DataFederationDir,
2728
OnlineArchiveDir,
2829
StreamProcessingDir,
@@ -32,6 +33,11 @@ var SubProductDirs = []string{
3233
}
3334

3435
var productInfoMap = map[string]ProductInfo{
36+
"ai-integrations": {
37+
ProductName: Atlas,
38+
ProductType: DirIsSubProduct,
39+
SubProduct: VectorSearch,
40+
},
3541
"atlas-cli": {
3642
ProductName: Atlas,
3743
ProductType: CollectionIsSubProduct,

audit/gdcd/GetProductSubProduct.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ func GetProductSubProduct(project string, page string) (string, string) {
2323
productInfo = common.GetProductInfo(dir)
2424
}
2525
}
26+
// If the project is cloud-docs and we didn't find a sub-product in the page ID, just return the product info
27+
// for the project itself.
28+
if productInfo.ProductName == "" {
29+
productInfo = common.GetProductInfo(project)
30+
}
2631
} else {
2732
// Otherwise, just get the product/sub-product info defined in the common package
2833
productInfo = common.GetProductInfo(project)

0 commit comments

Comments
 (0)