Giter Site home page Giter Site logo

tethysplatform / tethys Goto Github PK

View Code? Open in Web Editor NEW
91.0 91.0 49.0 66.38 MB

The Tethys Platform main Django website project repository.

Home Page: http://tethysplatform.org/

License: BSD 2-Clause "Simplified" License

Python 77.50% CSS 0.79% JavaScript 14.09% HTML 4.90% Shell 0.89% SaltStack 0.36% Dockerfile 0.21% Less 1.15% SCSS 0.11% PostScript 0.01%

tethys's People

Contributors

araglu avatar astraiophos avatar ckrew avatar douggallup avatar ezrajrice avatar gagelarsen avatar gronka avatar htran84 avatar james-dolinar avatar mmbayles avatar msouff avatar njones61 avatar rfun avatar rileyhales avatar romer8 avatar sarvapulla avatar sdc50 avatar shawncrawley avatar swainn avatar tsubashi avatar tylorbayer avatar zhiyuli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tethys's Issues

Create shapefile from resource.FILES memory issue

Motivation

  • Current implementation of create_shapefile_resource that accepts the resource.FILES object may have issues handling large files.
  • Currently creates a zip archive containing all the shapefiles in memory

Fix

  • Perform check on the size of the files and at some threshold, write zip archive to tempfile object instead of to memory.

Update Command

Add a tethys update command for handling the updating of Tethys automatically.

URL Regex Expansion and Option

  • Add "." and "_" to the default REGEX for the URL Map
  • Add an argument to the UrlMap object that allows advanced users to pass a custom REGEX pattern to match for each url parameter provided.

Formalize Workspaces for Apps

Create a mechanism for working with files in apps.

  • Provide a workspace directory for apps to work in
  • Create an SDK method either for obtaining the path to that workspace another means of stashing stuff there.

Add attributes option to all gizmos

Add an "attributes" option to all gizmos. The value of this option will be a string representing additional HTML attributes to add to the element being generated:

attributes='onclick=runme(); class=a-class'

would result in <element onclick="runme()"; class="a-class">

Engine Validators

Add validation to dataset and wps engines to ensure the endpoint provided is a valid endpoint.

App Base Footer Size when Empty

Motivation

Footer in app templates shrinks when empty.

Solution

Modify template and css to retain size of footer even when empty.

Advanced Spatial Tutorials

Create advanced tutorials that demonstrate the use of key components of the SDK, especially the spatial components.

System Requirements Docs

Description

  • Add system requirements to docs including:
    • Memory: 3 GB minimum
    • Processors: 2 minimum
    • Storage: 10 GB? (investigate how big Dockers are and provide itemized list?)

Object Interfaces for Tethys Gizmos

  • Options for Tethys Gizmos specified with objects, rather than dictionaries.
  • Create classes for each Tethys Gizmo options object
  • Will allow for cleaner abstraction from the gizmo
  • Continue supporting dictionary format for backwards compatibility

Special Cases

  • Create special subclasses of the Highcharts objects that provide reasonable defaults for different plots (e.g. HighChartsLinePlot, HighChartsScatterPlot, etc.)

Drawing Mode for Map View

Attributes

  • Add drawing controls for map view similar to google map view
  • Add a hidden field that is updated when changes are made
  • Support GeoJSON and WKT formats as output
  • Model after google map view
  • Support Point, Line, Polygon, and Box

Naming WPS Configurations with Uppercase Characters Fails

Description

Providing a name with uppercase characters to Web Processing Configurations with uppercase characters causes errors.

Suggestions

Either validate and allow only lowercase characters or fix to allow uppercase characters.

Canned GSSHA Label Switched

Herman: I noticed that there is a cross labeling between the Snow Line and the Snow Gradient, in the slide bars and the radar plot.

Add Installation Instructions for Windows

Add installation instructions for creating apps with Tethys Platform on windows.

Note: We will not support running Tethys Platform in production on Windows at this time. We will only support Tethys app development in windows if it is feasible.

Implement Attribute Table For Google Map View and Map View

Background

  • Value pop-up box appears in upper left corner of map instead of above the overlay.
  • I've investigated it as a conflict with Bootstrap CSS, but found no conflicts.

Attributes

  • On Google Map View, remove pop-up overlay that occurs when new features are created.
  • On both Google Map View and Map View add attribute table with rows for each shape.
  • Add new rows with editable fields for each shape drawn on the map.
  • Attributes set by user should be reflected in the hidden geojson/wkt field
  • Make attribute table data entry mode an option of drawing mode.

App Library Title Setting

Attributes

  • Add a site setting that allows the administrator to change the name of the app library (e.g.: "Dashboard")

Make Scaffolding Project Naming More Robust

I ran into a bug that you may or may not know about. You probably do.

http://docs.tethys.ci-water.org/en/1.0.0/getting_started/scaffold.html

     $ . /usr/lib/tethys/bin/activate

(tethys) $ mkdir ~/tethysdev
(tethys) $ cd ~/tethysdev
(tethys) $ tethys scaffold my_first_app
I used "My First App" with the quotes cause I'm dumb and it threw the error below but I deleted some things and put a new name in and it still gave me the error.

image

This may have been my fault for naming it with quotes but I went back and deleted the directory in my user home/tethysdev directory and it still was giving me this error. I had to go to the specified app.py in the image above and delete the quotes that were part of the class name.

Recommended: Writing an if statement that says if the string has quotes in the My First App name, make the user try to name it again.

Let me know if you want me to submit bugs / user made bugs to a different place.

Click and Plot Support for Map View

  • Streamline "click and plot" capabilities.
  • Click on a feature
  • Pop-up shows time series plot associated with the feature
  • Perform via callback

.tethyscluster Directory Creation causes Error in Production

Description

  • Error at Runtime with Production Installation caused by inability to create .tethyscluster directory
  • This works in development mode, but causes permissions error in production installation:
    • .tethyscluster directory created in home directory of the current user (/var/www/tethys/.tethyscluster?)
    • In production user running Tethys is the Apache user
    • Home directory of Tethys user is the /var/www directory which is owned by the root user
    • Hence, Tethys doesn't have the ability to create it automatically

Suggestions

  • Option 1: Create a "tethys" user that owns all Tethys source and belongs to the Apache group during production installation to allow the appropriate permissions.
  • Option 2: Mitigate through docs by including instructions to manually create the .tethyscluster directory during production installation.
  • Option 3: Move .tethyscluster directory to the tethys src directory.
  • Others?

Custom "collectstatic" CLI command

Motivation

  • Static files must be manually moved to a static files directory to be served in production.
  • This is normally automated by the Django CLI collectstatic management command.
  • Files added dynamically to the static directory of an app project are not automatically added to the static directory and are thus not served automatically.

Solution

  • Create a custom collectstatic management function for Tethys that will create symbolic links from the static files to the static file directory (tethys manage collectstatic).
  • This command will also call the Django collectstatic command.
  • Alternatively, investigate the "Media" directory for Django web projects.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.