Skip to content

Releases: GetDKAN/data-catalog-services

Update initial pagination in useSearch hook

04 May 18:54
Compare
Choose a tag to compare
  • Prevent useSearch from resetting to page 1 on initial render
  • Update axios and remove Eslint
  • Fix test for initial parameter search

v1.2.0

16 Dec 15:17
248e904
Compare
Choose a tag to compare

Update the query endpoint to return columns if there are property keys returned instead of results. This will allow for columns to return even if there are no results so an empty table can be shown to users.
#26

v1.1.0 Release

09 Nov 15:48
aef035f
Compare
Choose a tag to compare

Update datastore fetch to build columns from schema (#25)

1.0.0 Release

29 Sep 15:07
bb8f047
Compare
Choose a tag to compare

This is the 1.0 release of data-catalog-services.

Changes from last alpha release to final release:

  1. Removed the Pagination hook as its internal state caused some issues as it could become out of sync with the datastore state.
  2. Remove the old Resource component as it has been phased out and replaced with the useDatastore hook.
  3. Updated Search API pages to start at 1 instead of 0.

usePagination and useSearchAPI custom hooks

04 Feb 16:04
Compare
Choose a tag to compare

This release adds 2 more hooks.

usePagination

This hook will return pageIndex and the functions needed to build any buttons or pagers. It doesn't give any markup, just the function to set state and an array of pages to show.

useSearchAPI

This custom hook gives streamlined access to the DKAN Search API endpoint. It will build the search query using the query string library and has a built in timer that holds of firing the search automatically, so if using text inputs there is some lead time so searches don't keep firing.

useDatastore, useMetastore, and Resource

23 Dec 01:17
c7dc6eb
Compare
Choose a tag to compare

Adds basic custom hooks for useDatastore (focusing on query endpoint) and useMetastore. Also Resource React component that makes use of useDatastore to replace the old datastore.js and useReducer setup.