Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
f16489a
add generic Keyword model in vocabularies
aperrin66 May 12, 2025
b1e3619
add keywords, location and tags fields to Dataset
aperrin66 May 12, 2025
9facf41
add migration to populate new dataset location field
aperrin66 May 12, 2025
9a09655
change dataset fields order
aperrin66 May 13, 2025
a87e127
add migration to populate new Keyword model
aperrin66 May 13, 2025
93cb2f5
add JSON field to Parameter (temporary nullable)
aperrin66 May 13, 2025
0ac6600
add migration to populate new Parameter.data field
aperrin66 May 13, 2025
f2a155b
make Parameter.data unique
aperrin66 May 13, 2025
e6d1a13
remove obsolete catalog models + add migration
aperrin66 May 13, 2025
982661a
remove obsolete vocabularies models + add migration
aperrin66 May 13, 2025
25a0c6d
remove deleted models from catalog admin
aperrin66 May 13, 2025
337a068
update vaocabularies managers
aperrin66 May 13, 2025
05a805e
update vocabularies command
aperrin66 May 13, 2025
1e51c05
remove source from catalog manager
aperrin66 May 13, 2025
4f5e545
rename keyword.type to kind + add version and kind to Parameter
aperrin66 May 14, 2025
dc1ea36
fix vocabularies manager
aperrin66 May 14, 2025
38d02c4
remove things related to deleted models from base_viewer
aperrin66 May 14, 2025
6e6c9dc
make Dataset's str use entry_id
aperrin66 May 15, 2025
130ae09
make DatasetURI's str use uri
aperrin66 May 15, 2025
5537134
remove name and service field from dataseturi: info already in the URL
aperrin66 May 15, 2025
efbb148
set unique constraint on parameter
aperrin66 May 20, 2025
b5824ea
set Keyword ordering
aperrin66 May 21, 2025
d910cd9
update tag model to simple key-value
aperrin66 Jun 25, 2025
1ed4eec
add Tag.__str__
aperrin66 Jun 25, 2025
2fbbadf
remove empty export_DIF extension
aperrin66 Oct 1, 2025
ab33cd6
update CI command
aperrin66 Oct 1, 2025
106eb48
[TMP] comment out base_viewer tests
aperrin66 Oct 1, 2025
46655be
update catalog fixture
aperrin66 Oct 1, 2025
b732430
update migration
aperrin66 Oct 1, 2025
492cecf
update commands
aperrin66 Oct 1, 2025
00fd23f
remove nansat ingestor from test settings
aperrin66 Oct 1, 2025
237d3f3
update catalog tests
aperrin66 Oct 1, 2025
bd58358
update vocabularies tests
aperrin66 Oct 1, 2025
d595a64
specify pythesint version for testing image
aperrin66 Oct 1, 2025
3f65a7f
update DatasetURI.protocol()
aperrin66 Oct 1, 2025
0f21c0c
add missing tests
aperrin66 Oct 1, 2025
bef668c
formatting
aperrin66 Oct 1, 2025
eb69256
add catalog.models tests
aperrin66 Oct 1, 2025
3c3684b
update geospaas utils
aperrin66 Oct 2, 2025
c9ed138
update geospaas utils tests
aperrin66 Oct 2, 2025
9380d39
update update_vocabularies command
aperrin66 Oct 2, 2025
734cbd7
rename variable for clarity
aperrin66 Oct 2, 2025
79fe3f8
update vocabularies tests
aperrin66 Oct 2, 2025
51710fa
fix validate_parameter
aperrin66 Oct 2, 2025
7ec1609
update vocabularies tests
aperrin66 Oct 2, 2025
800f6a0
add todo on tag unique constaint
aperrin66 Oct 24, 2025
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
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
target: base
build-args: |
BASE_IMAGE=${{ env.BASE_IMAGE }}
PYTHESINT_VERSION=v1.7.3.dev0
push: false
load: true
tags: testing
Expand All @@ -70,7 +71,7 @@ jobs:
-e "GITHUB_RUN_ID=$GITHUB_RUN_ID"
-e "GITHUB_TOKEN=$GITHUB_TOKEN"
testing
bash -c "coverage run --omit=geospaas/nansat_ingestor/tests/*,geospaas/catalog/tests/*,geospaas/vocabularies/tests/* runtests.py"
bash -c "coverage run --omit='*/tests/*,*/tests.py,*/migrations/*' runtests.py"

- name: 'Install Python 3.11'
if: ${{ env.latest }}
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ARG BASE_IMAGE='nansencenter/nansat:latest'
FROM ${BASE_IMAGE} as base
LABEL purpose="Running and developing Django-Geo-SpaaS"
ENV PYTHONUNBUFFERED=1
ARG PYTHESINT_VERSION ''

# Install Django
RUN apt update \
Expand All @@ -21,7 +22,9 @@ RUN apt update \
thredds_crawler==1.5.4 \
&& apt remove -y g++ && apt autoremove -y \
&& apt clean && rm -rf /var/lib/apt/lists/* \
&& echo "alias ll='ls -lh'" >> /root/.bashrc
&& echo "alias ll='ls -lh'" >> /root/.bashrc \
&& [ -n "${PYTHESINT_VERSION}" ] && pythesint_version_string="==${PYTHESINT_VERSION}" || pythesint_version_string='' \
&& pip install --no-cache-dir "pythesint${pythesint_version_string}"

FROM base as full

Expand Down
8 changes: 0 additions & 8 deletions docs/source/geospaas/catalog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ Subpackages
Submodules
==========

geospaas.catalog.managers
-------------------------

.. automodule:: geospaas.catalog.managers
:members:
:undoc-members:
:show-inheritance:

geospaas.catalog.models
-----------------------

Expand Down
10 changes: 0 additions & 10 deletions geospaas/base_viewer/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
from django.utils import timezone
from leaflet.forms.widgets import LeafletWidget

from geospaas.catalog.models import Source


class BaseSearchForm(forms.Form):
""" Basic version of form for basic seaching of django-geospaas metadata """
Expand All @@ -20,8 +18,6 @@ class BaseSearchForm(forms.Form):
time_coverage_start = forms.DateTimeField(
initial=timezone.datetime(2000, 1, 1, tzinfo=timezone.utc))
time_coverage_end = forms.DateTimeField(initial=timezone.now())
source = forms.ModelMultipleChoiceField(
Source.objects.all(), required=False)

def filter(self, ds):
""" Filtering method of the form. All filtering processes are coded here """
Expand All @@ -34,12 +30,6 @@ def filter(self, ds):
# Too late datasets are excluded from the filtering results
ds = ds.exclude(time_coverage_start__gt=t_1)

src = self.cleaned_data.get('source', None)
# Just the one(s) with correct selected source should pass the filtering actions
# if Source is given in the input form
if src:
ds = ds.filter(source__in=src)

# spatial filtering
if self.cleaned_data['polygon']:
# filtering by user provided polygon
Expand Down
2 changes: 1 addition & 1 deletion geospaas/base_viewer/templates/base_viewer/ds_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% endblock ds_detailed_info %}
{% for url in ds.dataseturi_set.all %}
<div class="attr_title">Address:</div>
{% if show_local_address or url.service != local_file_service %}
{% if show_local_address %}
<div class="attr_content">{{ url.uri|escape|urlize}} </div>
{% else %}
<div class="attr_content">hidden local address of dataset</div>
Expand Down
Loading