Releases: GeotrekCE/Geotrek-admin
0.23.4
Bug fixes
- Fix massive upgrade bug, where new migrations were ignored. Due to migration
operation introduction in 0.22 installation script.
Special thanks to Noël Martinon, Félix Merzeau, Gil Deluermoz and Camille Montchicourt for their patience on this.
Notes : Unfortunately, there is no way to easily repair a database damaged by installation scripts of previous 0.23 versions. Restore the database of version 0.22 instead, and run installation as usual.
0.23.3
0.23.2
Bug fixes
- Fixed land records not shown in detail pages
- Fixed JSON DEM area extent for treks
- Fixed targets list for tourism datasources (fixes #1091)
- Cache tourism datasources for one day (setting
CACHE_TIMEOUT_TOURISM_DATASOURCES
) - Fix crashes with TourInFrance sources
- Add link to OSM in feedback email (fixes #1089, #1093)
- Fix feedback email translation (fixes #1087)
- Fix problem with permission check "read attachment" in detail page (fixes #1092)
- Fix measure control appearing twice in forms (fixes #1078)
- Fix 404 on download buttons from list views
- Fix POI translated fields not tabbed (fixes #1065)
- Fix missing translation of "Add a new POI" (fixes #1086)
- Fix invalid snapping when save path without editing geometry (fixes #1099)
- Add missing properties in feedback report detail page.
- Hide all modules information in report detail page.
- Add missing translations of feedback module.
- Show object type in ODT export (fixes #1000)
Internal changes
- Upgraded to Mapentity 1.4.0
- Upgraded to Leaflet 0.7.3
Installation
- Fixed content types migration of land to zoning apps (Thanks Noël Martinon)
- UbuntuGIS stable maintainers have upgraded (sic) GDAL to 1.10.0.
Upgrading GDAL is painful, and PostGIS packages may have to be reinstalled
(data shouldn't be lost though). Remember it was recommended to run PostGIS
on a different server.
On June 2th 2014, the Ubuntu GIS stable repository switched from libgdal1
to libgdal1h
. It broke the deployment script of many projects, including
Geotrek.
It is a good thing, since it paves the way for the last Ubuntu LTS release (14.04). However, it breaks the Long Term Support philosophy of the previous one (12.04), supposed to be supported until 2019.
Morality : we cannot trust the Ubuntu GIS stable repository anymore.
Regarding Geotrek, such upgrades of Ubuntu packages is not supposed to be covered
by its installation script. If you face any problems, please refer to the
community or commercial support (such as Makina Corpus for example).
0.23.1
⚠️ BREAKING changes
Read all upgrade notes carefully.
- Trails are now managed as topologies (fixes #370).
Existing trails geometries are likely to be LOST (see below) - Permission systems has been refactored (see below)
✨ NEW features
- 🌟 New tourism module : external datasources can be configured from Adminsite (GeoJSON, TourInFrance, ...)
and added to maps (by module, or published on Geotrek-rando...) - 🌟 New feedback module : user can submit feedback from Geotrek-rando and they appear in Geotrek
- ⭐ Permissions are now controlled by Django permission system from AdminSite
- 🌟 Track objects creations, changes and deletions (fixes #300)
- Topologies are not recreated if user did not edit field (fixes #833)
- Show land objects in menu (fixes #942)
- Buttons in the list menu to add new objects easily
Minor changes
- New permission to control download of attachments
- New permission to allow users or groups to bypass structure restrictions
- Documented configuration of custom projections (fixes #1037)
- Add a setting to serve attached files as download (default: True) (fixes #976)
- Command to import shapefile with points into POI as topologies (fixes #952)
- Added a reader group (fixes #495)
- Added static file for projection EPSG:32620
- Add fullscreen button on maps (fixes #904)
- Add all controls on detail map (fixes #907)
- Add a button to close filters (fixes #424)
- Added new sections in documention : FAQ, User-manal and Advanced configuration
- Show number of attached files in tab (fixes #743)
Internal changes
- Enabled database connection pooling in production
- An error is raised if SRID has not unit in meters (fixes #921)
- Zoning and land modules are now splitted (fixes #954)
- Complete refactor of geographical form fields. Now uses django-mapentity
from its own repository instead of internal orphan branch. - Complete refactor of maps initialization, without inline preprocessed JavaScript
- Rely on Django permissions to control access to detail, list and exports (fixes #675)
- Core and altimetry modules are now splitted (fixes #996)
- Renamed treks POIs GeoJSON properties
- Add views to serve DEM on object area as JSON (Geotrek-Rando 3D)
BUG fixes
- Force browser cache revalidation of geojson data (fixes #843)
- Force browser cache revalidation for path graph (fixes #1029)
- Fix deletion porblems in AdminSite (fixes #1008)
- Trek advised parking and public transport are translatable (fixes #1024)
- Fix missing translation "no filters" and "current criterias" (fixes #884)
- Fix PDF versions of documents not being translated (fixes #1028)
❗ Upgrade notes
- Before upgrading, backup your trail records and geometries, using pgAdmin ::
CREATE TABLE backup_sentiers AS SELECT * FROM l_v_sentier;
CREATE TABLE backup_troncons_sentiers AS (
SELECT l_t_troncon.id AS troncon, l_t_sentier.id, l_t_sentier.nom
FROM l_t_troncon, l_t_sentier
WHERE l_t_sentier.id = l_t_troncon.sentier
);
- Before upgrade, rename
mailadmin
tomailadmins
and add
a new linemailmanagers
inetc/settings.ini
. See Email settings
section in documentation. - Just before upgrading, delete the following folders ::
rm -rf lib/src/django-modeltranslation lib/src/mapentity
Upgrade using the official procedure
- After upgrading, load the default permissions of the previous groups, otherwise
users won't have access to their modules ::
bin/django loaddata geotrek/authent/fixtures/minimal.json
bin/django loaddata geotrek/authent/fixtures/basic.json
- After upgrading, make sure Active is checked for the user internal
otherwise screenshotting won't work. - After upgrading, load basic data for the new module ::
bin/django loaddata geotrek/feedback/fixtures/basic.json
- After upgrading, make sure the user specified in Geotrek-rando is
in the group Geotrek-rando, or has at least the following permissions
in the AdminSite :paperclip | attachment | Can read attachments
trekking | Trek | Can read Trek
trekking | Trek | Can export Trek
trekking | POI | Can read POI
trekking | POI | Can export POI
feedback | Report | Can add report
- After upgrading, compare visually the resulting migrated trails using QGis,
by opening both layersl_v_sentier
andbackup_sentiers
.
0.22.6
0.22.5
See release notes of 0.22.1 for breaking changes and upgrade instructions.
Additional notes
- Empty session table to disconnect everyone or expect history problems (related to #975)
sudo -n -u postgres -s -- psql -d geotrekdb -c "TRUNCATE django_session";
- Empty map captures cache with
rm -rf var/media/maps/*
Bug fixes
- Fix compilation of translations (ref #970)
- Fix distinction between languages and translated languages (fixes #968)
- Fix history tabs not being shown after upgrade to Django 1.6 (fixes #975)
- Fix regression on land layer label colors (fixes #980)
- Fix attached files not shown after file upload/delete (fixes #933)
- Fix links being removed from trek descriptions (fixes #981)
- Fix missing thumbnail in trek and POI detail pages
- Fix black background on map captures (fixes #979)
- Increased scale text size on map captures (fixes #850)
- Show map attributions on map captures (fixes #852)
- Fix aspect ratios of map in trek public documents (fixes #849)
- Fix objects list not being filtered on map extent (fixes #982)
- Fix coherence of map layer when text search in objects list (fixes #702)
- Fix number of results not refresh on text search (fixes #865)
Minor features
0.22.4
See release notes of 0.22.1 for breaking changes and upgrade instructions.
- Fix install.sh not compiling locale messages (fixes #965)
- Moved trek completeness fields to setting
TREK_COMPLETENESS_FIELDS
. Duration
and difficulty were added, arrival was removed (fixes #967) - Fix regression about source locale messages (fixes #970)
- Fix regression link
Back to application
lost from adminsite (fixes #971) - Serve uploaded files as attachments (fixes #972)
- Remove help texts being shown from filter forms (fixes #966)
- Fix form pills for translated languages (fixes #968)
0.22.3
See release notes of 0.22.1 for breaking changes and upgrade instructions.
- Fix install.sh help not being shown
- Fix screenshots being empty if deployed behind reverse proxy with rool url (fixes #687)
- Fix GPX file layer circle marker size (fixes #930)
- Remove JS libraries from login page
- Fix install.log being removed during installation
- Fix execution characters being shown during DB backup prompt
- Fix PhantomJS and CasperJS installation and deployment
- Added more automatic frontend tests
- Default allowed hosts is now
*
- Fix secured media URLs when using a non empty
rooturl
setting - Fix proxy errors by disabling keep-alive (fixes #906)
0.22.1
❗ Upgrade notes
- Backup your database.
- If you upgrade in the same application folder, first delete the
geotrek
sub-folder. - Use
install.sh
to upgrade (make deploy
won't be enough) - After upgrade, make sure the following query returns only 22~23 results:
SELECT COUNT(*) FROM south_migrationhistory;
⚠️ BREAKING changes
- For upgrades, Geotrek 0.21 is required.
- Uploaded files are now restricted to authenticated users (fixes #729)
- Geotrek-rando 1.23 or higher is required to synchronize content.
✨ NEW features
- In list view, click on map brings to detail page, mouse over highlights in list.
- Show path icon if intervention is not on infrastructure (fixes #909)
- Add spanish translation
- Add photographie into default attachments filetype
- Map location combobox (Cities, Districts, Areas) are not shown if empty or disabled.
- Several database views have been created (fixes #934)
- Remove dots from path icon (fixes #939)
- Intervention, infrastructure and project filters list of years is now dynamic (fixes #948)
- Application available languages (english, french, italian, spanish) are now
distinct from translated content languages (languages
value in :file:settings.ini
)
Minor changes
- Improved apparence of map controls
- Improved apparence of path intermediary points
- Improved apparence of form validation buttons
- Add auto-generated docs at /admin/doc/
- Nicer installation script output
Installation script
- Scan and ortho attributions can now be set using
scan_attributions
andortho_attributions
in settings.ini. - Propose to backup DB before Geotrek upgrade (fixes #804)
- Settings edition prompt only happens at first install
BUG fixes
-
Fix convert urls behind reverse proxy with prefix
-
Fix deployment problem if
layercolor_others
not overidden in settings.ini -
Fix topology kinds to be 'INTERVENTION' for intervention without signage/infrastructure
-
Fix restricted areas types display in admin (fixes #943)
-
Fix list ordering of trek relationships and web links (fixes #929)
-
Fix nginx log files being already empty after logrotate (fixes #932)
-
Fix project add button when no permission
List of restricted areas is not shown on map by default anymore. Restore
previous behaviour with advanced settingLAND_BBOX_AREAS_ENABLED
as True.
Internal changes
- Upgrade to Django 1.6 (fixes #938)
- Upgrade to Leaflet 0.7
- Upgrade a great number to python and JavaScript libraries
- An internal user (with login permission) is used to authenticate the Conversion
and Capture services. - Installation script is modular (standalone, geotrek only, ...)
- Developement server now listens on all interfaces by default
- Database migrations were resetted, no postgres
FATAL ERROR
message will
be emitted on fresh install anymore (fixes #937). See Troubleshooting in documentation.