graphiti

Stylish Graph APIs

MIT License

Downloads
799.7K
Stars
949
Committers
70

Bot releases are visible (Hide)

graphiti - v1.7.1 Latest Release

Published by github-actions[bot] 6 months ago

1.7.1 (2024-04-18)

Bug Fixes

  • properly display .find vs .all in debugger statements (d2a7a03)
  • rescue error from sideloads updated_at calculation, defaulting to the current time (661e3b5)
graphiti - v1.7.0

Published by github-actions[bot] 7 months ago

1.7.0 (2024-03-27)

Features

• Add support for caching renders in Graphiti, and better support using etags and stale? in the controller (#424) (8bae50a)

Read the PR for more detail, but in short, start using stale? in your controllers, as etag and updated_at, cache_key, and cache_key_with_version methods have been added to the resource.

class EmployeesController < ApplicationController
  def index
   @employees = Employees.all(params)
   respond_with @employees if stale?(@employees) 
  end
end

Also you can now cache the rendering of a graphiti resource.

Graphiti.configure do |c|
  c.cache_rendering = Rails.env.production?
  # c.debug = true
  # with debug enabled extra information about caching will be output
end

Graphiti.cache = ::Rails.cache # or whatever cache you want to use that conforms to the same typical cache interface with .read, .write. fetch, etc.
class EmployeesController < ApplicationResource
  cache_resource, expires_in: 1.week 
end

With the above the actual json-rendering will be cached, often improving response time dramatically. (All render cache keys are namespaced and start with graphiti:render/, in case you're digging in your cache and wanting to see what's what)

graphiti - v1.6.4

Published by github-actions[bot] 7 months ago

1.6.4 (2024-03-27)

graphiti - v1.6.3

Published by github-actions[bot] 7 months ago

1.6.3 (2024-03-26)

Bug Fixes

  • Remove thread pool executor logic until we get a better handle on what's causing thread pool hangs. refs #469 (7941b6f), closes #471 #470
graphiti - v1.6.2

Published by github-actions[bot] 7 months ago

1.6.2 (2024-03-22)

Bug Fixes

  • thread pool scope and mutex need to be global across all instances of Scope for it to be a global thread pool (#471) (51fb51c)
graphiti - v1.6.1

Published by github-actions[bot] 7 months ago

1.6.1 (2024-03-22)

Bug Fixes

  • correct thread-pool mutex logic which was causing a deadlock (0400ab0)
graphiti - v1.6.0

Published by github-actions[bot] 7 months ago

1.6.0 (2024-03-20)

Features

  • add thread pool and concurrency_max_threads configuration option (#470) (697d761)
graphiti - v1.5.3

Published by github-actions[bot] 7 months ago

1.5.3 (2024-03-18)

Bug Fixes

  • leverage ruby-2.7 parameter forwarding (#431) (ae09a46)
  • prevent :id stripping when :id not in path (#447) (e1dd811)
graphiti - v1.5.2

Published by github-actions[bot] 7 months ago

1.5.2 (2024-03-18)

Bug Fixes

  • Enum should allow the conventionally case-sensitive operators (#434) (56d34fd)
graphiti - v1.5.1

Published by github-actions[bot] 7 months ago

1.5.1 (2024-03-18)

Bug Fixes

graphiti - v1.5.0

Published by github-actions[bot] 7 months ago

1.5.0 (2024-03-18)

Features

graphiti - Release 1.4.0

Published by jkeen 7 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/graphiti-api/graphiti/compare/v1.3.9...v1.4.0

graphiti - Release 1.3.6

Published by richmolj over 2 years ago

Main highlight is supporting more rubies, but full changelog update is pending

graphiti - 1.2.44

Published by richmolj over 3 years ago

Fix for custom adapters not supporting offset-based pagination

graphiti - Don't blow up parsing invalid json strings

Published by richmolj over 3 years ago

graphiti - Don't show pagination links on #show endpoints

Published by richmolj over 3 years ago

graphiti - Fix issue with sideposted m2m validation

Published by richmolj over 3 years ago

graphiti - Don't blow up when missing/unexpected context

Published by richmolj over 3 years ago

graphiti - Allow unwritable PK when associating on create

Published by richmolj over 3 years ago

graphiti - Fix issue with multiple extra_attributes without blocks

Published by richmolj over 3 years ago