CU-869b5ncen: fix bugs, beginnings of a test for api backend #224
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes meta-annotation upload bug, where if meta annotations are exported (or generated) in an export, and uploaded to a trainer instance they wouldn't appear.
ALSO - added a test for this API, and added to GHA jobs. The start of having the backend unit tested...
Note
Fixes meta-annotation import bug and adds Django backend unit tests with CI/CD integration.
api/data_utils.py: setmeta_taskcorrectly, persistacc, and linkmeta_task_value.InvalidParameterErrorand raise when nocdb/vocab/modelpackprovided.api/views.pyfor uploads.upload_projects_exportinapi/tests/test_data_utils.pywith fixturefixtures/example.json; cover CDB/Vocab, ModelPack, members, validated docs, custom suffix, empty projects, missing params, and unknown users.api/tests.pyplaceholder.test-backendjob (Python 3.11, spaCy model) to CI, QA, and release workflows; gate builds on it.Written by Cursor Bugbot for commit 08f9752. This will update automatically on new commits. Configure here.