Skip to content

Commit

Permalink
Queryables (#133)
Browse files Browse the repository at this point in the history
* add queryables output and missing_queryables helpers

* allow to pass in an array of collections to get_queryables

* add tests and fixes for consistency with/without properties prefixes
  • Loading branch information
bitner authored Sep 22, 2022
1 parent 2ef0269 commit 835a62c
Show file tree
Hide file tree
Showing 9 changed files with 3,508 additions and 16 deletions.
25 changes: 21 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,30 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [v0.6.8]

### Added
- Add get_queryables function to return a composite queryables json for either a single collection (text), a list of collections(text[]), or for the full repository (null::text).

- Add missing_queryables(collection text, tablesample int) function to help identify if there are any properties in a collection without entries in the queryables table. The tablesample parameter is an int <=100 that is the approximate percentage of the collection to scan to look for missing queryables rather than reading every item.

- Add missing_queryables(tablesample int) function that scans all collections using a sample of records to identify missing queryables.



## [v0.6.7]

### Fixed
- Fix not-null `prev` attribute when reading first token_type="prev" [#140](https://github.com/stac-utils/pgstac/issues/140)
### Added
- Add get_queryables function to return a composite queryables json for either a single collection (text), a list of collections(text[]), or for the full repository (null::text).

- Add missing_queryables(collection text, tablesample int) function to help identify if there are any properties in a collection without entries in the queryables table. The tablesample parameter is an int <=100 that is the approximate percentage of the collection to scan to look for missing queryables rather than reading every item.

- Add missing_queryables(tablesample int) function that scans all collections using a sample of records to identify missing queryables.



## [v0.6.6]

Expand Down Expand Up @@ -211,7 +227,8 @@ _TODO_

- Fixed issue with pypgstac loads which caused some writes to fail ([#18](https://github.com/stac-utils/pgstac/pull/18))

[unreleased]: https://github.com/stac-utils/pgstac/compare/v0.6.7...HEAD
[unreleased]: https://github.com/stac-utils/pgstac/compare/v0.6.8...HEAD
[v0.6.8]: https://github.com//stac-utils/pgstac/compare/v0.6.7...v0.6.8
[v0.6.7]: https://github.com//stac-utils/pgstac/compare/v0.6.6...v0.6.7
[v0.6.6]: https://github.com//stac-utils/pgstac/compare/v0.6.5...v0.6.6
[v0.6.5]: https://github.com//stac-utils/pgstac/compare/v0.6.4...v0.6.5
Expand Down
Loading

0 comments on commit 835a62c

Please sign in to comment.