Skip to content

Commit

Permalink
Handles resources like ugnt and uhb to not give healthcheck errors
Browse files Browse the repository at this point in the history
  • Loading branch information
richmahn committed Dec 31, 2024
1 parent 3ddfcaf commit e5e4f97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/repo/door43healthcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func (dm *Door43Metadata) GetHealthcheck(ctx context.Context) *HealthcheckGroupe

// Check for relations in other languages
for _, relation := range dm.Relations {
if relation.Language != dm.Language && relation.Language != "hbo" && relation.Language != "el-x-koine" {
if relation.Language != dm.Language && relation.Language != "hbo" && relation.Language != "el-x-koine" && dm.Repo.Owner.LowerName != "unfoldingword" {
item := &Door43HealthcheckIssue{
IssueCode: IssueCodeRelation,
SeverityLevel: SeverityLevelError,
Expand All @@ -320,7 +320,7 @@ func (dm *Door43Metadata) GetHealthcheck(ctx context.Context) *HealthcheckGroupe
doneIngredientTitle := false
for _, ingredient := range dm.Ingredients {
// Acts, Numbers and Deuteronomy are only in English and not other languages, so using those
if !doneIngredientTitle && (ingredient.Title == "" || (dm.Language != "en" && (ingredient.Title == "Numbers" || ingredient.Title == "Deuteronomy" || ingredient.Title == "Acts"))) {
if !doneIngredientTitle && dm.Repo.Owner.LowerName != "unfoldingword" && (ingredient.Title == "" || (dm.Language != "en" && (ingredient.Title == "Numbers" || ingredient.Title == "Deuteronomy" || ingredient.Title == "Acts"))) {
doneIngredientTitle = true
item := &Door43HealthcheckIssue{
IssueCode: IssueCodeIngredientTitle,
Expand Down
2 changes: 2 additions & 0 deletions modules/dcs/subjects.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ var ResourceToSubjectMap = map[string]string{
"obs-sq-tsv": "TSV OBS Study Questions",
"obs-tn-tsv": "TSV OBS Translation Notes",
"obs-tq-tsv": "TSV OBS Translation Questions",
"ugnt": "Greek New Testament",
"uhb": "Hebrew Old Testament",
"ult": "Aligned Bible",
"ust": "Aligned Bible",
}
Expand Down

0 comments on commit e5e4f97

Please sign in to comment.