Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ pip install arches-search
"my_project_name",
"arches_search",
"arches_modular_reports",
"arches_vue_components",
"arches_controlled_lists",
"arches_querysets",
"arches.extensions.querysets",
"arches.extensions.vue_components",
"arches.extensions.controlled_lists",
)
```

Expand All @@ -48,8 +48,6 @@ pip install arches-search
```
"dependencies": {
"arches": "archesproject/arches#dev/8.2.x",
"arches-vue-components": "archesproject/arches-vue-components#dev/2.1.x",
"arches-controlled-lists": "archesproject/arches-controlled-lists#dev/1.3.x",
"arches-modular-reports": "archesproject/arches-modular-reports#2.1.x",
"arches-search": "archesproject/arches-search#main"
}
Expand Down
21 changes: 16 additions & 5 deletions arches_search/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,12 @@
"django_celery_results",
"django_migrate_sql",
"pgtrigger",
# "silk",
"arches_search", # Ensure the project is listed before any other arches applications
"arches_search",
"arches_resource_sets",
"arches_modular_reports",
"arches_vue_components",
"arches_controlled_lists",
"arches_querysets",
"arches.extensions.querysets",
"arches.extensions.vue_components",
"arches.extensions.controlled_lists",
)

# Placing this last ensures any templates provided by Arches Applications
Expand Down Expand Up @@ -284,6 +283,18 @@
"BACKEND": "django.core.cache.backends.db.DatabaseCache",
"LOCATION": "user_permission_cache",
},
"querysets_concepts": {
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
"LOCATION": "querysets_concepts_cache",
"TIMEOUT": 86400, # one day in seconds
"OPTIONS": {"MAX_ENTRIES": 1000},
},
"querysets_resource_instances": {
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
"LOCATION": "querysets_resource_instances_cache",
"TIMEOUT": 86400, # one day in seconds
"OPTIONS": {"MAX_ENTRIES": 1000},
},
}

# Hide nodes and cards in a report that have no data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,16 @@ const showAddButton = computed(
() => drawnFeatures.value.length > 0 && !isPickerExpanded.value,
);

// "draw.*" are custom events fired by @mapbox/mapbox-gl-draw, not part of
// maplibre-gl's typed MapEventType union.
onMounted(() => {
map.value?.on(DRAW_CREATE_EVENT, collapsePicker);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
map.value?.on(DRAW_CREATE_EVENT as any, collapsePicker);
});

onUnmounted(() => {
map.value?.off(DRAW_CREATE_EVENT, collapsePicker);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
map.value?.off(DRAW_CREATE_EVENT as any, collapsePicker);
});

function collapsePicker(): void {
Expand Down
8 changes: 4 additions & 4 deletions arches_search/templates/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
<link rel="apple-touch-icon" sizes="180x180" href="{% webpack_static 'favicons/apple-touch-icon-180x180.png' %}" />

{% block css %}
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Open+Sans:400,300,600&amp;subset=cyrillic,latin">
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.2/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="{% webpack_static 'fonts/openSans.css' %}">
<link rel="stylesheet" type="text/css" href="{% webpack_static 'css/vendor/bootstrap-3.4.1.css' %}">
<link rel="stylesheet" type="text/css" href="{% webpack_static 'node_modules/font-awesome/css/font-awesome.min.css' %}">
<link rel="stylesheet" type="text/css" href="{% webpack_static 'plugins/slick/slick.min.css' %}">
<link rel="stylesheet" type="text/css" href="{% webpack_static 'plugins/slick/accessible-slick-theme.min.css' %}">

Expand Down Expand Up @@ -535,14 +535,14 @@ <h2 class="app-footer-heading">{% trans "Guides and Documentation" %}</h2>
<script src="{% webpack_static 'node_modules/underscore/underscore-min.js' %}"></script>
<script src="{% webpack_static 'node_modules/chosen-js/chosen.jquery.min.js' %}"></script>
<script src="{% webpack_static 'node_modules/knockout/build/output/knockout-latest.js' %}"></script>
<script src="{% webpack_static 'node_modules/bootstrap/dist/js/bootstrap.min.js' %}"></script>
<script src="{% webpack_static 'plugins/one.app.js' %}"></script>
<script src="{% webpack_static 'plugins/revolution-slider/rs-plugin/js/jquery.themepunch.tools.min.js' %}"></script>
<script
src="{% webpack_static 'plugins/revolution-slider/rs-plugin/js/jquery.themepunch.revolution.js' %}"></script>
<script src="{% webpack_static 'plugins/slick/slick.min.js' %}"></script>

<!-- Custom Scripts -->
{% render_bundle 'bootstrap-behaviors/index' %}
{% render_bundle 'bindings/chosen' %}
{% render_bundle 'bindings/key-events-click' %}
{% render_bundle 'views/components/language-switcher' %}
Expand Down
6 changes: 3 additions & 3 deletions arches_search/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@
handler500 = "arches.app.views.main.custom_500"

# Ensure Arches core urls are superseded by project-level urls
urlpatterns.append(path("", include("arches_controlled_lists.urls")))
urlpatterns.append(path("", include("arches_vue_components.urls")))
urlpatterns.append(path("", include("arches_querysets.urls")))
urlpatterns.append(path("", include("arches.extensions.controlled_lists.urls")))
urlpatterns.append(path("", include("arches.extensions.vue_components.urls")))
urlpatterns.append(path("", include("arches.extensions.querysets.urls")))
urlpatterns.append(path("", include("arches_modular_reports.urls")))
urlpatterns.append(path("", include("arches_resource_sets.urls")))

Expand Down
8 changes: 4 additions & 4 deletions arches_search/utils/search/additional_data/node_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
it lives in tile data. Filtering already handles that with existence subqueries,
but an Exists() answers only "does a matching value exist" -- it cannot be
selected or ordered by. This module annotates the *value itself* onto the result
queryset using arches_querysets' node-value expression, which makes the same
annotation usable for both display and sorting.
queryset using the querysets extension's node-value expression, which makes the
same annotation usable for both display and sorting.

The annotation is applied before pagination so ordering applies to the whole
result set rather than to one page, and so the values arrive with the page
Expand All @@ -22,8 +22,8 @@

from arches.app.models.models import Node

from arches_querysets.models import TileTree
from arches_querysets.utils.models import (
from arches.extensions.querysets.models import TileTree
from arches.extensions.querysets.utils.models import (
any_nodegroup_in_hierarchy_is_cardinality_n,
get_tile_values_for_resource,
)
Expand Down
4 changes: 2 additions & 2 deletions arches_search/utils/term_search/suggestions.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from arches_search.utils.term_search.matching import (
build_term_match_filter,
)
from arches_controlled_lists.models import List
from arches_controlled_lists.views import ListView
from arches.extensions.controlled_lists.models import List
from arches.extensions.controlled_lists.views import ListView

from arches.app.models.models import TileModel, Node, GraphModel

Expand Down
Loading
Loading