Skip to content

Commit 8a0228b

Browse files
authored
feat: Enhanced file and annotation synchronization across DataMate and LabelStudio. fix: change LabelStudio mapping to +1 of DataMate.
* feat: Refactor configuration and sync logic for improved dataset handling and logging * feat: Enhance annotation synchronization and dataset file management - Added new fields `tags_updated_at` to `DatasetFiles` model for tracking the last update time of tags. - Implemented new asynchronous methods in the Label Studio client for fetching, creating, updating, and deleting task annotations. - Introduced bidirectional synchronization for annotations between DataMate and Label Studio, allowing for flexible data management. - Updated sync service to handle annotation conflicts based on timestamps, ensuring data integrity during synchronization. - Enhanced dataset file response model to include tags and their update timestamps. - Modified database initialization script to create a new column for `tags_updated_at` in the dataset files table. - Updated requirements to ensure compatibility with the latest dependencies. * fix: Update port mapping for label studio and adjust base URL in DataAnnotation component
1 parent 60e2289 commit 8a0228b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

deployment/docker/label-studio/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
expose:
1010
- "8000"
1111
ports:
12-
- "8000:8000"
12+
- "30001:8000"
1313
depends_on:
1414
- pg-db
1515
environment:

frontend/src/pages/DataAnnotation/Home/DataAnnotation.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
deleteAnnotationTaskByIdUsingDelete,
1515
queryAnnotationTasksUsingGet,
1616
syncAnnotationTaskUsingPost,
17-
getConfigUsingGet,
1817
} from "../annotation.api";
1918
import { mapAnnotationTask } from "../annotation.const";
2019
import CreateAnnotationTask from "../Create/components/CreateAnnptationTaskDialog";
@@ -47,7 +46,7 @@ export default function DataAnnotation() {
4746
let mounted = true;
4847
(async () => {
4948
try {
50-
const baseUrl = `http://${window.location.hostname}:8000`;
49+
const baseUrl = `http://${window.location.hostname}:${window.location.port + 1}`;
5150
if (mounted) setLabelStudioBase(baseUrl);
5251
} catch (e) {
5352
if (mounted) setLabelStudioBase(null);

0 commit comments

Comments
 (0)