lhs icon indicating copy to clipboard operation
lhs copied to clipboard

⚛️ REST services accelerator: Rails gem providing an easy, active-record-like interface for http (hypermedia) json services

Results 48 lhs issues
Sort by recently updated
recently updated
newest added

Before including linked resources, LHS should try to perform an `expand=[...]`, when endpoint supports expand, no further action required, when expand is not supported, resources are included like before, by...

situation is unclear at the moment how LHS handles included resources in regards to page-limits. this code (sales-butler) ``` IS::Place .options(auth: { bearer: token }) .includes(contracts: :product) .references(contracts: { auth:...

contact_person.electronic_addresses.blank? returns true if href is around

Chains are quite some magic. Some people run into weird problems because it was not obvious in which cases chains resolve. We might want to log when a chain resolved.

Consider the following cases: ``` ruby authenticated(EntryFeedback::Base).where(place_id: listing.id, with_accepted_review: true).to_a => [ EntryFeedback::Base#70223185154440(...), EntryFeedback::Base#70223185154441(...), EntryFeedback::Base#70223185154442(...) ] ``` vs. ``` ruby authenticated(EntryFeedback::Base).where(place_id: listing.id, with_accepted_review: true).all ``` Expected: - an array of...

**Reproduce** 1) include `ActiveModel::Validations` inside your Model which inherits from `LHS::Record` 2) add validations inside the model 3) make sure that the backend for the api has also implemented some...

Consider following code: ``` ruby class Feedback < LHS::Record def review_title=(title) self.review ||= {} review[:title] = title end end f = Feedback.new f.review_title = 'awesome title' ``` Expected: ``` ruby...

``` ruby instance.errors.add(:attribute, 'message') ```

Consider using delegation, proxy, or `define_method` instead of `method_missing`.