[Fixes #633] Handle thesauri autoload and packaging#634
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds runtime initialization and packaging support for GeoNode thesauri so thesaurus RDF assets can be included in distributions and automatically loaded at container startup (per #633 and upstream GeoNode behavior).
Changes:
- Introduces a new
invoketask to runmanage.py thesaurus autoload. - Calls the new thesauri autoload task during the Docker entrypoint startup sequence.
- Configures setuptools to include
**/thesauri/*.rdffiles in built packages.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/tasks.py |
Adds an invoke task to autoload thesauri via Django management command. |
src/entrypoint.sh |
Runs thesauri autoload as part of the non-celery startup path. |
src/pyproject.toml |
Includes RDF thesauri files as package data for distribution. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+199
to
+207
| def loadthesauri(ctx): | ||
| print("**************************thesauri*******************************") | ||
| try: | ||
| ctx.run( | ||
| f"python manage.py thesaurus autoload --settings={_localsettings()}", | ||
| pty=True, | ||
| ) | ||
| except Exception: | ||
| pass |
mattiagiupponi
approved these changes
Jun 17, 2026
|
The backport to To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-5.1.x 5.1.x
# Navigate to the new working tree
cd .worktrees/backport-5.1.x
# Create a new branch
git switch --create backport-634-to-5.1.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 d9c8cd440d9a032670e754ad93e52def3289b70f
# Push it to GitHub
git push --set-upstream origin backport-634-to-5.1.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-5.1.xThen, create a pull request where the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#633