OCL API 2

Build: #1689 failed Changes by Sunny Aggarwal.

Stages & jobs

  1. Build

  2. Test

  3. Deploy for testing

    Requires a user to start manually
  4. Release

    Requires a user to start manually

Build result summary

Details

Completed
Queue duration
< 1 second
Duration
14 minutes
Labels
None
Revisions
OCL API 2
616a53b28ca970eba82c9006c98c3fc05f9de182 616a53b28ca970eba82c9006c98c3fc05f9de182
OCL CI
3a5aa873674ab3c0ed904029536d426abb31bdd0 3a5aa873674ab3c0ed904029536d426abb31bdd0
Fixed in
#1698 (Changes by Sunny Aggarwal.)
No failed test found. A possible compilation error occurred.

Responsible

Code commits

OCL API 2
Author Commit Message Commit date
Sunny Aggarwal. Sunny Aggarwal. 6e21add6bfa2b4732fbfdf47b6ffa874e9a012db 6e21add6bfa2b4732fbfdf47b6ffa874e9a012db OpenConceptLab/ocl_issues#1583 | Search updates
* removed is_active from indexes and queries
* added highlight in all search results
* using text field more over keyworld fields for better highlighting
* combining exact match with wildcard and fuzzy
* order of search term -> match_phrase -> match -> wildcard -> fuzzy

Error summary for Run tests

The job generated some errors, drill down into the full build log for more details.

  File "/usr/local/lib/python3.10/site-packages/django/views/generic/base.py", line 104, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/views.py", line 509, in dispatch
    response = self.handle_exception(exc)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/views.py", line 469, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
    raise exc
  File "/usr/local/lib/python3.10/site-packages/rest_framework/views.py", line 506, in dispatch
    response = handler(request, *args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/generics.py", line 282, in get
    return self.retrieve(request, *args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/mixins.py", line 56, in retrieve
    return Response(serializer.data)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/serializers.py", line 555, in data
    ret = super().data
  File "/usr/local/lib/python3.10/site-packages/rest_framework/serializers.py", line 253, in data
    self._data = self.to_representation(self.instance)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/serializers.py", line 522, in to_representation
    ret[field.field_name] = field.to_representation(attribute)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/fields.py", line 1838, in to_representation
    return method(value)
  File "/code/core/pins/serializers.py", line 89, in get_resource
    return build_resource_data(obj)
  File "/code/core/pins/serializers.py", line 17, in build_resource_data
    return SourceDetailSerializer(
  File "/code/core/sources/serializers.py", line 386, in __init__
    super().__init__(*args, **kwargs)
  File "/code/core/common/serializers.py", line 250, in __init__
    super().__init__(*args, **kwargs)
  File "/code/core/common/serializers.py", line 199, in __init__
    self.query_params = params.dict() if params else {}
AttributeError: 'dict' object has no attribute 'dict'

======================================================================
FAIL: test_search (core.integration_tests.tests_concepts.ConceptListViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/integration_tests/tests_concepts.py", line 1635, in test_search
    self.assertEqual(len(response.data), 1)
AssertionError: 2 != 1

======================================================================
FAIL: test_post_201 (core.integration_tests.tests_sources.SourceListViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/integration_tests/tests_sources.py", line 126, in test_post_201
    self.assertListEqual(
AssertionError: Lists differ: ['aut[659 chars]l', 'name', 'owner', 'owner_type', 'owner_url'[219 chars]ite'] != ['aut[659 chars]l', 'meta', 'name', 'owner', 'owner_type', 'ow[227 chars]ite']

First differing element 33:
'name'
'meta'

Second list contains 1 additional elements.
First extra element 54:
'website'

Diff is 1107 characters long. Set self.maxDiff to None to see it.

======================================================================
FAIL: test_put_200 (core.integration_tests.tests_sources.SourceRetrieveUpdateDestroyViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/integration_tests/tests_sources.py", line 246, in test_put_200
    self.assertListEqual(
AssertionError: Lists differ: ['aut[659 chars]l', 'name', 'owner', 'owner_type', 'owner_url'[219 chars]ite'] != ['aut[659 chars]l', 'meta', 'name', 'owner', 'owner_type', 'ow[227 chars]ite']

First differing element 33:
'name'
'meta'

Second list contains 1 additional elements.
First extra element 54:
'website'

Diff is 1107 characters long. Set self.maxDiff to None to see it.

======================================================================
FAIL: test_get_200_verbose (core.integration_tests.tests_sources.SourceSummaryViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/integration_tests/tests_sources.py", line 1206, in test_get_200_verbose
    self.assertEqual(
AssertionError: {'act[36 chars]s': [], 'datatype': [], 'locale': [], 'name_type': []} != {'act[36 chars]s': [('1688785939.3256326', 2)], 'datatype': [[53 chars]: []}
  {'active': 2,
-  'concept_class': [],
-  'datatype': [],
+  'concept_class': [('1688785939.3256326', 2)],
+  'datatype': [('1688785939.3256326', 2)],
   'locale': [],
   'name_type': [],
   'retired': 0}

----------------------------------------------------------------------
Ran 792 tests in 647.415s

FAILED (failures=4, errors=5)
Preserving test database for alias 'default' ('test_postgres')...
1
Stopping ocl-oclapi2-rt_db_1 ...
Stopping ocl-oclapi2-rt_es_1 ...
Stopping ocl-oclapi2-rt_db_1 ... done
Stopping ocl-oclapi2-rt_es_1 ... done
Removing ocl-oclapi2-rt_db_1 ...
Removing ocl-oclapi2-rt_es_1 ...
Removing ocl-oclapi2-rt_es_1 ... done
Removing ocl-oclapi2-rt_db_1 ... done
Removing network ocl-oclapi2-rt_default
Removing volume ocl-oclapi2-rt_postgres-data
Removing volume ocl-oclapi2-rt_es-data