Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OneUptime Copilot] Improve Comments on /App/FeatureSet/ApiReference/Service/DataType.ts #1619

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions App/FeatureSet/ApiReference/Service/DataType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default class ServiceHandler {
): Promise<void> {
const pageData: any = {};

// Fetch and cache the 'select' code example
pageData.selectCode = await LocalCache.getOrSetString(
"data-type",
"select",
Expand All @@ -21,6 +22,7 @@ export default class ServiceHandler {
},
);

// Fetch and cache the 'sort' code example
pageData.sortCode = await LocalCache.getOrSetString(
"data-type",
"sort",
Expand All @@ -29,6 +31,7 @@ export default class ServiceHandler {
},
);

// Fetch and cache the 'equal-to' code example
pageData.equalToCode = await LocalCache.getOrSetString(
"data-type",
"equal-to",
Expand All @@ -37,6 +40,7 @@ export default class ServiceHandler {
},
);

// Fetch and cache the 'equal-to-or-null' code example
pageData.equalToOrNullCode = await LocalCache.getOrSetString(
"data-type",
"equal-to-or-null",
Expand All @@ -47,6 +51,7 @@ export default class ServiceHandler {
},
);

// Fetch and cache the 'greater-than' code example
pageData.greaterThanCode = await LocalCache.getOrSetString(
"data-type",
"greater-than",
Expand All @@ -57,6 +62,7 @@ export default class ServiceHandler {
},
);

// Fetch and cache the 'greater-than-or-equal' code example
pageData.greaterThanOrEqualCode = await LocalCache.getOrSetString(
"data-type",
"greater-than-or-equal",
Expand All @@ -67,9 +73,11 @@ export default class ServiceHandler {
},
);

// Fetch and cache the 'less-than' code example
pageData.lessThanCode = await LocalCache.getOrSetString(
"data-type",
"less-than",

async () => {
return await LocalFile.read(
`${CodeExamplesPath}/DataTypes/LessThan.md`,
Expand Down
Loading