Prior Release Notes¶
Last Updated: August 2020
Information about prior releases is shown here.
App Permissions Assigned to Groups¶
App permissions can now be assigned directly to permission Groups in the admin pages.
Adding an app to the permission Group will reveal a dialog to select which of the app permissions to also assign.
Assign users to the permission Group to grant them those permissions within the app.
This is an opt-in feature: set ENABLE_RESTRICTED_APP_ACCESS to True in portal_config.yml to use this feature.
App Access Permissions¶
Apps now have an access permission that can be used to grant access to specific users or groups.
When a users does not have access to an app it will be hidden in the apps library.
If a user without permission to access an app enters one of the app URLs, they will see a 404 page.
Configure access to apps by creating a permission Group with access to the App and then assign any number of users to that group.
The access permission is automatically enforced for all views of apps.
This is an opt-in feature: set ENABLE_RESTRICTED_APP_ACCESS to True in portal_config.yml to use this feature.
Custom Home and App Library Styles and Templates¶
Portal admins can now customize the Home or App library pages with custom CSS or HTML.
Two new settings groups in Site Settings section of admin pages.
Specify CSS directly into the setting or reference a file in a discoverable Static path.
Specify the path to custom templates in a discoverable Templates path.
Additional Base Templates for Apps¶
There are 9 new base templates for Apps that simplify implementing common layouts.
Specify the desired base template in the
extendstag of the app template.
New Features for Jobs Table¶
Logs action that displays job logs while job is running.
Monitor job action that can be implemented to display live results of job as it runs.
Jobs can be grouped and filtered by permission Groups in addition to User.
Resubmit job action.
See: Jobs Table
Official Docker Image Improvements¶
Additional options added to
run.shto allow it to be run in different modes (daemon, test, etc.) to facilitate testing.
Adds two new Salt Scripts to make it easier to extend without duplicating steps.
pre_tethys.sls: prepares static and workspace directories in persistent volume location.
collectalland syncs configuration files to persistent volume location.
New documentation for using the Official Docker Image
Tethys Portal Configuration¶
Fixed inconsistencies with documentation and behavior.
Fixed issues with some of the groups that weren't working.
The way logging settings are specified is more straight-forward now.
tethys installcommand to allow for installing the app code without the database sync portion.
This is helpful in contexts where the database is unavailable during installation such as in a Docker build.
See: install command
collectstaticcommand changed to copy the static directory instead of link it to be more consistent with how other static files are handled.
Alleviates a workaround that was necessary in SE Linux environments (the links couldn't be followed).
Old linking behavior still available via the
See: manage command
Expanded Earth Engine Tutorials¶
Two additional follow-on tutorials to the Earth Engine tutorial.
Part 2 - add additional pages to app, layout with Bootstrap grid system, upload files, add REST API.
Part 3 - prepare app for production deployment and publishing on GitHub, deploy to production server.
See: Google Earth Engine
All New Production Installation Guide¶
Near complete rewrite of the production installation documentation.
Examples shown for both Ubuntu and CentOS.
Expanded from a 1 page document to 25+ documents.
Moved many documents that were in Tethys Portal to configuration section of production installation docs.
All existing documentation was updated.
Added example for SSL firewall configuration.
Various fixes to make THREDDS and GEE tutorials more clear.
Tethys Portal Configuration documentation fixed.
Fixed bug with scaffolding extensions.
Compatibility changes for Bokeh 2.0.0.
Fixes broken URIs for password reset capability.
Return 404 instead of 403 on pages that require login to prevent directory mapping.
Disable caching on login and register pages.
Use this presentation in workshops and training courses to provide an overview of the latest features in Tethys Platform 3.0: Tethys Platform 3.0 Overview Presentation.
Django was updated to version 2.2, the next LTS version of Django.
It will be supported until April 2022.
Includes the latest security updates.
Python 3 Only¶
Tethys Platform no longer supports Python 2.
This is in large part because Django no longer supports Python 2 as of version 2.0.
Python 2 is also reaching its end of life in 2020 (supposedly).
Tethys has been Conda packaged
It can be installed from our Conda channel.
See: Getting Started
Upgraded JQuery and Bootstrap¶
The JQuery and Bootstrap libraries that Tethys provides were upgraded to address known security vulnerabilities (see: https://snyk.io/test/npm/bootstrap/3.2.0 and https://snyk.io/test/npm/jquery/1.11.1).
Bootstrap has been upgraded to version 3.4.1 (not 4 yet, sorry).
Coincidentally, JQuery was also upgraded to version 3.4.1.
Tethys comes with Django Channels
Django Channels wraps the synchronous Django process in an asynchronous process, allowing developers to use modern web protocols like WebSockets.
WebSockets allow for a bidirectional, long-lived connections between the server and client.
See: WebSockets Concepts
See: Bokeh Integration
URL Maps API¶
Documentation for Tethys
UrlMaphas been added. This includes a description of the newly added
See: URL Maps API
Tethys comes with Django Analytical installed to enable support form a number of analytics and tracking services.
You can now enable analytics tracking (e.g. Google Analytics) to every page of your apps and portal with a few settings in the settings file.
Tethys Quotas allow portal administrators to have better control over the resources being used by users and apps (e.g. disk storage).
Tethys ships with quotas for workspace storage implemented, but it is disabled by default. When enabled, portal administrators can set limits on the storage users or apps are able to use.
Tethys Quotas are completely extensible, allowing developer to create custom quotas for other resources (e.g. memory usage, database storage, wall time hours, etc.).
Workspace Storage Management Pages¶
The User Profile now includes a page for managing storage in the user's workspace accross all apps in the portal. Users can choose to clear the storage in their workspace for an app.
The App Settings page now includes information about storage in the app's workspace and provides a method for clearing that workspace.
New endpoints on the App class allow app developers to respond to requests to clear storage from users.
See: Tethys Quotas
New Portal Configuration File¶
Tethys will now use a new configuration file:
portal_config.ymlwill store information about which services should be used for installed apps and the portal settings
Tethys Portal settings will now be configured in the new
portal_config.ymlfile, rather than the
This will allow for the local settings to be retained when Tethys is updated in the future (no more regenerating the
settings.pyfile when you update).
Site settings will also be able to be configured via the
portal_config.yml(e.g. primary color, logo, home page content).
tethys db command¶
The CLI has a new command for managing the Tethys database.
It includes subcommands for initializing the tethys database, starting and stopping the local database, migrating the database between releases, and creating the tethys superuser.
See: db command
tethys docker command¶
tethys dockercommand now uses the latest version of the Docker Python API.
See: docker command
Improved CLI Documentation¶
The documentation for the command line interface has moved to a new location.
The CLI documenation is automatically generated from the code to ensure accuracy.
Automatic Application Installation¶
App now require an
install.ymlfile which allows dependencies to be installed using conda or pip.
Apps can also use an optional
services.ymlportal specific file that will automatically link services.
The CLI has a new command for installing apps: tethys install.
New App Installation Approach¶
The structure of apps and the way they are installed has changed.
The changes will allow Tethys to be updated in the future without the need to reinstall apps afterward.
Tethys 2 Apps will need to be migrated to work in Tethys 3.
Dask Job Type¶
New TethysJob types for submitting and managing Dask Jobs.
Dask allows pure Python code to be automagically parallelized and executed accross a distributed cluster of nodes.
New Gizmo for adding Cesium 3D globes to Tethys Apps.
The initial view can be configured almost entirely using Python in the controller.
See: Cesium Map View
The MapView Gizmo now includes an overview map control.
Features on the drawing layer can no be made selectable.
Initial features can now be specified for the drawing layer.
New snapping capabilities: a layer can be specified as the layer to snap to.
Adds full API support for styles on vector-based MVLayers.
See: Map View
Fixed an issue that prevented the DAG view of Condor Workflow jobs from working with jobs submitted to a remote Condor Scheduler.
Improved usability of JobsTable in general.
Changes to allow the JobsTable to work with custom TethysJobs.
See: Jobs Table
Open Portal Mode¶
Adds setting to allow Tethys to be run in an open-portal mode.
When running in open-portal mode, no login will be required, even for views decorated with the
Note: you should use the
login_requireddecorator provided by Tethys.
Updated PostGIS Docker Image¶
We have retired the custom PostGIS image that Tethys has been using since it's first release.
tethys dockercommand will now install the excellent
THREDDS Integration as Tethys Service¶
THREDDS is now supported as a Tethys Spatial Dataset Service.
The official Unidata THREDDS docker can be installed with the Tethys docker command.
Official Tethys Docker Image¶
Tethys now builds and maintains an official Docker image on Docker Hub.
Tethys Apps Settings¶
The icon for an app can now be set and overriden by portal admins via the App Settings page.
Several bugs with the JobsTable gizmo (see above).
tethys docker ipcommand returning the incorrect port for GeoServer.
tethys uninstallcommand would not remove the database entry if the files were removed manually.
Removed hardcoded "src" directory to allow tethys to be installed in directories of any name.
Fixed issue where tags for disabled or not shown apps were still showing up.
Python 3 Support¶
Python 3 officially supported in Tethys Platform.
Python 2 support officially deprecated and will be dropped when Tethys Platform 3.0 is released.
Tethys needs to migrate to Python 3 only so we can upgrade to Django 2.0, which only supports Python 3.
Migrate your apps to Python 3. After Tethys Platform 3.0 is released, Python 2 will no longer be supported by Tethys Platform.
100% Unit Test Coverage¶
Tests pass in Python 2 and Python 3.
Unit tests cover 100% of testable code.
Code base linted using flake8 to enforce PEP-8 and other Python coding best practices.
Automated test execution on Travis-CI and Stickler-CI whenever a Pull Request is submitted.
Added badges to the README to display build/testing, coverage, and docs status on github repository.
All of this will lead to increased stability in this and future releases.
See: Tethys Platform Repo for build and coverage information.
Customize Tethys Platform functionality.
Create your own gizmos.
Centralize app logic that is common to multiple apps in an extension.
Map View Gizmo¶
Added support for many more basemaps.
Added Esri, Stamen, CartoDB.
Support for custom XYZ services as basemaps.
User can set OpenLayers version.
Uses jsdelivr to load custom versions (see: https://cdn.jsdelivr.net/npm/openlayers)
Default OpenLayers version updated to 5.3.0.
See: Map View
TethysControllerto SDK to support class-based views in Tethys apps.
Inherits from django
as_controllermethod, which is a thin wrapper around
as_viewmethod to better match Tethys terminology.
UrlMaps can take class-based Views as the controller argument:
More to come in the future.
See: Django Class-based views to get started.
Partial Install Options¶
The Tethys Platform installation scripts now allow for partial installation.
Install in existing Conda environment or against existing database.
Upgrade using the install script!
Linux and Mac only.
Command Line Interface¶
New commands to manage app settings and services.
tethys app_settings- List settings for an app.
tethys services- List, create, and remove Tethys services (only supports persistent store services and spatial dataset services for now).
tethys link- Link/Assign a Tethys service to a corresponding app setting.
tethys schedulers- List, create, and remove job Schedulers.
tethys manage sync- Sync app and extensions with Tethys database without a full Tethys start.
New Dockerfile for Tethys Platform.
Use it to build Docker images.
Use it as a base for your own Docker images that have your apps installed.
Includes supporting salt files.
Dockerfile has been optimized to minimize the size of the produced image.
Threading is enabled in the Docker container.
See: Docker Documentation to learn how to use Docker in your workflows.
API Tokens for Users¶
API tokens are automatically generated for users when they are created.
Use User API tokens to access protected REST API views.
Added SSL setup instruction to Production Installation
Fixed grammar in forget password link.
Refactored various methods and decorators to use new way of using Django methods
Fixed bug with Gizmos that was preventing errors from being displayed when in debug mode.
Fixed various bugs with uninstalling apps and extensions.
Fixed bugs with get_persistent_store_setting methods.
Fixed a naming conflict in the SelectInput gizmo.
Fixed numerous bugs identified by new tests.
Powered by Miniconda Environment¶
Tethys Platform is now installed in a Miniconda environment.
Using the Miniconda includes Conda, an open source Python package management system
Conda can be used to install Python dependencies as well as system dependencies
Installing packages like GDAL or NetCDF4 are as easy as
conda install gdal
Conda is cross platform: it works on Windows, Linux, and MacOS
Cross Platform Support¶
Develop natively on Windows, Mac, or Linux!
No more virtual machines.
Be careful with your paths.
See: Getting Started
Completely automated installation of Tethys
Scripts provided for Mac, Linux, and Windows.
See: Getting Started
Experimental Python 3 Support in 2.0.0
Tethys Dataset Services is not completely Python 3 compatible
--python-version 3option on the installation script
Python 2 support will be dropped in version 2.1
See: Getting Started
Leaner, updated theme for app base template.
header_buttonsblock for adding custom buttons to app header.
See: App Templating API
Developers can create App Settings, which are configured in the admin interface of the Tethys Portal.
Types of settings that can be created include Custom Settings, Persistent Store Settings, Dataset Service Settings, Spatial Dataset Service Settings, and Web Processing Service Settings.
The way Tethys Services are allocated to apps is now done through App Settings.
All apps using the Persistent Stores APIs, Dataset Services APIs, or Web Processing Services APIs prior to version 2.0.0 will need to be refactored to use the new App settings approach.
See: App Settings API
tethys listcommand that lists installed apps.
Completely overhauled scaffold command that works cross-platform.
New options for scaffold command that allow automatically accepting the defaults and overwriting project if it already exists.
Brand new Getting Started Tutorial
Demonstration of most Tethys SDK APIs
See: Key Concepts
New way to call them
New load dependencies Method
Updated select_gizmo to allow Select2 options to be passed in.
See: Template Gizmos API
Updated OpenLayers libraries to version 4.0
Fixes to make MapView compatible with Internet Explorer
Can configure styling of MVDraw overlay layer
New editable attribute for MVLayers to lock layers from being edited
A basemap switcher tool is now enabled on the map with the capability to configure multiple basemaps, including turning the basemap off.
Added the ability to customize some styles of vector MVLayers.
See: Map View
Plotly View and Bokeh View Gizmos¶
True open source options for plotting in Tethys
Sessions will now timeout and log user out after period of inactivity.
When user closes browser, they are automatically logged out now.
Expiration times can be configured in settings.
Fixed issue where
tethys uninstall <app>command was not uninstalling fully.
There is now a formalized mechanism for creating permissions for apps.
It includes a permission_required decorator for controllers and a has_permission method for checking permissions within controllers.
Terms and Conditions Management¶
Portal Admins can now manage and enforce portal-wide terms and conditions and other legal documents.
Documents are added via the admin interface of the portal.
Documents can be versioned and dates at which they become active can be set.
Once the date passes, all users will be prompted to accept the terms of the new documents.
The GeoServer docker was updated to version 2.8.3
It can be configured to run in clustered mode (multiple instances of GeoServer running inside the container) for greater stability and performance
Several extensions are now included:
Tethys Docker CLI¶
Modified behaviour of "-c" option to accept a list of containers names so that commands can be performed on subsets of the containers
Improved behaviour of "start" and "stop" commands such that they will start/stop all installed containers if some are not installed
Improved behaviour of the "remove" command to skip containers that are not installed
Updated the Select2 Gizmo libraries to version 4.0.
Not changes should be necessary for basic usage of the Select2 Gizmo.
If you are using advanced features of Select2, you will likely need to migrate some of your code.
Refer to https://select2.github.io/announcements-4.0.html#migrating-from-select2-35 for migration help.
Use the TETHYS_MAP_VIEW.getSelectInteraction() method to have more control over items that are selected.
MVLayer Select Features now supports selection of vector layers in addition to the WMS Layers.
Added support for images in the legend including support for GeoServer GetLegendGraphic requests.
Workflow Job Type¶
New Condor Workflow provides a way to run a group of jobs (which can have hierarchical relationships) as a single job.
The hierarchical relationships are defined as parent-child relationships between jobs.
As part of this addition the original Condor Job type was refactored and, while backwards compatibility is maintained in version 1.4, several aspects of how job templates are defined have been deprecated.
New Tethys CLI command to run tests on Tethys and apps.
Tethys SDK now provides a TethysTestCase to streamlines app testing.
Persistent stores is supported in testing.
Tethys App Scaffold now includes testing module with example test code.
Installation Instructions for Ubuntu 16.04
Fixed an issue with URL mapping that was masking true errors with contollers (see: Issue #177)
Fixed an issue with syncstores that use the string version of the path to the intializer function (see: Issue #185)
Fixed an issue with syncstores that would cause it to fail the first time (see: Issue #194)
Open account signup disabled by default
New setting in settings.py that allows open signup to be enabled
Feature selection enabled for ImageWMS layers
Clicking on features highlights them when enabled
Custom styles can be applied to highlighted features
Basemap can be disabled
Layer attributes can be set in MVLayer (e.g. visibility and opacity)
Updated to use OpenLayers 3.10.1
D3 plotting implemented as a free alternative to Highcharts for line plot, pie plot, scatter plot, bar plot, and timeseries plot.
Spatial Dataset Services¶
Upgraded gsconfig dependency to version 1.0.0
Provide two new methods on the geoserver engine to create SQL views and simplify the process of linking PostGIS databases with GeoServer.
Places button on all app pages that activates a feedback form
Sends app-users comments to specified developer emails
Includes user and app specific information
Handoff Manager now available, which can be used from controllers to handoff from one app to another on the same Tethys portal (without having to use the REST API)
The way handoff handler controllers are specified was changed to be consistent with other controllers
Jobs Table Gizmo¶
The refresh interval for job status and runtime is configurable
Dynamic Persistent Stores¶
Persistent stores can now be created dynamically (at runtime)
Helper methods to list persistent stores for the app and check whether a store exists.
Apps now feature optional descriptions.
An information icon appears on the app icon when descriptions are available.
When the information icon is clicked on the description is shown.
Missing initial value parameter was added to the select and select2 gizmos.
Addressed several cases of mixed content warnings when running behind HTTPS.
The disconnect social account buttons are now disabled if your account doesn't have a password or there is only one social account associated with the account.
Fixed issues with some of the documentation not being generated.
Fixed styling issues that made the Message Box gizmo unusable.
Normalized references to controllers, persistent store initializers, and handoff handler functions.
Various docs typos were fixed.
Social login supported
Google, LinkedIn, and Facebook
HydroShare coming soon
New controls on User Profile page to manage social accounts
D3 Plotting Gizmos¶
D3 alternatives for all the HighCharts plot views
Use the same plot objects to define both types of charts
Simplified and generalized the mechanism for declaring plot views
Job Manager Gizmo¶
New Gizmo that will show the status of jobs running with the Job Manager
SDK methods for creating and managing workspaces for apps
List files and directories in workspace directory
Clear and remove files and directories in workspace
Use handoff to launch one app from another
Pass arguments via GET parameters that can be used to retrieve data from the sender app
New video tutorials have been created
The videos highlight working with different software suite elements
CKAN, GeoServer, PostGIS
Advanced user input forms
Advanced Mapping and Plotting Gizmos
New Location for Tethys SDK¶
Tethys SDK methods centralized to a new convenient package: tethys_sdk
Persistent Stores Changes¶
Moved the get_persistent_stores_engine() method to the TethysAppBase class.
To call the method import your app class and call it on the class.
The old get_persistent_stores_engine() method has been flagged for deprecation.
Command Line Interface¶
New management commands including
Modified behavior of
syncdbmanagement command, which now makes and then applies migrations.
Options objects for configuring gizmos
Many improvements to Map View
Improved layer support including GeoJSON, KML, WMS services, and ArcGIS REST services
Added a mechanism for creating legends
Added drawing capabilities
Upgraded to OpenLayers version 3.5.0
New objects for simplifying Highcharts plot creation
Added the ability to draw a box on Google Map View
Tethys Portal Features¶
Reset forgotten passwords
Bypass the home page and redirect to apps library
Rename the apps library page title
The two mobile menus were combined into a single mobile menu
Dataset Services and Web Processing Services admin settings combined into a single category called Tethys Services
Added "Powered by Tethys Platform" attribution to footer
Provides a unified interface for all apps to create submit and monitor computing jobs
Abstracts the CondorPy module to provide a higher-level interface with computing jobs
Allows definition of job templates in the app.py module of apps projects
Added documentation about the Software Suite and the relationship between each software component and the APIs in the SDK is provided
Documentation for manual download and installation of Docker images
Added system requirements to documentation
Naming new app projects during scaffolding is more robust
Fixed bugs with fetch climate Gizmo
Addressed issue caused by usernames that included periods (.) and other characters
Made header more responsive to long names to prevent header from wrapping and obscuring controls
Fixed bug with tethys gen apache command
Addressed bug that occurred when naming WPS services with uppercase letters
Added parameter of UrlMap that can be used to specify custom regular expressions for URL search patterns
Added validation to service engines
Custom collectstatic command that automatically symbolically links the public/static directories of Tethys apps to the static directory
Added "list" methods for dataset services and web processing services to allow app developers to list all available services registered on the Tethys Portal instance