Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

Releases: DePayFi/dhs

v1.6.0

30 Apr 06:55
3bcd9ac
Compare
Choose a tag to compare

use attribute_accessors_per_thread instead of per_thread_registry

v1.4.2

28 Apr 07:31
c5fd2f2
Compare
Choose a tag to compare

fix merge batch data for next offset pagination

v1.4.1

25 Apr 09:11
545d9e8
Compare
Choose a tag to compare

minor fixes (rubocop)

v1.4.0

25 Apr 08:57
807809d
Compare
Choose a tag to compare

add next_offset pagination strategy

v1.3.0

21 Dec 10:55
0449d5a
Compare
Choose a tag to compare

Adding support for GraphQL

v1.2.0

25 May 12:47
58d3e00
Compare
Choose a tag to compare

adds .order to query chains

order

Set the expected order of things using .order

# app/controllers/some_controller.rb

Record.where(color: 'blue').order(:name, { created_at: :desc })
  GET https://service.example.com/records?color=blue&order[name]=asc&order[created_at]=desc

v1.1.0

25 May 12:46
223c170
Compare
Choose a tag to compare

Adds offset_page pagination strategy:

Pagination strategy: offset_page

The offest_page strategy is based on the page strategy with the only difference
that the pages are counted from 0 onwards (not from 1).

# app/models/transaction.rb

class Transaction < DHS::Record
  configuration pagination_strategy: 'offset_page', pagination_key: 'page'

  endpoint '{+service}/transactions'
end
# app/controllers/some_controller.rb

Record.all
GET https://service.example.com/records?limit=100
{
  items: [{...}, ...],
  total: 300,
  limit: 100,
  page: 0
}
In parallel:
  GET https://service.example.com/records?limit=100&page=1
  GET https://service.example.com/records?limit=100&page=2

v1.0.3

08 Apr 08:44
9f682ba
Compare
Choose a tag to compare

Rails 6 starts new autoloading/reloading behavior.

This version fixes the deprecation warnings mentioned here: local-ch/lhs#404

v1.0.2

05 Apr 09:08
9173aab
Compare
Choose a tag to compare

Previously find_in_batches and find_each have been implemented before the pagination abstraction and hence have only implemented the offset pagination type hardcoded.

This change rewrites find_in_batches to also work with the other pagination types.

v1.0.1

04 Apr 16:24
Compare
Choose a tag to compare

Reducing Ruby version entry level to 2.7.2