Commit Graph

688 Commits

Author SHA1 Message Date
Tom Kralidis 4b85a6a8eb detect exact match for ES property queries (#793)
* detect exact match for ES property queries

* detect exact match for ES property queries

* update tests
2021-10-11 20:21:44 -04:00
Tom Kralidis 7b34101b7a make TinyDB q= queries case-insensitive (#792)
* make TinyDB q= queries case-insensitive

* make TinyDB q= queries case-insensitive

* optimize nocase tests

* optimize nocase tests
2021-10-06 08:39:11 -04:00
Benjamin Webb 361d28c6ac Sensorthings API Provider Patch (#789)
* return correct limits & faster hits query

* Fix hits behavior (and break pytest)

* fix pytest for sensorthings provider

* check before unpacking properties

* add q string

* enclose id in single quotes for entities with non-literal id values

* Undo accidental branch merging

* Undo other part of accident branch merging

* add uri_field to config schema

* Remove uri_field from schema for config file
2021-10-04 11:05:16 -04:00
Tom Kralidis f091d971b1 fix configuration JSON schema (#788) 2021-10-02 08:14:03 -04:00
Tom Kralidis 16648ecb48 add queryable support for CSV and GeoJSON providers (#555) (#786) 2021-09-26 20:25:27 -04:00
Tom Kralidis 44624e8e87 docs: make CSV table more readable (#785) 2021-09-26 07:10:09 -04:00
Benjamin Webb a54fd6a908 Add postgres provider query parameters (#784)
* Add sortby, skip_geometry, and select_properties

* some pytest fixes

* Update main.yml

* Update main.yml

* fix geom in response feature

* more pytest fixes

* Update postgresql.py

* Update test_postgresql_provider.py

* Update test_postgresql_provider.py

* Add to docs, fix pytest

* fix for when when 'name' = None

* Update test_postgresql_provider.py

* Update test_postgresql_provider.py

* Remove optional comparator

* use secrets with default password

* Add secret to load postgres data
2021-09-25 07:03:38 -04:00
Tom Kralidis 7c9376e8c7 fix flake8 2021-09-25 06:47:46 -04:00
Tom Kralidis c8951d4e02 Merge branch 'MetServiceDev-782_subsetting_using_bbox_uses_wrong_keys' 2021-09-25 06:46:37 -04:00
Tom Kralidis 93c5e6fed0 Merge branch '782_subsetting_using_bbox_uses_wrong_keys' of https://github.com/MetServiceDev/pygeoapi into MetServiceDev-782_subsetting_using_bbox_uses_wrong_keys 2021-09-25 06:46:26 -04:00
Tom Kralidis 26ae0bfe46 Update pygeoapi-config.yml 2021-09-21 07:15:37 -04:00
Tom Kralidis bc57f8f75a Update SECURITY.md 2021-09-21 06:34:29 -04:00
Michael Lane b36fc74915 782: Replaced the literal strings 'x_axis_label' and 'y_axis_label' in the query_params submitted to xarray with the values for the axis labels stored in self._coverage_properties. 2021-09-20 01:11:57 +00:00
Tom Kralidis 2cb68277f9 fix flake8 and add MIME types to lambda setup (#781)
* fix flake8 and add MIME types to lambda setup

* add fixes per #660)
2021-09-19 19:22:02 -04:00
Chris Barrett db3d4f9502 Support for building pygeoapi as a lambda container and deploying to AWS Lambda (#2) (#709) 2021-09-19 19:10:17 -04:00
Tom Kralidis 9b8d86e914 Merge pull request #780 from tomkralidis/html-safe-attribution
mark HTML as safe in templates
2021-09-19 07:24:14 -04:00
Tom Kralidis ad6e3935f7 mark HTML as safe in templates 2021-09-19 07:18:57 -04:00
Tom Kralidis 9b49ddb144 Merge pull request #779 from GeoSander/fix-769
Language structs (dicts) must consist of valid locale keys only (#769)
2021-09-19 07:13:20 -04:00
Sander Schaminee d2d5ce794a Language structs (dicts) must consist of valid locale keys only (#769) 2021-09-19 00:30:20 +02:00
Tom Kralidis a67d0d4c2d Merge pull request #773 from eurodatacube/fix-jobs-link
Fixed an issue with navigation in job templates
2021-09-13 18:25:06 -04:00
Tom Kralidis 13926977a2 Merge pull request #774 from webb-ben/sta-patch
small SensorThings provider patches
2021-09-13 18:24:45 -04:00
Tom Kralidis 3a1a28d260 Merge pull request #777 from tomkralidis/issue-775
fix OpenAPI JSON file rendering (#775)
2021-09-13 14:31:12 -04:00
Tom Kralidis 652ecfedf7 fix OpenAPI JSON file rendering (#775) 2021-09-13 14:26:05 -04:00
Tom Kralidis 0d3c0b5ee9 Merge pull request #776 from tomkralidis/tinydb-oarec-updates
OARec and TinyDB updates
2021-09-13 13:43:43 -04:00
Tom Kralidis 56411f7327 update to latest OARec metadata model updates 2021-09-13 13:36:53 -04:00
Tom Kralidis dcc8c64639 bind TinyDB item query to record GeoJSON id required property 2021-09-13 13:36:40 -04:00
Tom Kralidis cfb41b2e07 map geometry queryables to GeoJSON schema 2021-09-13 13:34:20 -04:00
Benjamin Webb 07a23928ff Update test_sensorthings_provider.py 2021-09-09 13:52:21 -04:00
Benjamin Webb 701c34a64f Patch sta provider
Fixes the STA provider when there is a stac-collection or process in the resources block. Also iterates through to return as many hits as specified by pygeoapi. This happened when the sta provider had an internal limit lower than the requested number of items.
2021-09-09 13:45:54 -04:00
Bernhard Mallinger 9662702ae3 Fixed an issue with navigation in job templates
On the job detail page (`/processes/PROCESS/jobs/JOB`), the link to "Jobs" used to be `./`. This
creates the url `/processes/PROCESS/jobs/`.

On that page, the link to "Jobs" is `./jobs`, which then leads you to
`/processes/PROCESS/jobs/jobs`. This however is the URL for the job with
the id `jobs`.

This patch fixes this by changing the link to jobs on the job detail page to `../jobs`.

I'm not sure if this is the best fix. Just using `.` as link doesn't seem to lead to the
desired outcome, it also generates the link `/processes/PROCESS/jobs/`.
2021-09-09 16:21:19 +02:00
Tom Kralidis 774ff49f00 update translations (#760) (#762)
* update translations (#760)

* fix syntax

* update translations

* update docs

* fix typos
2021-09-01 09:02:28 -04:00
Tom Kralidis cf9bd223eb Update plugins.rst (#770) 2021-08-31 10:11:31 -04:00
Tom Kralidis 70edc3c0f2 update TinyDB q= support for multiple terms (#765) 2021-08-26 16:30:46 -04:00
Tom Kralidis 1ff9dfa3bb update id field passing to HTML template (#764) 2021-08-25 08:24:28 -04:00
Tom Kralidis 6fb64e6a46 fix JSON filter in HTML items/item templates (#761) (#763) 2021-08-25 07:22:53 -04:00
Tom Kralidis 6dcd10b10a test for item prev and next links on item queries (#752) (#757) 2021-08-25 06:34:39 -04:00
Alexandre Leroux 719201241a updates to French translation (#759) 2021-08-24 06:37:03 -04:00
paul van genuchten 995ab2f04d add translation system to pygeoapi (#725)
* adds translation keys to templates

* adds translation keys to templates

* suggestions from github pr 2
2021-08-22 20:42:10 -04:00
Tom Kralidis bc97ed480a add geometry to queryables (#755) 2021-08-22 08:28:56 -04:00
Tom Kralidis 9d920901b5 update OAProc execute handling (#754)
* fix OAProc default output to raw

* control outputs list from api machinery

* fix tests
2021-08-18 15:28:55 -04:00
Tom Kralidis 6ee727bf1d Create SECURITY.md (#749)
* Create SECURITY.md

* Update SECURITY.md

* Update SECURITY.md
2021-08-13 15:48:35 -04:00
Fabio Zeiser 0ac6962eab Fixes #750, rerieval of path attribute in starlette (#751) 2021-08-10 06:48:46 -04:00
Francesco Bartoli c5942f7a13 Fix time format in cite configuration (#748) 2021-08-02 07:27:48 -04:00
Tom Kralidis 6b0f137690 simplify OAProc parameter handling (#746) 2021-07-23 21:03:51 -04:00
Tom Kralidis 5359789f13 fix OARec test data (#745)
* fix OARec test data

* fix TinyDB bbox handling

* add missing OACov conformance test
2021-07-23 14:50:34 -04:00
Tom Kralidis 914756666c OARec bbox should be two arrays, not three (#744) 2021-07-23 13:39:39 -04:00
Benjamin Webb 3efa041c54 Patch SensorThings API Tests (#737) 2021-07-22 19:11:25 -04:00
Francesco Bartoli 0cf564080a Fix typo (#743) 2021-07-22 19:11:05 -04:00
Jo cf4517c1c2 - update the script that loads data to ES, to support data encoded with utf8 (#742) 2021-07-22 19:10:38 -04:00
Jo 3625c855ae - Switched to python3, when loading records to the ES docker (#741) 2021-07-22 19:10:06 -04:00