-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
feat: DIA-1924: "Import sample data" ability in the Data Import page #7206
base: develop
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for label-studio-docs-new-theme canceled.
|
✅ Deploy Preview for heartex-docs canceled.
|
/fm sync |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #7206 +/- ##
========================================
Coverage 77.17% 77.18%
========================================
Files 187 187
Lines 14499 14504 +5
========================================
+ Hits 11190 11195 +5
Misses 3309 3309
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
7958c28
to
866cc83
Compare
…ast messages in favour of modals with increased Sentry reporting (#7167) Co-authored-by: robot-ci-heartex <[email protected]>
… results in ERROR 500 on develop (#7203)
… results in ERROR 500 on develop (#7207)
Co-authored-by: robot-ci-heartex <[email protected]> Co-authored-by: mcanu <[email protected]>
…7209) Co-authored-by: robot-ci-heartex <[email protected]>
@@ -126,13 +128,29 @@ export const CreateProject = ({ onClose, redirect = true }) => { | |||
}), | |||
[name, description, config], | |||
); | |||
const uploadSample = useCallback( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest to adding the interaction with the API to a hook and using it the same way as line 109. Probably the hook should be located in labelstudio/src/hooks
@@ -30,6 +31,22 @@ export const Inner = () => { | |||
return refresh(pathname); | |||
}, [location, history]); | |||
|
|||
const uploadSample = useCallback( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use the same hook stated previously
"dependencies": { | ||
"@radix-ui/react-select": "^2.1.6" | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"dependencies": { | |
"@radix-ui/react-select": "^2.1.6" | |
}, | |
"dependencies": {}, |
This shouldn't have its own dependencies as it is a monorepo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small observation on the package.json, and I agree with the other feedback that we should look to make the hooks in the same way to align with the existing.
2544ac0
to
b5d8f7a
Compare
Sample 1 (images) is not actually importing - looking into it. Sample 2 works. |
[x] add sample data import component
[x] add configurable manifest file with sample data
[x] create default manifest file with data hosted on our s3