lib/tracker_api/resources/story.rb in tracker_api-1.2.1 vs lib/tracker_api/resources/story.rb in tracker_api-1.3.0
- old
+ new
@@ -4,10 +4,12 @@
include Shared::Base
attribute :client
attribute :accepted_at, DateTime
+ attribute :after_id, Integer
+ attribute :before_id, Integer
attribute :comment_ids, [Integer]
attribute :comments, [Comment]
attribute :created_at, DateTime
attribute :current_state, String # (accepted, delivered, finished, started, rejected, planned, unstarted, unscheduled)
attribute :deadline, DateTime
@@ -37,19 +39,21 @@
class UpdateRepresenter < Representable::Decorator
include Representable::JSON
- property :follower_ids, if: ->(options) { !options[:input].blank? }
+ property :follower_ids, if: ->(_) { !follower_ids.blank? }
property :name
+ property :after_id
+ property :before_id
property :description
property :story_type
property :current_state
property :estimate
property :accepted_at
property :deadline
property :requested_by_id
- property :owner_ids, if: ->(options) { !options[:input].blank? }
+ property :owner_ids, if: ->(_) { !owner_ids.blank? }
collection :labels, class: Label, decorator: Label::UpdateRepresenter, render_empty: true
property :integration_id
property :external_id
end