Sha256: 5c0aad756a3764841fa670bd0315322c873b3f7f8e0e18d9dfe019be8598e708

Contents?: true

Size: 817 Bytes

Versions: 50

Compression:

Stored size: 817 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Core
    class TraceVersionType < Decidim::Api::Types::BaseObject
      description "A trace version type"

      field :id, GraphQL::Types::ID, "The ID of the version", null: false
      field :created_at, Decidim::Core::DateTimeType, description: "The date and time this version was created", null: true
      field :editor, Decidim::Core::AuthorInterface, description: "The editor/author of this version", null: true

      def editor
        author = Decidim.traceability.version_editor(object)
        author if author.is_a?(Decidim::User) || author.is_a?(Decidim::UserGroup)
      end
      field :changeset, GraphQL::Types::JSON, description: "Object with the changes in this version", null: true

      delegate :changeset, to: :object
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
decidim-core-0.29.1 lib/decidim/api/types/trace_version_type.rb
decidim-core-0.28.4 lib/decidim/api/types/trace_version_type.rb
decidim-core-0.27.9 lib/decidim/api/types/trace_version_type.rb
decidim-core-0.29.0 lib/decidim/api/types/trace_version_type.rb
decidim-core-0.28.3 lib/decidim/api/types/trace_version_type.rb
decidim-core-0.27.8 lib/decidim/api/types/trace_version_type.rb
decidim-core-0.29.0.rc4 lib/decidim/api/types/trace_version_type.rb
decidim-core-0.29.0.rc3 lib/decidim/api/types/trace_version_type.rb
decidim-core-0.29.0.rc2 lib/decidim/api/types/trace_version_type.rb
decidim-core-0.29.0.rc1 lib/decidim/api/types/trace_version_type.rb
decidim-core-0.28.2 lib/decidim/api/types/trace_version_type.rb
decidim-core-0.27.7 lib/decidim/api/types/trace_version_type.rb
decidim-core-0.28.1 lib/decidim/api/types/trace_version_type.rb
decidim-core-0.27.6 lib/decidim/api/types/trace_version_type.rb
decidim-core-0.26.10 lib/decidim/api/types/trace_version_type.rb
decidim-core-0.26.9 lib/decidim/api/types/trace_version_type.rb
decidim-core-0.28.0 lib/decidim/api/types/trace_version_type.rb
decidim-core-0.27.5 lib/decidim/api/types/trace_version_type.rb
decidim-core-0.28.0.rc5 lib/decidim/api/types/trace_version_type.rb
decidim-core-0.28.0.rc4 lib/decidim/api/types/trace_version_type.rb