Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/ckanext iepnb v1 #6

Merged
merged 4 commits into from
Apr 19, 2023
Merged

Feature/ckanext iepnb v1 #6

merged 4 commits into from
Apr 19, 2023

Conversation

mjanez
Copy link

@mjanez mjanez commented Apr 19, 2023

Update feature/ckanext-iepnb-v1

  • Add all multi-value fields (from the GeoDCAT-AP custom CKAN schema) to the SOLR custom schema to improve filtering of datasets.
    ENV SOLR_BBOX_FIELDS '<field name="bbox_area" type="float" indexed="true" stored="true" /> \
    <field name="maxx" type="float" indexed="true" stored="true" /> \
    <field name="maxy" type="float" indexed="true" stored="true" /> \
    <field name="minx" type="float" indexed="true" stored="true" /> \
    <field name="miny" type="float" indexed="true" stored="true" /> \
    <field name="tag_uri" type="string" uninvertible="false" docValues="true" indexed="true" stored="true" multiValued="true"/> \
    <field name="conforms_to" type="string" uninvertible="false" docValues="true" indexed="true" stored="true" multiValued="true"/> \
    <field name="lineage_source" type="string" uninvertible="false" docValues="true" indexed="true" stored="true" multiValued="true"/> \
    <field name="lineage_process_step" type="string" uninvertible="false" docValues="true" indexed="true" stored="true" multiValued="true"/> \
    <field name="reference" type="string" uninvertible="false" docValues="true" indexed="true" stored="true" multiValued="true"/> \
    <field name="theme" type="string" uninvertible="false" docValues="true" indexed="true" stored="true" multiValued="true"/> \
    <field name="resource_relation" type="string" uninvertible="false" docValues="true" indexed="true" stored="true" multiValued="true"/> \
    <field name="metadata_profile" type="string" uninvertible="false" docValues="true" indexed="true" stored="true" multiValued="true"/>'
  • Fix duplicate dataset-map widgets https://github.com/OpenDataGIS/ckanext-iepnb/issues/3
  • Update ckanext-iepnb extension to 0.1.2 version
  • Setting up ckanext-iepnb deps and ennvars in 05_setup_iepnb.sh
    #!/bin/bash
    # Update ckanext-iepnb settings
    echo "Set up ckanext-iepnb"
    #TODO: Version with solr
    #ckan -c $CKAN_INI search-index clear
    ckan config-tool $CKAN_INI \
    "iepnb.server=$CKANEXT__IEPNB_SERVER" \
    "iepnb.path_menu =$CKANEXT__IEPNB_PATH_MENU" \
    "iepnb.breadcrumbs=$CKANEXT__IEPNB_BREADCRUMBS" \
    "iepnb.popular_tags=$CKANEXT__IEPNB_POPULAR_TAGS" \
    "iepnb.facet_list=$CKANEXT__IEPNB_FACET_LIST"
    #TODO: Version with solr
    #ckan -c $CKAN_INI search-index rebuild
  • Minor fixes to ckanext-xloader implementation [WIP]
    #!/bin/bash
    # Add ckanext.xloader.api_token to the CKAN config file
    echo "Loading ckanext-xloader settings in the CKAN config file"
    ckan config-tool $CKAN_INI \
    "ckanext.xloader.api_token = xxx" \
    "ckanext.xloader.jobs_db.uri = $CKANEXT__XLOADER__JOBS__DB_URI"
    # Create ckanext-xloader API_TOKEN
    echo "Set up ckanext.xloader.api_token in the CKAN config file"
    ckan config-tool $CKAN_INI "ckanext.xloader.api_token = $(ckan -c $CKAN_INI user token add ckan_admin xloader | tail -n 1 | tr -d '\t')"
    #TODO: Setup worker background
    #echo "Set up CKAN jobs worker"
    #ckan -c $CKAN_INI jobs worker default

This will make it easy to clone the repository, and the custom .env will remain intact.
Update feature/ckanext-iepnb-v1
@mjanez mjanez added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request labels Apr 19, 2023
@mjanez mjanez self-assigned this Apr 19, 2023
@mjanez mjanez merged commit 50a0af9 into ckan-2.9.8 Apr 19, 2023
mjanez added a commit that referenced this pull request Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant