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

docs: DOC-181: Moved new helm chart section to LSE 2.3.1 section #5386

Merged
merged 2 commits into from
Jan 29, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Update release-notes.js
caitlinwheeless authored Jan 29, 2024
commit 91f400caf01e82a4ce380ae1ef349658d59deb0c
39 changes: 12 additions & 27 deletions docs/scripts/release-notes.js
Original file line number Diff line number Diff line change
@@ -3,35 +3,20 @@ const concatMd = require("concat-md");

hexo.extend.filter.register("after_init", async function () {
const compareVersions = (a, b) => {
const [aMain, aSub] = a.split('-').map((part) => part.split('.').map(Number));
const [bMain, bSub] = b.split('-').map((part) => part.split('.').map(Number));

// Compare main version
for (let i = 0; i < Math.max(aMain.length, bMain.length); i++) {
const aVal = aMain[i] || 0;
const bVal = bMain[i] || 0;

if (aVal > bVal) return -1;
if (aVal < bVal) return 1;
const versionRegExp = /(?<x>\d+)?\.(?<y>\d+)?\.(?<z>\d+)?(\.dev|dev-|-)?(?<n>\d+)?/;
const aMatch = a.match(versionRegExp);
const bMatch = b.match(versionRegExp);
const toInt = (a, d) => a.groups[d]? a.groups[d] * 1 : 0;
for (let d of ['x', 'y', 'z', 'n']) {
const aMatchInt = toInt(aMatch, d);
const bMatchInt = toInt(bMatch, d);
if (aMatchInt === bMatchInt)
continue;
return bMatchInt - aMatchInt;
}

// If main versions are equal, compare sub-versions
if (aSub && bSub) {
for (let i = 0; i < Math.max(aSub.length, bSub.length); i++) {
const aVal = aSub[i] || 0;
const bVal = bSub[i] || 0;

if (aVal > bVal) return -1;
if (aVal < bVal) return 1;
}
} else if (aSub) {
return -1;
} else if (bSub) {
return 1;
}

return 0;
return 0
};

const markdownFiles = await concatMd.default(
"source/guide/release_notes/onprem", {sorter: compareVersions}
);

Unchanged files with check annotations Beta

### Column
`Column` represents a single field of the dataset samle:

Check failure on line 317 in web/libs/datamanager/docs/api_reference.md

GitHub Actions / Check for spelling errors

samle ==> sample, same
| Property | Type | Description |
| -------- | ---- | ----------- |
| completed_at | DateTime | Creation date of the last annotation |
| predictions_result | String | |
| total_annotations | Int | Total annotations for the task |
| total_predictions | Int | Total predictions fo the task |

Check failure on line 436 in web/libs/datamanager/docs/api_reference.md

GitHub Actions / Check for spelling errors

fo ==> of, for, to, do, go
| data | Dict<String, Any> | Data from the dataset |
| extra | Dict<String, Any> | Any extra data for the task |
export const FF_LSDV_4583 = 'feat_front_lsdv_4583_multi_image_segmentation_short';
/**
* Enables new way of preloading/cacheing images

Check failure on line 162 in web/libs/frontend-test/src/feature-flags.ts

GitHub Actions / Check for spelling errors

cacheing ==> caching
*/
export const FF_LSDV_4583_6 = 'fflag_feat_front_lsdv_4583_6_images_preloading_short';
declare namespace Cypress {
interface Tresholdable {
treshold?: number;

Check failure on line 3 in web/libs/frontend-test/src/types/Cypress.d.ts

GitHub Actions / Check for spelling errors

treshold ==> threshold
}
interface CompareScreenshotOptions extends ScreenshotOptions {
withHidden: string[];
Cypress.Commands.add('compareScreenshot', {
prevSubject: ['element'],
}, (subject, name, compare, screenshotCompareOptions: Partial<Loggable & Timeoutable & CompareScreenshotOptions & Tresholdable> = {}) => {
const { treshold = 0.1, withHidden = [], ...screenshotOptions } = screenshotCompareOptions;

Check failure on line 65 in web/libs/frontend-test/src/cypress/support/commands.ts

GitHub Actions / Check for spelling errors

treshold ==> threshold
const screenshotName = getName(name);
const log = Cypress.log({
$el: subject,
const options = {
initialScreenshot: '',
currentScreenshot: '',
treshold,

Check failure on line 82 in web/libs/frontend-test/src/cypress/support/commands.ts

GitHub Actions / Check for spelling errors

treshold ==> threshold
compare,
};
export const LabelStudio = {
/**
* Initializes LabelStudio intance with given configuration

Check failure on line 133 in web/libs/frontend-test/src/helpers/LSF/LabelStudio.ts

GitHub Actions / Check for spelling errors

intance ==> instance, intense
*/
init(params: LSParams) {
cy.log('Initialize LSF');
},
/**
* Assers if the feature flag's state matches a given state

Check failure on line 265 in web/libs/frontend-test/src/helpers/LSF/LabelStudio.ts

GitHub Actions / Check for spelling errors

Assers ==> Asserts, Assert
* Checks for enabled flags by default
*/
shouldHaveFeatureFlag(flagName: string, enabled = true) {
/**
* Returns Cypress wrapper around a feature flag value.
* Allows performing asserions on it using `.should()`

Check failure on line 278 in web/libs/frontend-test/src/helpers/LSF/LabelStudio.ts

GitHub Actions / Check for spelling errors

asserions ==> assertions
*/
featureFlag(flagName: string) {
return this.getFeatureFlag(flagName).then(flagValue => {
this.drawingArea.then(el => {
const bbox: DOMRect = el[0].getBoundingClientRect();
const realX = x * bbox.width;
const realY = y * bbox.height;

Check failure on line 60 in web/libs/frontend-test/src/helpers/LSF/VideoView.ts

GitHub Actions / Check for spelling errors

realY ==> really, relay
this.clickAt(realX, realY, options);
});