Skip to content

Commit

Permalink
fix: PMOS - rename category unmaintained as archived
Browse files Browse the repository at this point in the history
  • Loading branch information
kedio-labs committed Oct 29, 2024
1 parent 51804fa commit f4b7e78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion appConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"includeMain": true,
"includeCommunity": true,
"includeTesting": false,
"includeUnmaintained": false
"includeArchived": false
},
"ubuntutouch": {
"includeProgressLevelAboveThreshold": 80,
Expand Down
8 changes: 4 additions & 4 deletions src/ts/device_summary_extractor/pmos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const PMOS_CATEGORIES = {
main: 'main',
community: 'community',
testing: 'testing',
unmaintained: 'unmaintained',
archived: 'archived',
unknown: 'UNKNOWN_PMOS_CATEGORY',
};

Expand All @@ -40,8 +40,8 @@ const getPmosCategory = (deviceInfoFilePath: string) => {
if (deviceInfoFilePath.includes(`/${PMOS_CATEGORIES.testing}/`)) {
return PMOS_CATEGORIES.testing;
}
if (deviceInfoFilePath.includes(`/${PMOS_CATEGORIES.unmaintained}/`)) {
return PMOS_CATEGORIES.unmaintained;
if (deviceInfoFilePath.includes(`/${PMOS_CATEGORIES.archived}/`)) {
return PMOS_CATEGORIES.archived;
}

logger.error(`[PMOS] ERROR - Unknown category in filepath: ${deviceInfoFilePath}`);
Expand All @@ -67,7 +67,7 @@ const shouldIncludePmosCategory = (pmosCategory: string) => {
(pmosCategory === PMOS_CATEGORIES.main && appConfig.pmos.includeMain) ||
(pmosCategory === PMOS_CATEGORIES.community && appConfig.pmos.includeCommunity) ||
(pmosCategory === PMOS_CATEGORIES.testing && appConfig.pmos.includeTesting) ||
(pmosCategory === PMOS_CATEGORIES.unmaintained && appConfig.pmos.includeUnmaintained)
(pmosCategory === PMOS_CATEGORIES.archived && appConfig.pmos.includeArchived)
);
};

Expand Down

0 comments on commit f4b7e78

Please sign in to comment.