Allow uploading unsuccessful dataset, and export failed rows (For conversions)#8111
Draft
alesan99 wants to merge 12 commits into
Draft
Allow uploading unsuccessful dataset, and export failed rows (For conversions)#8111alesan99 wants to merge 12 commits into
alesan99 wants to merge 12 commits into
Conversation
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| if FORCE_UPLOAD: | ||
| failed_rows.append(row) | ||
| else: | ||
| cache = _cache |
Triggered by 931dfaa on branch refs/heads/conversions-wb
| scopes=['collection'], | ||
| registry=apps | ||
| ) | ||
| create_uniqueness_rule('Collectionobject', discipline=discipline, is_database_constraint=True, fields=['catalogNumber'], scopes=['collection'], registry=apps) |
| Collectionobjecttype, | ||
| Component, | ||
| ) | ||
| from specifyweb.specify.models import Collection, Collectionobject, Collectionobjecttype |
| from specifyweb.specify.datamodel import datamodel | ||
| from specifyweb.middleware.general import serialize_django_obj | ||
| from specifyweb.backend.cache.thread import ThreadCache | ||
| from specifyweb.specify.models import Discipline |
| from specifyweb.specify.datamodel import datamodel | ||
| from specifyweb.middleware.general import serialize_django_obj | ||
| from specifyweb.backend.cache.thread import ThreadCache | ||
| from specifyweb.specify.models import Discipline |
| from specifyweb.specify.utils.specify_jar import specify_jar | ||
| from specifyweb.specify.views import login_maybe_required, openapi | ||
| from .app_resource import get_app_resource, FORM_RESOURCE_EXCLUDED_LST | ||
| from .remote_prefs import get_remote_prefs |
| from typing import Callable, Generator, Iterable, cast | ||
|
|
||
| from specifyweb.backend.cache.redis.connect import RedisConnection, RedisList | ||
| from specifyweb.backend.redis_cache.connect import RedisConnection, RedisList, RedisSet |
| from sqlalchemy import types | ||
|
|
||
| import specifyweb.backend.context.app_resource as app_resource | ||
| from specifyweb.backend.context.remote_prefs import get_remote_prefs |
| from django.conf import settings | ||
|
|
||
| from specifyweb.specify.models import Spauditlog, Spauditlogfield | ||
| from specifyweb.backend.context.remote_prefs import get_remote_prefs, get_global_prefs |
| containers = Splocalecontainer.objects.filter(name=table.lower()) | ||
| for container in containers: | ||
| for (field_name, _, _) in fields: | ||
| items = Splocalecontaineritem.objects.filter( |
| from django.test import Client | ||
| import json | ||
|
|
||
| from specifyweb.backend.permissions.models import UserPolicy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 #8150
Gives the workbench the ability to ignore rows that fail when a dataset is being uploaded,
Failed rows are compiled into a csv and given to the user in a notification so that they may be addressed and uploaded separately.
TODO:
Checklist
self-explanatory (or properly documented)
Testing instructions