Skip to content

Commit

Permalink
Revert "OpenConceptLab/ocl_issues#1595 | collections export migrate"
Browse files Browse the repository at this point in the history
This reverts commit fd577fe.
  • Loading branch information
snyaggarwal committed Aug 5, 2023
1 parent bf53e6b commit f1228de
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions core/collections/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
include_facets_header, sort_asc_param, sort_desc_param, updated_since_param, include_retired_param, limit_param
from core.common.tasks import add_references, export_collection, delete_collection, index_expansion_concepts, \
index_expansion_mappings
from core.common.utils import compact_dict_by_values, parse_boolean_query_param, get_truthy_values
from core.common.utils import compact_dict_by_values, parse_boolean_query_param
from core.common.views import BaseAPIView, BaseLogoView, ConceptContainerExtraRetrieveUpdateDestroyView, TaskMixin
from core.concepts.documents import ConceptDocument
from core.concepts.models import Concept
Expand Down Expand Up @@ -254,11 +254,6 @@ def get_object(self, queryset=None):
version.update_concepts_count()
if version.should_set_active_mappings:
version.update_mappings_count()

truthy = get_truthy_values()
if self.request.user.is_staff and self.request.query_params.get('migrate_export_path', False) in truthy: # pragma: no cover # pylint: disable: line-too-long
instance.migrate_to_new_export_path(move=self.request.query_params.get('move', False) in truthy)

return instance

def get_permissions(self):
Expand Down

0 comments on commit f1228de

Please sign in to comment.