Skip to content

Commit

Permalink
Fix some typos (#5601)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpecLad committed Jan 19, 2023
1 parent 0f0913c commit 330f123
Show file tree
Hide file tree
Showing 34 changed files with 87 additions and 85 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
gen/generate.sh
cd ..
- name: Install test requrements
- name: Install test requirements
run: |
pip3 install --user cvat-sdk/
pip3 install --user cvat-cli/
Expand Down
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ non-ascii paths while adding files from "Connected file share" (issue #4428)
(<https://github.com/opencv/cvat/issues/4962>)
- HRNET serverless function (<https://github.com/opencv/cvat/pull/4944>)
- Invalid export of segmentation masks when the `background` label gets nonzero id (<https://github.com/opencv/cvat/pull/5056>)
- A trailing slash in hostname does't allow SDK to send some requests
- A trailing slash in hostname doesn't allow SDK to send some requests
(<https://github.com/opencv/cvat/pull/5057>)
- Double modal export/backup a task/project (<https://github.com/opencv/cvat/pull/5075>)
- Fixed bug of computing Job's unsolved/resolved issues numbers (<https://github.com/opencv/cvat/pull/5101>)
Expand Down Expand Up @@ -137,7 +137,7 @@ non-ascii paths while adding files from "Connected file share" (issue #4428)
- An exception when run export for an empty task (<https://github.com/opencv/cvat/pull/5396>)
- Fixed FBRS serverless function runtime error on images with alpha channel (<https://github.com/opencv/cvat/pull/5384>)
- Attaching manifest with custom name (<https://github.com/opencv/cvat/pull/5377>)
- Uploading non-zip annotaion files (<https://github.com/opencv/cvat/pull/5386>)
- Uploading non-zip annotation files (<https://github.com/opencv/cvat/pull/5386>)
- Loss of rotation in CVAT format (<https://github.com/opencv/cvat/pull/5407>)
- A permission problem with interactive model launches for workers in orgs (<https://github.com/opencv/cvat/issues/4996>)
- Fix chart not being upgradable (<https://github.com/opencv/cvat/pull/5371>)
Expand Down Expand Up @@ -222,7 +222,7 @@ Skeleton (<https://github.com/cvat-ai/cvat/pull/1>), (<https://github.com/opencv
- Added helm chart support for CVAT 2.X and made ingress compatible with Kubernetes >=1.22 (<https://github.com/openvinotoolkit/cvat/pull/4448>)

### Fixed
- Permission error occured when accessing the JobCommits (<https://github.com/openvinotoolkit/cvat/pull/4435>)
- Permission error occurred when accessing the JobCommits (<https://github.com/openvinotoolkit/cvat/pull/4435>)
- job assignee can remove or update any issue created by the task owner (<https://github.com/openvinotoolkit/cvat/pull/4436>)
- Bug: Incorrect point deletion with keyboard shortcut (<https://github.com/openvinotoolkit/cvat/pull/4420>)
- some AI Tools were not sending responses properly (<https://github.com/openvinotoolkit/cvat/issues/4432>)
Expand Down Expand Up @@ -307,7 +307,7 @@ Skeleton (<https://github.com/cvat-ai/cvat/pull/1>), (<https://github.com/opencv
- Annotations search does not work correctly in some corner cases (when use complex properties with width, height) (<https://github.com/openvinotoolkit/cvat/pull/4198>)
- Kibana requests are not proxied due to django-revproxy incompatibility with Django >3.2.x (<https://github.com/openvinotoolkit/cvat/issues/4085>)
- Content type for getting frame with tasks/{id}/data/ endpoint (<https://github.com/openvinotoolkit/cvat/pull/4333>)
- Bug: Permission error occured when accessing the comments of a specific issue (<https://github.com/openvinotoolkit/cvat/issues/4416>)
- Bug: Permission error occurred when accessing the comments of a specific issue (<https://github.com/openvinotoolkit/cvat/issues/4416>)


### Security
Expand Down Expand Up @@ -362,7 +362,7 @@ Skeleton (<https://github.com/cvat-ai/cvat/pull/1>), (<https://github.com/opencv
### Added

- Added ability to import data from share with cli without copying the data (<https://github.com/openvinotoolkit/cvat/issues/2862>)
- Notification if the browser does not support nesassary API
- Notification if the browser does not support necessary API
- Added ability to export project as a dataset (<https://github.com/openvinotoolkit/cvat/pull/3365>)
and project with 3D tasks (<https://github.com/openvinotoolkit/cvat/pull/3502>)
- Additional inline tips in interactors with demo gifs (<https://github.com/openvinotoolkit/cvat/pull/3473>)
Expand Down
2 changes: 1 addition & 1 deletion cvat-core/src/annotations-objects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2977,7 +2977,7 @@ export class SkeletonTrack extends Track {
);

if (errors.length) {
throw new Error(`Several errors occured during saving skeleton:\n ${errors.join(';\n')}`);
throw new Error(`Several errors occurred during saving skeleton:\n ${errors.join(';\n')}`);
}
};

Expand Down
12 changes: 6 additions & 6 deletions cvat-ui/src/actions/cloud-storage-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ const cloudStoragesActions = {
getCloudStorageStatusFailed: (cloudStorageID: number, error: any) => (
createAction(CloudStorageActionTypes.GET_CLOUD_STORAGE_STATUS_FAILED, { cloudStorageID, error })
),
getCloudStoragePreiew: (cloudStorageID: number) => (
getCloudStoragePreview: (cloudStorageID: number) => (
createAction(CloudStorageActionTypes.GET_CLOUD_STORAGE_PREVIEW, { cloudStorageID })
),
getCloudStoragePreiewSuccess: (cloudStorageID: number, preview: string) => (
getCloudStoragePreviewSuccess: (cloudStorageID: number, preview: string) => (
createAction(CloudStorageActionTypes.GET_CLOUD_STORAGE_PREVIEW_SUCCESS, { cloudStorageID, preview })
),
getCloudStoragePreiewFailed: (cloudStorageID: number, error: any) => (
getCloudStoragePreviewFailed: (cloudStorageID: number, error: any) => (
createAction(CloudStorageActionTypes.GET_CLOUD_STORAGE_PREVIEW_FAILED, { cloudStorageID, error })
),
};
Expand Down Expand Up @@ -199,12 +199,12 @@ export function getCloudStorageStatusAsync(cloudStorage: CloudStorage): ThunkAct

export function getCloudStoragePreviewAsync(cloudStorage: CloudStorage): ThunkAction {
return async (dispatch: ActionCreator<Dispatch>): Promise<void> => {
dispatch(cloudStoragesActions.getCloudStoragePreiew(cloudStorage.id));
dispatch(cloudStoragesActions.getCloudStoragePreview(cloudStorage.id));
try {
const result = await cloudStorage.getPreview();
dispatch(cloudStoragesActions.getCloudStoragePreiewSuccess(cloudStorage.id, result));
dispatch(cloudStoragesActions.getCloudStoragePreviewSuccess(cloudStorage.id, result));
} catch (error) {
dispatch(cloudStoragesActions.getCloudStoragePreiewFailed(cloudStorage.id, error));
dispatch(cloudStoragesActions.getCloudStoragePreviewFailed(cloudStorage.id, error));
}
};
}
4 changes: 2 additions & 2 deletions cvat-ui/src/actions/import-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ export const importBackupAsync = (instanceType: 'project' | 'task', storage: Sto
async (dispatch) => {
dispatch(importActions.importBackup());
try {
const inctanceClass = (instanceType === 'task') ? core.classes.Task : core.classes.Project;
const instance = await inctanceClass.restore(storage, file);
const instanceClass = (instanceType === 'task') ? core.classes.Task : core.classes.Project;
const instance = await instanceClass.restore(storage, file);
dispatch(importActions.importBackupSuccess(instance.id, instanceType));
} catch (error) {
dispatch(importActions.importBackupFailed(instanceType, error));
Expand Down
12 changes: 6 additions & 6 deletions cvat-ui/src/actions/jobs-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ const jobsActions = {
createAction(JobsActionTypes.GET_JOBS_SUCCESS, { jobs })
),
getJobsFailed: (error: any) => createAction(JobsActionTypes.GET_JOBS_FAILED, { error }),
getJobPreiew: (jobID: number) => (
getJobPreview: (jobID: number) => (
createAction(JobsActionTypes.GET_JOB_PREVIEW, { jobID })
),
getJobPreiewSuccess: (jobID: number, preview: string) => (
getJobPreviewSuccess: (jobID: number, preview: string) => (
createAction(JobsActionTypes.GET_JOB_PREVIEW_SUCCESS, { jobID, preview })
),
getJobPreiewFailed: (jobID: number, error: any) => (
getJobPreviewFailed: (jobID: number, error: any) => (
createAction(JobsActionTypes.GET_JOB_PREVIEW_FAILED, { jobID, error })
),
};
Expand All @@ -59,11 +59,11 @@ export const getJobsAsync = (query: JobsQuery): ThunkAction => async (dispatch)
};

export const getJobPreviewAsync = (job: Job): ThunkAction => async (dispatch) => {
dispatch(jobsActions.getJobPreiew(job.id));
dispatch(jobsActions.getJobPreview(job.id));
try {
const result = await job.frames.preview();
dispatch(jobsActions.getJobPreiewSuccess(job.id, result));
dispatch(jobsActions.getJobPreviewSuccess(job.id, result));
} catch (error) {
dispatch(jobsActions.getJobPreiewFailed(job.id, error));
dispatch(jobsActions.getJobPreviewFailed(job.id, error));
}
};
14 changes: 7 additions & 7 deletions cvat-ui/src/actions/projects-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ const projectActions = {
deleteProjectFailed: (projectId: number, error: any) => (
createAction(ProjectsActionTypes.DELETE_PROJECT_FAILED, { projectId, error })
),
getProjectPreiew: (projectID: number) => (
getProjectPreview: (projectID: number) => (
createAction(ProjectsActionTypes.GET_PROJECT_PREVIEW, { projectID })
),
getProjectPreiewSuccess: (projectID: number, preview: string) => (
getProjectPreviewSuccess: (projectID: number, preview: string) => (
createAction(ProjectsActionTypes.GET_PROJECT_PREVIEW_SUCCESS, { projectID, preview })
),
getProjectPreiewFailed: (projectID: number, error: any) => (
getProjectPreviewFailed: (projectID: number, error: any) => (
createAction(ProjectsActionTypes.GET_PROJECT_PREVIEW_FAILED, { projectID, error })
),
};
Expand Down Expand Up @@ -123,7 +123,7 @@ export function getProjectsAsync(

dispatch(projectActions.getProjectsSuccess(array, result.count));

// Appropriate tasks fetching proccess needs with retrieving only a single project
// Appropriate tasks fetching process needs with retrieving only a single project
if (Object.keys(filteredQuery).includes('id') && typeof filteredQuery.id === 'number') {
dispatch(getProjectTasksAsync({
...tasksQuery,
Expand Down Expand Up @@ -184,11 +184,11 @@ export function deleteProjectAsync(projectInstance: any): ThunkAction {
}

export const getProjectsPreviewAsync = (project: any): ThunkAction => async (dispatch) => {
dispatch(projectActions.getProjectPreiew(project.id));
dispatch(projectActions.getProjectPreview(project.id));
try {
const result = await project.preview();
dispatch(projectActions.getProjectPreiewSuccess(project.id, result));
dispatch(projectActions.getProjectPreviewSuccess(project.id, result));
} catch (error) {
dispatch(projectActions.getProjectPreiewFailed(project.id, error));
dispatch(projectActions.getProjectPreviewFailed(project.id, error));
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ class OpenCVControlComponent extends React.PureComponent<Props & DispatchToProps
} catch (error: any) {
notification.error({
description: error.toString(),
message: 'OpenCV.js processing error occured',
message: 'OpenCV.js processing error occurred',
className: 'cvat-notification-notice-opencv-processing-error',
});
}
Expand Down Expand Up @@ -346,7 +346,7 @@ class OpenCVControlComponent extends React.PureComponent<Props & DispatchToProps
} catch (error: any) {
notification.error({
description: error.toString(),
message: 'Tracking error occured',
message: 'Tracking error occurred',
});
}
};
Expand Down Expand Up @@ -401,7 +401,7 @@ class OpenCVControlComponent extends React.PureComponent<Props & DispatchToProps
} catch (error: any) {
notification.error({
description: error.toString(),
message: 'OpenCV.js processing error occured',
message: 'OpenCV.js processing error occurred',
className: 'cvat-notification-notice-opencv-processing-error',
});
} finally {
Expand Down Expand Up @@ -836,7 +836,7 @@ class OpenCVControlComponent extends React.PureComponent<Props & DispatchToProps
isActivated, canvasInstance, labels, frameData,
} = this.props;
const { libraryInitialized, approxPolyAccuracy, mode } = this.state;
const dynamcPopoverPros = isActivated ?
const dynamicPopoverProps = isActivated ?
{
overlayStyle: {
display: 'none',
Expand All @@ -860,7 +860,7 @@ class OpenCVControlComponent extends React.PureComponent<Props & DispatchToProps
) : (
<>
<CustomPopover
{...dynamcPopoverPros}
{...dynamicPopoverProps}
placement='right'
overlayClassName='cvat-opencv-control-popover'
content={this.renderContent()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ interface State {
convertMasksToPolygons: boolean;
trackedShapes: TrackedShape[];
fetching: boolean;
pointsRecieved: boolean;
pointsReceived: boolean;
approxPolyAccuracy: number;
mode: 'detection' | 'interaction' | 'tracking';
portals: React.ReactPortal[];
Expand Down Expand Up @@ -231,7 +231,7 @@ export class ToolsControlComponent extends React.PureComponent<Props, State> {
approxPolyAccuracy: props.defaultApproxPolyAccuracy,
trackedShapes: [],
fetching: false,
pointsRecieved: false,
pointsReceived: false,
mode: 'interaction',
portals: [],
};
Expand Down Expand Up @@ -294,7 +294,7 @@ export class ToolsControlComponent extends React.PureComponent<Props, State> {

this.setState({
approxPolyAccuracy: defaultApproxPolyAccuracy,
pointsRecieved: false,
pointsReceived: false,
});
window.addEventListener('contextmenu', this.contextmenuDisabler);
}
Expand Down Expand Up @@ -386,7 +386,7 @@ export class ToolsControlComponent extends React.PureComponent<Props, State> {
};
this.interaction.lastestApproximatedPoints = approximated;

this.setState({ pointsRecieved: !!response.points.length });
this.setState({ pointsReceived: !!response.points.length });
} finally {
if (this.interaction.id === interactionId && this.interaction.hideMessage) {
this.interaction.hideMessage();
Expand Down Expand Up @@ -416,7 +416,7 @@ export class ToolsControlComponent extends React.PureComponent<Props, State> {
} catch (err: any) {
notification.error({
description: err.toString(),
message: 'Interaction error occured',
message: 'Interaction error occurred',
});
}
};
Expand Down Expand Up @@ -508,7 +508,7 @@ export class ToolsControlComponent extends React.PureComponent<Props, State> {
} catch (err: any) {
notification.error({
description: err.toString(),
message: 'Tracking error occured',
message: 'Tracking error occurred',
});
}
};
Expand Down Expand Up @@ -663,7 +663,7 @@ export class ToolsControlComponent extends React.PureComponent<Props, State> {

if (prevProps.frame !== frame && trackedShapes.length) {
// 1. find all trackable objects on the current frame
// 2. devide them into two groups: with relevant state, without relevant state
// 2. divide them into two groups: with relevant state, without relevant state
const trackingData = trackedShapes.reduce<AccumulatorType>(
(acc: AccumulatorType, trackedShape: TrackedShape): AccumulatorType => {
const {
Expand Down Expand Up @@ -1277,7 +1277,7 @@ export class ToolsControlComponent extends React.PureComponent<Props, State> {
interactors, detectors, trackers, isActivated, canvasInstance, labels, frameIsDeleted,
} = this.props;
const {
fetching, approxPolyAccuracy, pointsRecieved, mode, portals, convertMasksToPolygons,
fetching, approxPolyAccuracy, pointsReceived, mode, portals, convertMasksToPolygons,
} = this.state;

if (![...interactors, ...detectors, ...trackers].length) return null;
Expand All @@ -1302,7 +1302,7 @@ export class ToolsControlComponent extends React.PureComponent<Props, State> {
};

const showAnyContent = labels.length && !frameIsDeleted;
const showInteractionContent = isActivated && mode === 'interaction' && pointsRecieved && convertMasksToPolygons;
const showInteractionContent = isActivated && mode === 'interaction' && pointsReceived && convertMasksToPolygons;
const showDetectionContent = fetching && mode === 'detection';

const interactionContent: JSX.Element | null = showInteractionContent ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function LabelsListComponent(): JSX.Element {
const issuesResolvedHidden = useSelector((state: CombinedState): any => state.review.issuesResolvedHidden);
const frames = issues.map((issue: any): number => issue.frame).sort((a: number, b: number) => +a - +b);
const nearestLeft = frames.filter((_frame: number): boolean => _frame < frame).reverse()[0];
const dinamicLeftProps: any = Number.isInteger(nearestLeft) ?
const dynamicLeftProps: any = Number.isInteger(nearestLeft) ?
{
onClick: () => dispatch(changeFrameAsync(nearestLeft)),
} :
Expand All @@ -37,7 +37,7 @@ export default function LabelsListComponent(): JSX.Element {
};

const nearestRight = frames.filter((_frame: number): boolean => _frame > frame)[0];
const dinamicRightProps: any = Number.isInteger(nearestRight) ?
const dynamicRightProps: any = Number.isInteger(nearestRight) ?
{
onClick: () => dispatch(changeFrameAsync(nearestRight)),
} :
Expand All @@ -54,12 +54,12 @@ export default function LabelsListComponent(): JSX.Element {
<Row justify='start' align='middle'>
<Col>
<CVATTooltip title='Find the previous frame with issues'>
<LeftOutlined className='cvat-issues-sidebar-previous-frame' {...dinamicLeftProps} />
<LeftOutlined className='cvat-issues-sidebar-previous-frame' {...dynamicLeftProps} />
</CVATTooltip>
</Col>
<Col offset={1}>
<CVATTooltip title='Find the next frame with issues'>
<RightOutlined className='cvat-issues-sidebar-next-frame' {...dinamicRightProps} />
<RightOutlined className='cvat-issues-sidebar-next-frame' {...dynamicRightProps} />
</CVATTooltip>
</Col>
<Col offset={2}>
Expand Down
Loading

0 comments on commit 330f123

Please sign in to comment.