diff --git a/app/assets/javascripts/sample_types.js b/app/assets/javascripts/sample_types.js
index 298f65396d..39306a8d51 100644
--- a/app/assets/javascripts/sample_types.js
+++ b/app/assets/javascripts/sample_types.js
@@ -96,6 +96,16 @@ var SampleTypes = {
else {
seek_sample_element.hide();
}
+ },
+
+ expandIRI: function () {
+ var termIRI = $j(this).next('.term-iri');
+ termIRI.toggleClass('visible');
}
};
+
+
+$j(document).ready(function() {
+ $j('.term-label').on('click', SampleTypes.expandIRI);
+});
\ No newline at end of file
diff --git a/app/assets/javascripts/upload.js b/app/assets/javascripts/upload.js
index e5a0c8c213..c4a2b1eec9 100644
--- a/app/assets/javascripts/upload.js
+++ b/app/assets/javascripts/upload.js
@@ -69,6 +69,7 @@ $j(document).ready(function () {
filenameInput.val('');
$j('[data-role="seek-url-checker-msg-success"]', field).hide();
$j('[data-role="seek-url-checker-msg-too-big"]', field).hide();
+ $j('[role="seek-url-checker-remind-to-add-file"]',field).hide();
pending.append(HandlebarsTemplates['upload/remote_file'](remoteFile));
}
};
@@ -92,6 +93,7 @@ $j(document).ready(function () {
var result = field.find('[data-role="seek-url-checker-result"]');
var copyDialog = $j('[data-role="seek-url-checker-msg-success"]', field);
var tooBig = $j('[data-role="seek-url-checker-msg-too-big"]', field);
+ var addReminder = $j('[role="seek-url-checker-remind-to-add-file"]',field);
var submitUrl = function () {
result.html('').spinner('add');
@@ -111,6 +113,7 @@ $j(document).ready(function () {
checker.trigger('urlChecked', [info]);
if (info.allow_copy) {
copyDialog.show();
+ addReminder.show();
} else {
tooBig.show();
}
diff --git a/app/assets/stylesheets/linked_extended_metadata.css b/app/assets/stylesheets/linked_extended_metadata.css
index fee60b92ba..e84740e215 100644
--- a/app/assets/stylesheets/linked_extended_metadata.css
+++ b/app/assets/stylesheets/linked_extended_metadata.css
@@ -1,3 +1,21 @@
+.term-label {
+ font-weight: normal;
+ text-decoration: underline;
+}
+
+.term-iri {
+ display: none;
+ background-color: rgba(177, 183, 187, 0.47);
+ color: black;
+ font-weight: normal;
+}
+
+.term-iri.visible {
+ display: inline;
+ opacity: 1;
+ margin-left: 10px;
+}
+
.linked_extended_metdata .panel-default .panel-heading {
font-weight: bold;
color: #333;
diff --git a/app/controllers/samples_controller.rb b/app/controllers/samples_controller.rb
index d2289dccbb..cde6c4d694 100644
--- a/app/controllers/samples_controller.rb
+++ b/app/controllers/samples_controller.rb
@@ -220,31 +220,45 @@ def typeahead
def query
project_ids = params[:project_ids]&.map(&:to_i)
-
+ attribute_filter_value = params[:template_attribute_value]&.downcase
@result = params[:template_id].present? ?
Template.find(params[:template_id]).sample_types.map(&:samples).flatten : []
- if params[:template_attribute_id].present? && params[:template_attribute_value].present?
- attribute_title = TemplateAttribute.find(params[:template_attribute_id]).title
- @result = @result.select { |s| s.get_attribute_value(attribute_title)&.include?(params[:template_attribute_value]) }
+ if params[:template_attribute_id].present? && attribute_filter_value.present?
+ template_attribute = TemplateAttribute.find(params[:template_attribute_id])
+ @result = @result.select do |s|
+ sample_attribute = s.sample_type.sample_attributes.detect { |sa| template_attribute.sample_attributes.include? sa }
+ sample_attribute_title = sample_attribute&.title
+ if sample_attribute&.sample_attribute_type&.seek_sample_multi?
+ attr_value = s.get_attribute_value(sample_attribute_title)
+ attr_value&.any? { |v| v[:title].downcase.include?(attribute_filter_value) }
+ elsif sample_attribute&.sample_attribute_type&.seek_sample?
+ s.get_attribute_value(sample_attribute_title)[:title]&.downcase&.include?(attribute_filter_value)
+ elsif sample_attribute&.sample_attribute_type&.seek_cv_list?
+ attr_value = s.get_attribute_value(sample_attribute_title)
+ attr_value&.any? { |v| v.downcase.include?(attribute_filter_value) }
+ else
+ s.get_attribute_value(sample_attribute_title)&.downcase&.include?(attribute_filter_value)
+ end
+ end
end
if params[:input_template_id].present? # linked
- title =
- TemplateAttribute.find(params[:input_attribute_id]).title if params[:input_attribute_id].present?
- @result = find_samples(@result, :linked_samples,
- { attribute_id: params[:input_attribute_id],
+ input_template_attribute =
+ TemplateAttribute.find(params[:input_attribute_id])
+ @result = filter_linked_samples(@result, :linked_samples,
+ { attribute_id: params[:input_attribute_id],
attribute_value: params[:input_attribute_value],
- template_id: params[:input_template_id] }, title)
+ template_id: params[:input_template_id] }, input_template_attribute)
end
if params[:output_template_id].present? # linking
- title =
- TemplateAttribute.find(params[:output_attribute_id]).title if params[:output_attribute_id].present?
- @result = find_samples(@result, :linking_samples,
- { attribute_id: params[:output_attribute_id],
+ output_template_attribute =
+ TemplateAttribute.find(params[:output_attribute_id])
+ @result = filter_linked_samples(@result, :linking_samples,
+ { attribute_id: params[:output_attribute_id],
attribute_value: params[:output_attribute_value],
- template_id: params[:output_template_id] }, title)
+ template_id: params[:output_template_id] }, output_template_attribute)
end
@result = @result.select { |s| (project_ids & s.project_ids).any? } if project_ids.present?
@@ -318,16 +332,36 @@ def find_index_assets
end
end
- def find_samples(samples, link, options, title)
+ # Filters linked samples based on the provided options and template attribute title.
+ #
+ # @param samples [Array] the list of samples to filter
+ # @param link [Symbol] the method to call on each sample to get the linked samples (:linked_samples or :linking_samples)
+ # @param options [Hash] the options for filtering
+ # @option options [Integer] :template_id the ID of the template to filter by
+ # @option options [String] :attribute_value the value of the attribute to filter by
+ # @option options [Integer] :attribute_id the ID of the attribute to filter by
+ # @param template_attribute_title [String] the title of the template attribute to filter by
+ # @return [Array] the filtered list of samples
+ def filter_linked_samples(samples, link, options, template_attribute)
+ raise ArgumentError, "Invalid linking method provided. '#{link.to_s}' is not allowed!" unless %i[linked_samples linking_samples].include? link
+
+ template_attribute_title = template_attribute&.title
samples.select do |s|
s.send(link).any? do |x|
selected = x.sample_type.template_id == options[:template_id].to_i
- selected = x.get_attribute_value(title)&.include?(options[:attribute_value]) if title.present? && selected
- selected || find_samples([x], link, options, title).present?
+ if template_attribute.sample_attribute_type.seek_sample_multi?
+ selected = x.get_attribute_value(template_attribute_title)&.any? { |v| v[:title].downcase.include?(options[:attribute_value]) } if template_attribute.present? && selected
+ elsif template_attribute.sample_attribute_type.seek_sample?
+ selected = x.get_attribute_value(template_attribute_title)&[:title].downcase&.include?(options[:attribute_value]) if template_attribute.present? && selected
+ elsif template_attribute.sample_attribute_type.seek_cv_list?
+ selected = x.get_attribute_value(template_attribute_title)&.any? { |v| v.downcase.include?(options[:attribute_value]) } if template_attribute.present? && selected
+ else
+ selected = x.get_attribute_value(template_attribute_title)&.downcase&.include?(options[:attribute_value]&.downcase) if template_attribute.present? && selected
+ end
+ selected || filter_linked_samples([x], link, options, template_attribute).present?
end
end
end
-
def templates_enabled?
unless Seek::Config.isa_json_compliance_enabled
flash[:error] = 'Not available'
diff --git a/app/controllers/templates_controller.rb b/app/controllers/templates_controller.rb
index 908b9e0b27..821b8082b6 100644
--- a/app/controllers/templates_controller.rb
+++ b/app/controllers/templates_controller.rb
@@ -94,7 +94,7 @@ def populate_template
dir = Seek::Config.append_filestore_path('source_types')
if Dir.exist?(dir)
- `rm #{dir}/*`
+ FileUtils.rm_f(Dir.glob("#{dir}/*"))
else
FileUtils.mkdir_p(dir)
end
@@ -116,7 +116,7 @@ def populate_template
# post
def template_attributes
template = Template.find(params[:id])
- items = template.template_attributes.map { |a| { id: a.id, title: a.title } }
+ items = template.template_attributes.map { |a| { id: a.id, title: a.title.sanitize } }
respond_to do |format|
format.json { render json: items.to_json }
end
@@ -172,7 +172,7 @@ def set_status
elsif File.exist?(resultfile)
res = File.read(resultfile)
@status = res
- `rm #{resultfile}`
+ FileUtils.rm_f(resultfile)
else
@status = 'not_started'
end
@@ -187,12 +187,12 @@ def resultfile
end
def running!
- `touch #{lockfile}`
+ FileUtils.touch(lockfile)
set_status
end
def done!
- `rm -f #{lockfile}`
+ FileUtils.rm_f(lockfile)
end
def running?
diff --git a/app/helpers/samples_helper.rb b/app/helpers/samples_helper.rb
index 5c37ad0c79..3560b35617 100644
--- a/app/helpers/samples_helper.rb
+++ b/app/helpers/samples_helper.rb
@@ -143,7 +143,9 @@ def display_attribute_value(value, attribute, options = {})
when Seek::Samples::BaseType::CV
seek_cv_attribute_display(value, attribute)
when Seek::Samples::BaseType::CV_LIST
- value.each{|v| seek_cv_attribute_display(v, attribute) }.join(', ')
+ value.map do |v|
+ seek_cv_attribute_display(v, attribute)
+ end.join(', ').html_safe
when Seek::Samples::BaseType::LINKED_EXTENDED_METADATA
linked_extended_metadata_attribute_display(value, attribute)
when Seek::Samples::BaseType::LINKED_EXTENDED_METADATA_MULTI
@@ -171,12 +173,15 @@ def select_cv_source_ontology(sample_controlled_vocab)
end
def seek_cv_attribute_display(value, attribute)
- term = attribute.sample_controlled_vocab.sample_controlled_vocab_terms.where(label:value).last
- content = value
+ term = attribute.sample_controlled_vocab.sample_controlled_vocab_terms.where(label: value).last
if term && term.iri.present?
- content << " (#{term.iri}) "
+ iri_content = term.iri.match?(/^https?:\/\//) ? link_to(term.iri, term.iri, target: '_blank') : term.iri
+ label_tag = content_tag(:label, term.label, class: 'term-label')
+ iri_tag = content_tag(:label, iri_content, class: 'term-iri badge')
+ "#{label_tag}#{iri_tag}".html_safe
+ else
+ term.label
end
- content
end
def linked_extended_metadata_attribute_display(value, attribute)
diff --git a/app/helpers/templates_helper.rb b/app/helpers/templates_helper.rb
index ff3a032de4..fea648db03 100644
--- a/app/helpers/templates_helper.rb
+++ b/app/helpers/templates_helper.rb
@@ -17,12 +17,12 @@ def template_attribute_details(template_attribute)
def load_templates
privilege = Seek::Permissions::Translator.translate('view')
Template.order(:group, :group_order).select { |t| t.can_perform?(privilege) }.map do |item|
- { title: item.title,
- group: item.group,
- level: item.level,
- organism: item.organism,
+ { title: item.title&.sanitize,
+ group: item.group&.sanitize,
+ level: item.level&.sanitize,
+ organism: item.organism&.sanitize,
template_id: item.id,
- description: item.description,
+ description: item.description&.sanitize,
group_order: item.group_order,
attributes: item.template_attributes.order(:pos).map { |a| map_template_attributes(a) } }
end
@@ -77,19 +77,19 @@ def template_attribute_type_link(template_attribute)
def map_template_attributes(attribute)
{
attribute_type_id: attribute.sample_attribute_type_id,
- data_type: SampleAttributeType.find(attribute.sample_attribute_type_id)&.title,
+ data_type: SampleAttributeType.find(attribute.sample_attribute_type_id)&.title&.sanitize,
cv_id: attribute.sample_controlled_vocab_id,
allow_cv_free_text: attribute.allow_cv_free_text,
- title: attribute.title,
+ title: attribute.title&.sanitize,
is_title: attribute.is_title,
- short_name: attribute.short_name,
- description: attribute.description,
- pid: attribute.pid,
+ short_name: attribute.short_name&.sanitize,
+ description: attribute.description&.sanitize,
+ pid: attribute.pid&.sanitize,
required: attribute.required,
unit_id: attribute.unit_id,
pos: attribute.pos,
isa_tag_id: attribute.isa_tag_id,
- isa_tag_title: attribute.isa_tag&.title,
+ isa_tag_title: attribute.isa_tag&.title&.sanitize,
linked_sample_type_id: attribute.linked_sample_type_id,
template_attribute_id: attribute.id
}
diff --git a/app/models/sample_type.rb b/app/models/sample_type.rb
index b7ba82c750..1f9ddebf15 100644
--- a/app/models/sample_type.rb
+++ b/app/models/sample_type.rb
@@ -60,6 +60,30 @@ class SampleType < ApplicationRecord
has_annotation_type :sample_type_tag, method_name: :tags
+ # Creates sample attributes from an ISA template.
+ # @param template [Template] The ISA template to create sample attributes from.
+ # @param linked_sample_type [SampleType, nil] The linked sample type, if any.
+ def create_sample_attributes_from_isa_template(template, linked_sample_type = nil)
+ self.sample_attributes = template.template_attributes.map do |temp_attr|
+ has_seek_samples = temp_attr.sample_attribute_type.seek_sample? || temp_attr.sample_attribute_type.seek_sample_multi?
+ has_linked_st = linked_sample_type && has_seek_samples
+
+ SampleAttribute.new(
+ title: temp_attr.title,
+ description: temp_attr.description,
+ sample_attribute_type_id: temp_attr.sample_attribute_type_id,
+ required: temp_attr.required,
+ unit_id: temp_attr.unit_id,
+ is_title: temp_attr.is_title,
+ sample_controlled_vocab_id: temp_attr.sample_controlled_vocab_id,
+ linked_sample_type_id: has_linked_st ? linked_sample_type&.id : nil,
+ isa_tag_id: temp_attr.isa_tag_id,
+ allow_cv_free_text: temp_attr.allow_cv_free_text,
+ template_attribute_id: temp_attr.id
+ )
+ end
+ end
+
def level
isa_template&.level
end
diff --git a/app/views/assets/_upload.html.erb b/app/views/assets/_upload.html.erb
index 17c61999ec..6257a80bcb 100644
--- a/app/views/assets/_upload.html.erb
+++ b/app/views/assets/_upload.html.erb
@@ -85,7 +85,11 @@
<% if batch %>
<%= content_tag :script,
existing_objects.map { |o| { text: "#{o.url.blank? ? o.original_filename : o.url} (original)", id: o.id } }.to_json.html_safe,
diff --git a/app/views/extended_metadata/_single_row.html.erb b/app/views/extended_metadata/_single_row.html.erb
index 38cca5fa8d..dc5f93c42c 100644
--- a/app/views/extended_metadata/_single_row.html.erb
+++ b/app/views/extended_metadata/_single_row.html.erb
@@ -15,7 +15,7 @@
<% attr_element_name = "#{element_name}[#{index}][#{attr.title}]" %>
<%= attribute_form_element(attr, value ? value[attr.title] : nil, attr_element_name, element_class) %>
- <% unless attribute.description.nil? %>
+ <% unless attr.description.nil? %>
<%= extended_metadata_attribute_description(attr.description) %>
<% end %>
diff --git a/app/views/general/_item_title.html.erb b/app/views/general/_item_title.html.erb
index 9d17f3335a..1a9873edac 100644
--- a/app/views/general/_item_title.html.erb
+++ b/app/views/general/_item_title.html.erb
@@ -29,7 +29,7 @@ gatekeeper_status_bar = item.is_asset? && item.can_manage? && (item.is_waiting_a
-<% end %>
+<% end %>
\ No newline at end of file
diff --git a/app/views/samples/query_form.html.erb b/app/views/samples/query_form.html.erb
index 2dbe4153e3..72e351a2f2 100644
--- a/app/views/samples/query_form.html.erb
+++ b/app/views/samples/query_form.html.erb
@@ -17,7 +17,7 @@
Select Project(s)
<% projects.each do |p| %>
- <%= p[:title] %>
+ <%= p[:title].sanitize %>
<% end %>
@@ -31,7 +31,7 @@
<% templates.pluck(:group).uniq.each do |group_name| %>
<% templates.select{|t| t[:group]==group_name}.each do |t| %>
- <%=t[:title]%>
+ <%=t[:title].sanitize%>
<% end %>
<% end %>
@@ -66,7 +66,7 @@
<% templates.pluck(:group).uniq.each do |group_name| %>
<% templates.select{|t| t[:group]==group_name}.each do |t| %>
- <%= t[:title] %>
+ <%= t[:title].sanitize %>
<% end %>
<% end %>
@@ -99,7 +99,7 @@
<% templates.pluck(:group).uniq.each do |group_name| %>
<% templates.select{|t| t[:group]==group_name}.each do |t| %>
- <%= t[:title] %>
+ <%= t[:title].sanitize %>
<% end %>
<% end %>
diff --git a/config/version.yml b/config/version.yml
index df417d0345..fc93fbb85b 100644
--- a/config/version.yml
+++ b/config/version.yml
@@ -9,4 +9,4 @@
major: 1
minor: 16
-patch: 0-main
+patch: 0-main
\ No newline at end of file
diff --git a/lib/ro_crate/workflow_crate.rb b/lib/ro_crate/workflow_crate.rb
index 7f11eff10c..25b25381f5 100644
--- a/lib/ro_crate/workflow_crate.rb
+++ b/lib/ro_crate/workflow_crate.rb
@@ -50,7 +50,7 @@ def main_workflow_cwl=(entity)
end
def test_suites
- ((mentions || []) | (about || [])).select { |entity| entity.has_type?('TestSuite') }
+ (Array(mentions) | Array(about)).select { |entity| entity.has_type?('TestSuite') }
end
def find_entry(path)
diff --git a/lib/seek/isa_templates/template_attributes_schema_test.json b/lib/seek/isa_templates/template_attributes_schema_test.json
new file mode 100644
index 0000000000..23528693ba
--- /dev/null
+++ b/lib/seek/isa_templates/template_attributes_schema_test.json
@@ -0,0 +1,99 @@
+{
+ "$schema": "http://json-schema.org/draft-04/schema",
+ "title": "ISA tempalte attribute schema",
+ "description": "JSON-schema representing an ISA template attribute in DataHub",
+ "type": "object",
+ "properties": {
+ "iri": {
+ "anyOf": [
+ {
+ "type": "string",
+ "format": "uri"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": { "type": "string" },
+ "description": { "type": "string" },
+ "required": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "ontology": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "name": { "type": "string" },
+ "version": {
+ "anyOf": [{ "type": "string" }, { "type": "number" }]
+ },
+ "description": { "type": "string" },
+ "rootTermURI": { "type": "string", "format": "uri" }
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "dataType": {
+ "type": "string",
+ "enum": [
+ "String attribute type 1",
+ "Sample multi attribute type 1"
+ ]
+ },
+ "CVList": {
+ "anyOf": [
+ {
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isaTag": {
+ "anyOf": [
+ {
+ "type": "string",
+ "enum": [
+ "source",
+ "sample",
+ "protocol",
+ "source_characteristic",
+ "sample_characteristic",
+ "other_material",
+ "other_material_characteristic",
+ "data_file",
+ "data_file_comment",
+ "parameter_value"
+ ]
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "title": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+}
diff --git a/lib/seek/isa_templates/template_extractor.rb b/lib/seek/isa_templates/template_extractor.rb
index d0eb8d6f2c..4f11d633db 100644
--- a/lib/seek/isa_templates/template_extractor.rb
+++ b/lib/seek/isa_templates/template_extractor.rb
@@ -4,25 +4,24 @@ module Seek
module IsaTemplates
module TemplateExtractor
def self.extract_templates
- `touch #{resultfile}`
+ FileUtils.touch(resultfile)
result = StringIO.new
-
seed_isa_tags
disable_authorization_checks do
client = Ebi::OlsClient.new
project = Project.find_or_create_by(title: 'Default Project')
directory = Seek::Config.append_filestore_path('source_types')
- directory_files = Dir.exist?(directory) ? Dir.glob("#{directory}/*.json") : []
- raise 'Make sure to upload files that have the ".json" extension. ' if directory_files == []
+ @directory_files = Dir.exist?(directory) ? Dir.glob("#{directory}/*.json") : []
+ raise 'Make sure to upload files that have the ".json" extension. ' if @directory_files == []
- directory_files.each do |filename|
- puts filename
+ @directory_files.each do |filename|
next if File.extname(filename) != '.json'
+ @errors = []
file = File.read(filename)
res = check_json_file(file)
- raise res if res.present?
+ @errors.append res if res.present?
data_hash = JSON.parse(file)
data_hash['data'].each do |item|
@@ -35,8 +34,9 @@ def self.extract_templates
result << add_log(template_details, 'Created')
end
- template = Template.create(template_details.merge({ projects: [project], policy: Policy.public_policy }))
+ template = Template.new(template_details.merge({ projects: [project], policy: Policy.public_policy }))
+ current_template_attributes = []
item['data'].each_with_index do |attribute, j|
is_ontology = attribute['ontology'].present?
is_cv = attribute['CVList'].present?
@@ -56,7 +56,7 @@ def self.extract_templates
begin
terms = client.all_descendants(attribute['ontology']['name'],
attribute['ontology']['rootTermURI'])
- rescue Exception => e
+ rescue StandardError => e
scv.save(validate: false)
next
end
@@ -87,29 +87,35 @@ def self.extract_templates
p scv.errors if (is_ontology || is_cv) && !scv.save(validate: false)
- template_attribute_details = { title: attribute['name'], template_id: template.id }
-
- TemplateAttribute.create(template_attribute_details.merge({
- is_title: attribute['title'] || 0,
- isa_tag_id: get_isa_tag_id(attribute['isaTag']),
- short_name: attribute['short_name'],
- required: attribute['required'],
- description: attribute['description'],
- sample_controlled_vocab_id: scv&.id,
- pid: attribute['pid'],
- sample_attribute_type_id: get_sample_attribute_type(attribute['dataType']),
- allow_cv_free_text: attribute['ontology'].present?
- }))
+ ta = TemplateAttribute.new(is_title: (attribute['title'] || 0),
+ isa_tag_id: get_isa_tag_id(attribute['isaTag']),
+ short_name: attribute['short_name'],
+ required: attribute['required'],
+ description: attribute['description'],
+ sample_controlled_vocab_id: scv&.id,
+ pid: attribute['pid'],
+ sample_attribute_type_id: get_sample_attribute_type(attribute['dataType']),
+ allow_cv_free_text: attribute['ontology'].present?,
+ title: attribute['name'])
+
+ current_template_attributes.append ta
end
+ template.template_attributes << current_template_attributes
+ template.save! unless @errors.present?
end
+
+ # Remove the file after processing
end
end
+ raise "#{@errors.map { |e| "#{e}" }.join('')} ".html_safe if @errors.present?
+
write_result(result.string)
- rescue Exception => e
- puts e
+ rescue StandardError => e
write_result("error(s): #{e}")
+ raise e
ensure
- `rm -f #{lockfile}`
+ FileUtils.rm_f(lockfile)
+ FileUtils.rm_f(@directory_files) unless @directory_files.blank?
end
def self.init_template(metadata)
@@ -148,8 +154,13 @@ def self.check_json_file(file)
end
def self.valid_isa_json?(json)
- definitions_path =
- File.join(Rails.root, 'lib', 'seek', 'isa_templates', 'template_schema.json')
+ # read the schema file depending on the environment
+ definitions_path = if Rails.env.test?
+ File.join(Rails.root, 'lib', 'seek', 'isa_templates', 'template_schema_test.json')
+ else
+ File.join(Rails.root, 'lib', 'seek', 'isa_templates', 'template_schema.json')
+ end
+
if File.readable?(definitions_path)
JSON::Validator.fully_validate_json(definitions_path, json)
else
@@ -158,8 +169,10 @@ def self.valid_isa_json?(json)
end
def self.get_sample_attribute_type(title)
- sa = SampleAttributeType.find_by(title: title)
- raise "Could not find a Sample Attribute named '#{title}'" if sa.nil?
+ sa = SampleAttributeType.find_by(title:)
+ @errors.append "Could not find a Sample Attribute Type named '#{title}' " if sa.nil?
+
+ return if sa.nil?
sa.id
end
@@ -167,8 +180,8 @@ def self.get_sample_attribute_type(title)
def self.get_isa_tag_id(title)
return nil if title.blank?
- it = IsaTag.find_by(title: title)
- raise "Could not find an ISA Tag named '#{title}'" if it.nil?
+ it = IsaTag.find_by(title:)
+ @errors.append "Could not find an ISA Tag named '#{title}' " if it.nil?
it.id
end
diff --git a/lib/seek/isa_templates/template_schema_test.json b/lib/seek/isa_templates/template_schema_test.json
new file mode 100644
index 0000000000..192bab0760
--- /dev/null
+++ b/lib/seek/isa_templates/template_schema_test.json
@@ -0,0 +1,42 @@
+{
+ "$schema": "http://json-schema.org/draft-04/schema",
+ "title": "ISA template schema",
+ "description": "JSON-schema representing an ISA template in DataHub",
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "metadata": {
+ "type": "object",
+ "properties": {
+ "name": { "type": "string" },
+ "group": { "type": "string" },
+ "group_order": { "type": "number" },
+ "temporary_name": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
+ "version": { "anyOf": [{ "type": "string" }, { "type": "number" }] },
+ "isa_config": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
+ "isa_measurement_type": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
+ "isa_technology_type": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
+ "isa_protocol_type": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
+ "repo_schema_id": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
+ "organism": { "type": "string" },
+ "level": { "type": "string" }
+ },
+ "additionalProperties": false
+ },
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "template_attributes_schema_test.json#"
+ }
+ }
+ },
+ "additionalProperties": false
+ }
+ }
+ },
+ "additionalProperties": false
+}
diff --git a/lib/tasks/seek_upgrades.rake b/lib/tasks/seek_upgrades.rake
index 769e95aed1..8bf3e7f183 100644
--- a/lib/tasks/seek_upgrades.rake
+++ b/lib/tasks/seek_upgrades.rake
@@ -18,6 +18,7 @@ namespace :seek do
implement_assay_streams_for_isa_assays
set_ls_login_legacy_mode
rename_custom_metadata_legacy_supported_type
+ fix_xlsx_marked_as_zip
]
# these are the tasks that are executes for each upgrade as standard, and rarely change
@@ -205,6 +206,15 @@ namespace :seek do
end
end
+ task(fix_xlsx_marked_as_zip: [:environment]) do
+ blobs = ContentBlob.where('original_filename LIKE ?','%.xlsx').where(content_type: 'application/zip')
+ if blobs.any?
+ n = blobs.count
+ blobs.update_all(content_type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet')
+ puts "... fixed #{n} XLSX blobs with zip content type"
+ end
+ end
+
private
##
diff --git a/public/api/examples/assayPatch.json b/public/api/examples/assayPatch.json
index 3466c4d3eb..f6d0c2c436 100644
--- a/public/api/examples/assayPatch.json
+++ b/public/api/examples/assayPatch.json
@@ -1,7 +1,7 @@
{
"data": {
"type": "assays",
- "id": "52",
+ "id": "112",
"attributes": {
"title": "A Maximal Assay",
"assay_class": {
@@ -20,7 +20,7 @@
"permissions": [
{
"resource": {
- "id": "343",
+ "id": "1115",
"type": "projects"
},
"access": "manage"
@@ -34,14 +34,14 @@
"relationships": {
"study": {
"data": {
- "id": "57",
+ "id": "143",
"type": "studies"
}
},
"publications": {
"data": [
{
- "id": "24",
+ "id": "46",
"type": "publications"
}
]
@@ -49,7 +49,7 @@
"organisms": {
"data": [
{
- "id": "13",
+ "id": "64",
"type": "organisms"
}
]
@@ -57,7 +57,7 @@
"sops": {
"data": [
{
- "id": "22",
+ "id": "80",
"type": "sops"
}
]
@@ -65,7 +65,7 @@
"data_files": {
"data": [
{
- "id": "18",
+ "id": "58",
"type": "data_files"
}
]
@@ -73,7 +73,7 @@
"documents": {
"data": [
{
- "id": "32",
+ "id": "103",
"type": "documents"
}
]
@@ -81,7 +81,7 @@
"creators": {
"data": [
{
- "id": "328",
+ "id": "951",
"type": "people"
}
]
diff --git a/public/api/examples/assayPatchResponse.json b/public/api/examples/assayPatchResponse.json
index a1417956d6..43ed4935e0 100644
--- a/public/api/examples/assayPatchResponse.json
+++ b/public/api/examples/assayPatchResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "52",
+ "id": "112",
"type": "assays",
"attributes": {
"policy": {
@@ -8,7 +8,7 @@
"permissions": [
{
"resource": {
- "id": "343",
+ "id": "1115",
"type": "projects"
},
"access": "manage"
@@ -43,10 +43,10 @@
],
"creators": [
{
- "profile": "/people/328",
+ "profile": "/people/951",
"family_name": "Last",
- "given_name": "Person272",
- "affiliation": "An Institution: 330",
+ "given_name": "Person763",
+ "affiliation": "An Institution: 978",
"orcid": null
}
]
@@ -55,7 +55,7 @@
"creators": {
"data": [
{
- "id": "328",
+ "id": "951",
"type": "people"
}
]
@@ -63,7 +63,7 @@
"submitter": {
"data": [
{
- "id": "328",
+ "id": "951",
"type": "people"
}
]
@@ -71,7 +71,7 @@
"organisms": {
"data": [
{
- "id": "13",
+ "id": "64",
"type": "organisms"
}
]
@@ -84,7 +84,7 @@
"people": {
"data": [
{
- "id": "328",
+ "id": "951",
"type": "people"
}
]
@@ -92,31 +92,36 @@
"projects": {
"data": [
{
- "id": "343",
+ "id": "1115",
"type": "projects"
}
]
},
"investigation": {
"data": {
- "id": "59",
+ "id": "152",
"type": "investigations"
}
},
"study": {
"data": {
- "id": "57",
+ "id": "143",
"type": "studies"
}
},
"data_files": {
"data": [
{
- "id": "18",
+ "id": "58",
"type": "data_files"
}
]
},
+ "samples": {
+ "data": [
+
+ ]
+ },
"models": {
"data": [
@@ -125,7 +130,7 @@
"sops": {
"data": [
{
- "id": "22",
+ "id": "80",
"type": "sops"
}
]
@@ -133,7 +138,7 @@
"publications": {
"data": [
{
- "id": "24",
+ "id": "46",
"type": "publications"
}
]
@@ -146,21 +151,21 @@
"documents": {
"data": [
{
- "id": "32",
+ "id": "103",
"type": "documents"
}
]
}
},
"links": {
- "self": "/assays/52"
+ "self": "/assays/112"
},
"meta": {
- "created": "2022-06-07T14:13:12.000Z",
- "modified": "2022-06-07T14:13:13.000Z",
+ "created": "2024-06-20T12:31:34.000Z",
+ "modified": "2024-06-20T12:31:35.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "e3d848d0-c899-013a-0f7e-0a81884ed284"
+ "uuid": "f44538c0-112e-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/assayPost.json b/public/api/examples/assayPost.json
index 073cdc1b1f..85876b0998 100644
--- a/public/api/examples/assayPost.json
+++ b/public/api/examples/assayPost.json
@@ -19,7 +19,7 @@
"permissions": [
{
"resource": {
- "id": "293",
+ "id": "1053",
"type": "projects"
},
"access": "manage"
@@ -33,14 +33,14 @@
"relationships": {
"study": {
"data": {
- "id": "40",
+ "id": "124",
"type": "studies"
}
},
"publications": {
"data": [
{
- "id": "19",
+ "id": "41",
"type": "publications"
}
]
@@ -48,7 +48,7 @@
"organisms": {
"data": [
{
- "id": "8",
+ "id": "59",
"type": "organisms"
}
]
@@ -56,7 +56,7 @@
"sops": {
"data": [
{
- "id": "17",
+ "id": "75",
"type": "sops"
}
]
@@ -64,15 +64,23 @@
"data_files": {
"data": [
{
- "id": "13",
+ "id": "53",
"type": "data_files"
}
]
},
+ "samples": {
+ "data": [
+ {
+ "id": "33",
+ "type": "samples"
+ }
+ ]
+ },
"documents": {
"data": [
{
- "id": "27",
+ "id": "98",
"type": "documents"
}
]
@@ -80,7 +88,7 @@
"creators": {
"data": [
{
- "id": "283",
+ "id": "894",
"type": "people"
}
]
diff --git a/public/api/examples/assayPostResponse.json b/public/api/examples/assayPostResponse.json
index e52bd6c88b..a65046b0e2 100644
--- a/public/api/examples/assayPostResponse.json
+++ b/public/api/examples/assayPostResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "38",
+ "id": "96",
"type": "assays",
"attributes": {
"policy": {
@@ -8,7 +8,7 @@
"permissions": [
{
"resource": {
- "id": "293",
+ "id": "1053",
"type": "projects"
},
"access": "manage"
@@ -43,10 +43,10 @@
],
"creators": [
{
- "profile": "/people/283",
+ "profile": "/people/894",
"family_name": "Last",
- "given_name": "Person232",
- "affiliation": "An Institution: 285",
+ "given_name": "Person711",
+ "affiliation": "An Institution: 921",
"orcid": null
}
]
@@ -55,7 +55,7 @@
"creators": {
"data": [
{
- "id": "283",
+ "id": "894",
"type": "people"
}
]
@@ -63,7 +63,7 @@
"submitter": {
"data": [
{
- "id": "283",
+ "id": "894",
"type": "people"
}
]
@@ -71,7 +71,7 @@
"organisms": {
"data": [
{
- "id": "8",
+ "id": "59",
"type": "organisms"
}
]
@@ -84,7 +84,7 @@
"people": {
"data": [
{
- "id": "283",
+ "id": "894",
"type": "people"
}
]
@@ -92,31 +92,39 @@
"projects": {
"data": [
{
- "id": "293",
+ "id": "1053",
"type": "projects"
}
]
},
"investigation": {
"data": {
- "id": "42",
+ "id": "133",
"type": "investigations"
}
},
"study": {
"data": {
- "id": "40",
+ "id": "124",
"type": "studies"
}
},
"data_files": {
"data": [
{
- "id": "13",
+ "id": "53",
"type": "data_files"
}
]
},
+ "samples": {
+ "data": [
+ {
+ "id": "33",
+ "type": "samples"
+ }
+ ]
+ },
"models": {
"data": [
@@ -125,7 +133,7 @@
"sops": {
"data": [
{
- "id": "17",
+ "id": "75",
"type": "sops"
}
]
@@ -133,7 +141,7 @@
"publications": {
"data": [
{
- "id": "19",
+ "id": "41",
"type": "publications"
}
]
@@ -146,21 +154,21 @@
"documents": {
"data": [
{
- "id": "27",
+ "id": "98",
"type": "documents"
}
]
}
},
"links": {
- "self": "/assays/38"
+ "self": "/assays/96"
},
"meta": {
- "created": "2022-06-07T14:13:05.000Z",
- "modified": "2022-06-07T14:13:05.000Z",
+ "created": "2024-06-20T12:31:26.000Z",
+ "modified": "2024-06-20T12:31:26.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "df811940-c899-013a-0f7e-0a81884ed284"
+ "uuid": "ef4bb210-112e-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/assayResponse.json b/public/api/examples/assayResponse.json
index e9d4c60663..3630ca5fd6 100644
--- a/public/api/examples/assayResponse.json
+++ b/public/api/examples/assayResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "51",
+ "id": "111",
"type": "assays",
"attributes": {
"policy": {
@@ -11,7 +11,7 @@
},
"discussion_links": [
{
- "id": "20",
+ "id": "45",
"label": "Slack",
"url": "http://www.slack.com/"
}
@@ -41,7 +41,7 @@
],
"creators": [
{
- "profile": "/people/326",
+ "profile": "/people/949",
"family_name": "One",
"given_name": "Some",
"affiliation": "University of Somewhere",
@@ -53,7 +53,7 @@
"creators": {
"data": [
{
- "id": "326",
+ "id": "949",
"type": "people"
}
]
@@ -61,7 +61,7 @@
"submitter": {
"data": [
{
- "id": "315",
+ "id": "935",
"type": "people"
}
]
@@ -69,7 +69,7 @@
"organisms": {
"data": [
{
- "id": "12",
+ "id": "63",
"type": "organisms"
}
]
@@ -82,11 +82,11 @@
"people": {
"data": [
{
- "id": "315",
+ "id": "935",
"type": "people"
},
{
- "id": "326",
+ "id": "949",
"type": "people"
}
]
@@ -94,35 +94,43 @@
"projects": {
"data": [
{
- "id": "329",
+ "id": "1098",
"type": "projects"
}
]
},
"investigation": {
"data": {
- "id": "57",
+ "id": "150",
"type": "investigations"
}
},
"study": {
"data": {
- "id": "55",
+ "id": "141",
"type": "studies"
}
},
"data_files": {
"data": [
{
- "id": "17",
+ "id": "57",
"type": "data_files"
}
]
},
+ "samples": {
+ "data": [
+ {
+ "id": "37",
+ "type": "samples"
+ }
+ ]
+ },
"models": {
"data": [
{
- "id": "41",
+ "id": "45",
"type": "models"
}
]
@@ -130,7 +138,7 @@
"sops": {
"data": [
{
- "id": "21",
+ "id": "79",
"type": "sops"
}
]
@@ -138,7 +146,7 @@
"publications": {
"data": [
{
- "id": "23",
+ "id": "45",
"type": "publications"
}
]
@@ -151,21 +159,21 @@
"documents": {
"data": [
{
- "id": "31",
+ "id": "102",
"type": "documents"
}
]
}
},
"links": {
- "self": "/assays/51"
+ "self": "/assays/111"
},
"meta": {
- "created": "2022-06-07T14:13:12.000Z",
- "modified": "2022-06-07T14:13:12.000Z",
+ "created": "2024-06-20T12:31:33.000Z",
+ "modified": "2024-06-20T12:31:33.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "e37d2a60-c899-013a-0f7e-0a81884ed284"
+ "uuid": "f3ebed40-112e-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/collectionItemPatch.json b/public/api/examples/collectionItemPatch.json
index bef43c7614..845fa6a37d 100644
--- a/public/api/examples/collectionItemPatch.json
+++ b/public/api/examples/collectionItemPatch.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "20",
+ "id": "33",
"type": "collection_items",
"attributes": {
"comment": "A fine addition to the collection indeed!!!",
@@ -9,7 +9,7 @@
"relationships": {
"asset": {
"data": {
- "id": "53",
+ "id": "50",
"type": "sops"
}
}
diff --git a/public/api/examples/collectionItemPatchResponse.json b/public/api/examples/collectionItemPatchResponse.json
index 8c7dd92180..9b8d221c0f 100644
--- a/public/api/examples/collectionItemPatchResponse.json
+++ b/public/api/examples/collectionItemPatchResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "20",
+ "id": "33",
"type": "collection_items",
"attributes": {
"comment": "A fine addition to the collection indeed!!!",
@@ -9,13 +9,13 @@
"relationships": {
"collection": {
"data": {
- "id": "15",
+ "id": "41",
"type": "collections"
}
},
"asset": {
"data": {
- "id": "53",
+ "id": "50",
"type": "sops"
},
"meta": {
@@ -24,11 +24,11 @@
}
},
"links": {
- "self": "/collections/15/items/20"
+ "self": "/collections/41/items/33"
},
"meta": {
- "created": "2022-06-07T14:14:29.000Z",
- "modified": "2022-06-07T14:14:29.000Z",
+ "created": "2024-06-20T12:30:50.000Z",
+ "modified": "2024-06-20T12:30:50.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000"
}
diff --git a/public/api/examples/collectionItemPost.json b/public/api/examples/collectionItemPost.json
index a129761c6c..83c02a7644 100644
--- a/public/api/examples/collectionItemPost.json
+++ b/public/api/examples/collectionItemPost.json
@@ -8,7 +8,7 @@
"relationships": {
"asset": {
"data": {
- "id": "50",
+ "id": "47",
"type": "sops"
}
}
diff --git a/public/api/examples/collectionItemPostResponse.json b/public/api/examples/collectionItemPostResponse.json
index 1bb374a938..37e89fbe48 100644
--- a/public/api/examples/collectionItemPostResponse.json
+++ b/public/api/examples/collectionItemPostResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "14",
+ "id": "27",
"type": "collection_items",
"attributes": {
"comment": "A fine addition to the collection indeed",
@@ -9,13 +9,13 @@
"relationships": {
"collection": {
"data": {
- "id": "9",
+ "id": "35",
"type": "collections"
}
},
"asset": {
"data": {
- "id": "50",
+ "id": "47",
"type": "sops"
},
"meta": {
@@ -24,11 +24,11 @@
}
},
"links": {
- "self": "/collections/9/items/14"
+ "self": "/collections/35/items/27"
},
"meta": {
- "created": "2022-06-07T14:14:27.000Z",
- "modified": "2022-06-07T14:14:27.000Z",
+ "created": "2024-06-20T12:30:48.000Z",
+ "modified": "2024-06-20T12:30:48.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000"
}
diff --git a/public/api/examples/collectionItemResponse.json b/public/api/examples/collectionItemResponse.json
index b1b2b74a5b..b3e80b4ea4 100644
--- a/public/api/examples/collectionItemResponse.json
+++ b/public/api/examples/collectionItemResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "19",
+ "id": "32",
"type": "collection_items",
"attributes": {
"comment": "A document",
@@ -9,13 +9,13 @@
"relationships": {
"collection": {
"data": {
- "id": "14",
+ "id": "40",
"type": "collections"
}
},
"asset": {
"data": {
- "id": "65",
+ "id": "71",
"type": "documents"
},
"meta": {
@@ -24,11 +24,11 @@
}
},
"links": {
- "self": "/collections/14/items/19"
+ "self": "/collections/40/items/32"
},
"meta": {
- "created": "2022-06-07T14:14:29.000Z",
- "modified": "2022-06-07T14:14:29.000Z",
+ "created": "2024-06-20T12:30:49.000Z",
+ "modified": "2024-06-20T12:30:49.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000"
}
diff --git a/public/api/examples/collectionItemsResponse.json b/public/api/examples/collectionItemsResponse.json
index 1102918a63..c17c177333 100644
--- a/public/api/examples/collectionItemsResponse.json
+++ b/public/api/examples/collectionItemsResponse.json
@@ -6,7 +6,7 @@
"version": "1.0"
},
"links": {
- "self": "/collections/10/items"
+ "self": "/collections/36/items"
},
"meta": {
"base_url": "http://localhost:3000",
diff --git a/public/api/examples/collectionPatch.json b/public/api/examples/collectionPatch.json
index a2fc8b0a26..d1d57b7b5d 100644
--- a/public/api/examples/collectionPatch.json
+++ b/public/api/examples/collectionPatch.json
@@ -1,7 +1,7 @@
{
"data": {
"type": "collections",
- "id": "8",
+ "id": "99",
"attributes": {
"title": "A Maximally Patched Collection",
"description": "A collection of very interesting things",
@@ -17,7 +17,7 @@
"permissions": [
{
"resource": {
- "id": "36",
+ "id": "1022251137",
"type": "projects"
},
"access": "edit"
@@ -29,7 +29,7 @@
"creators": {
"data": [
{
- "id": "35",
+ "id": "1039987079",
"type": "people"
}
]
@@ -37,7 +37,7 @@
"projects": {
"data": [
{
- "id": "36",
+ "id": "1022251137",
"type": "projects"
}
]
diff --git a/public/api/examples/collectionPatchResponse.json b/public/api/examples/collectionPatchResponse.json
index 6fb7cf131d..dc32c5fdb5 100644
--- a/public/api/examples/collectionPatchResponse.json
+++ b/public/api/examples/collectionPatchResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "8",
+ "id": "99",
"type": "collections",
"attributes": {
"policy": {
@@ -8,7 +8,7 @@
"permissions": [
{
"resource": {
- "id": "36",
+ "id": "1022251137",
"type": "projects"
},
"access": "edit"
@@ -26,14 +26,14 @@
"tag2",
"tag3"
],
- "created_at": "2022-06-07T14:12:25.000Z",
- "updated_at": "2022-06-07T14:12:25.000Z",
+ "created_at": "2024-06-20T12:35:48.000Z",
+ "updated_at": "2024-06-20T12:35:48.000Z",
"creators": [
{
- "profile": "/people/35",
+ "profile": "/people/1039987079",
"family_name": "Last",
- "given_name": "Person29",
- "affiliation": "An Institution: 35",
+ "given_name": "Person2213",
+ "affiliation": "An Institution: 2720",
"orcid": null
}
],
@@ -43,7 +43,7 @@
"creators": {
"data": [
{
- "id": "35",
+ "id": "1039987079",
"type": "people"
}
]
@@ -51,7 +51,7 @@
"submitter": {
"data": [
{
- "id": "34",
+ "id": "1039987078",
"type": "people"
}
]
@@ -59,11 +59,11 @@
"people": {
"data": [
{
- "id": "34",
+ "id": "1039987078",
"type": "people"
},
{
- "id": "35",
+ "id": "1039987079",
"type": "people"
}
]
@@ -71,7 +71,7 @@
"projects": {
"data": [
{
- "id": "36",
+ "id": "1022251137",
"type": "projects"
}
]
@@ -88,15 +88,15 @@
}
},
"links": {
- "self": "/collections/8",
- "items": "/collections/8/items"
+ "self": "/collections/99",
+ "items": "/collections/99/items"
},
"meta": {
- "created": "2022-06-07T14:12:25.000Z",
- "modified": "2022-06-07T14:12:25.000Z",
+ "created": "2024-06-20T12:35:48.000Z",
+ "modified": "2024-06-20T12:35:48.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "c79a7a60-c899-013a-0f7e-0a81884ed284"
+ "uuid": "8b7d87d0-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/collectionPost.json b/public/api/examples/collectionPost.json
index 11b1bf5ed8..ed55d2b4c2 100644
--- a/public/api/examples/collectionPost.json
+++ b/public/api/examples/collectionPost.json
@@ -15,7 +15,7 @@
"permissions": [
{
"resource": {
- "id": "2",
+ "id": "1022251103",
"type": "projects"
},
"access": "edit"
@@ -27,7 +27,7 @@
"creators": {
"data": [
{
- "id": "3",
+ "id": "1039987047",
"type": "people"
}
]
@@ -35,7 +35,7 @@
"projects": {
"data": [
{
- "id": "2",
+ "id": "1022251103",
"type": "projects"
}
]
diff --git a/public/api/examples/collectionPostResponse.json b/public/api/examples/collectionPostResponse.json
index 0deeccff3a..f73ba93a54 100644
--- a/public/api/examples/collectionPostResponse.json
+++ b/public/api/examples/collectionPostResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "2",
+ "id": "93",
"type": "collections",
"attributes": {
"policy": {
@@ -8,7 +8,7 @@
"permissions": [
{
"resource": {
- "id": "2",
+ "id": "1022251103",
"type": "projects"
},
"access": "edit"
@@ -25,14 +25,14 @@
"tag1",
"tag2"
],
- "created_at": "2022-06-07T14:12:20.000Z",
- "updated_at": "2022-06-07T14:12:20.000Z",
+ "created_at": "2024-06-20T12:35:44.000Z",
+ "updated_at": "2024-06-20T12:35:43.000Z",
"creators": [
{
- "profile": "/people/3",
+ "profile": "/people/1039987047",
"family_name": "Last",
- "given_name": "Person2",
- "affiliation": "An Institution: 3",
+ "given_name": "Person2186",
+ "affiliation": "An Institution: 2688",
"orcid": null
}
],
@@ -42,7 +42,7 @@
"creators": {
"data": [
{
- "id": "3",
+ "id": "1039987047",
"type": "people"
}
]
@@ -50,7 +50,7 @@
"submitter": {
"data": [
{
- "id": "2",
+ "id": "1039987046",
"type": "people"
}
]
@@ -58,11 +58,11 @@
"people": {
"data": [
{
- "id": "2",
+ "id": "1039987046",
"type": "people"
},
{
- "id": "3",
+ "id": "1039987047",
"type": "people"
}
]
@@ -70,7 +70,7 @@
"projects": {
"data": [
{
- "id": "2",
+ "id": "1022251103",
"type": "projects"
}
]
@@ -87,15 +87,15 @@
}
},
"links": {
- "self": "/collections/2",
- "items": "/collections/2/items"
+ "self": "/collections/93",
+ "items": "/collections/93/items"
},
"meta": {
- "created": "2022-06-07T14:12:20.000Z",
- "modified": "2022-06-07T14:12:20.000Z",
+ "created": "2024-06-20T12:35:44.000Z",
+ "modified": "2024-06-20T12:35:43.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "c4b5aef0-c899-013a-0f7e-0a81884ed284"
+ "uuid": "89110560-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/collectionResponse.json b/public/api/examples/collectionResponse.json
index bbe1695446..e5dcfabfdc 100644
--- a/public/api/examples/collectionResponse.json
+++ b/public/api/examples/collectionResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "7",
+ "id": "98",
"type": "collections",
"attributes": {
"policy": {
@@ -11,7 +11,7 @@
},
"discussion_links": [
{
- "id": "2",
+ "id": "175",
"label": "Slack",
"url": "http://www.slack.com/"
}
@@ -26,11 +26,11 @@
"Collection-tag4",
"Collection-tag5"
],
- "created_at": "2022-06-07T14:12:23.000Z",
- "updated_at": "2022-06-07T14:12:24.000Z",
+ "created_at": "2024-06-20T12:35:46.000Z",
+ "updated_at": "2024-06-20T12:35:47.000Z",
"creators": [
{
- "profile": "/people/25",
+ "profile": "/people/1039987069",
"family_name": "One",
"given_name": "Some",
"affiliation": "University of Somewhere",
@@ -43,7 +43,7 @@
"creators": {
"data": [
{
- "id": "25",
+ "id": "1039987069",
"type": "people"
}
]
@@ -51,7 +51,7 @@
"submitter": {
"data": [
{
- "id": "26",
+ "id": "1039987070",
"type": "people"
}
]
@@ -59,11 +59,11 @@
"people": {
"data": [
{
- "id": "25",
+ "id": "1039987069",
"type": "people"
},
{
- "id": "26",
+ "id": "1039987070",
"type": "people"
}
]
@@ -71,7 +71,7 @@
"projects": {
"data": [
{
- "id": "28",
+ "id": "1022251129",
"type": "projects"
}
]
@@ -79,7 +79,7 @@
"publications": {
"data": [
{
- "id": "2",
+ "id": "195",
"type": "publications"
}
]
@@ -87,47 +87,47 @@
"items": {
"data": [
{
- "id": "7",
+ "id": "52",
"type": "collection_items"
},
{
- "id": "8",
+ "id": "53",
"type": "collection_items"
},
{
- "id": "9",
+ "id": "54",
"type": "collection_items"
},
{
- "id": "10",
+ "id": "55",
"type": "collection_items"
},
{
- "id": "11",
+ "id": "56",
"type": "collection_items"
},
{
- "id": "12",
+ "id": "57",
"type": "collection_items"
}
]
}
},
"links": {
- "self": "/collections/7",
- "items": "/collections/7/items"
+ "self": "/collections/98",
+ "items": "/collections/98/items"
},
"meta": {
- "created": "2022-06-07T14:12:23.000Z",
- "modified": "2022-06-07T14:12:24.000Z",
+ "created": "2024-06-20T12:35:46.000Z",
+ "modified": "2024-06-20T12:35:47.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "c6ba22b0-c899-013a-0f7e-0a81884ed284"
+ "uuid": "8ab16a00-112f-013d-1f9d-0a81884ed284"
}
},
"included": [
{
- "id": "7",
+ "id": "52",
"type": "collection_items",
"attributes": {
"comment": "Readme!",
@@ -136,13 +136,13 @@
"relationships": {
"collection": {
"data": {
- "id": "7",
+ "id": "98",
"type": "collections"
}
},
"asset": {
"data": {
- "id": "9",
+ "id": "222",
"type": "documents"
},
"meta": {
@@ -151,17 +151,17 @@
}
},
"links": {
- "self": "/collections/7/items/7"
+ "self": "/collections/98/items/52"
},
"meta": {
- "created": "2022-06-07T14:12:24.000Z",
- "modified": "2022-06-07T14:12:24.000Z",
+ "created": "2024-06-20T12:35:46.000Z",
+ "modified": "2024-06-20T12:35:46.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000"
}
},
{
- "id": "8",
+ "id": "53",
"type": "collection_items",
"attributes": {
"comment": "Secret info",
@@ -170,23 +170,23 @@
"relationships": {
"collection": {
"data": {
- "id": "7",
+ "id": "98",
"type": "collections"
}
}
},
"links": {
- "self": "/collections/7/items/8"
+ "self": "/collections/98/items/53"
},
"meta": {
- "created": "2022-06-07T14:12:24.000Z",
- "modified": "2022-06-07T14:12:24.000Z",
+ "created": "2024-06-20T12:35:47.000Z",
+ "modified": "2024-06-20T12:35:47.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000"
}
},
{
- "id": "9",
+ "id": "54",
"type": "collection_items",
"attributes": {
"comment": "The protocol",
@@ -195,13 +195,13 @@
"relationships": {
"collection": {
"data": {
- "id": "7",
+ "id": "98",
"type": "collections"
}
},
"asset": {
"data": {
- "id": "2",
+ "id": "1055250447",
"type": "sops"
},
"meta": {
@@ -210,17 +210,17 @@
}
},
"links": {
- "self": "/collections/7/items/9"
+ "self": "/collections/98/items/54"
},
"meta": {
- "created": "2022-06-07T14:12:24.000Z",
- "modified": "2022-06-07T14:12:24.000Z",
+ "created": "2024-06-20T12:35:47.000Z",
+ "modified": "2024-06-20T12:35:47.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000"
}
},
{
- "id": "10",
+ "id": "55",
"type": "collection_items",
"attributes": {
"comment": "Data 1",
@@ -229,13 +229,13 @@
"relationships": {
"collection": {
"data": {
- "id": "7",
+ "id": "98",
"type": "collections"
}
},
"asset": {
"data": {
- "id": "4",
+ "id": "883654321",
"type": "data_files"
},
"meta": {
@@ -244,17 +244,17 @@
}
},
"links": {
- "self": "/collections/7/items/10"
+ "self": "/collections/98/items/55"
},
"meta": {
- "created": "2022-06-07T14:12:24.000Z",
- "modified": "2022-06-07T14:12:24.000Z",
+ "created": "2024-06-20T12:35:47.000Z",
+ "modified": "2024-06-20T12:35:47.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000"
}
},
{
- "id": "11",
+ "id": "56",
"type": "collection_items",
"attributes": {
"comment": "Data 2",
@@ -263,13 +263,13 @@
"relationships": {
"collection": {
"data": {
- "id": "7",
+ "id": "98",
"type": "collections"
}
},
"asset": {
"data": {
- "id": "5",
+ "id": "883654322",
"type": "data_files"
},
"meta": {
@@ -278,17 +278,17 @@
}
},
"links": {
- "self": "/collections/7/items/11"
+ "self": "/collections/98/items/56"
},
"meta": {
- "created": "2022-06-07T14:12:24.000Z",
- "modified": "2022-06-07T14:12:24.000Z",
+ "created": "2024-06-20T12:35:47.000Z",
+ "modified": "2024-06-20T12:35:47.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000"
}
},
{
- "id": "12",
+ "id": "57",
"type": "collection_items",
"attributes": {
"comment": "Bad data",
@@ -297,17 +297,17 @@
"relationships": {
"collection": {
"data": {
- "id": "7",
+ "id": "98",
"type": "collections"
}
}
},
"links": {
- "self": "/collections/7/items/12"
+ "self": "/collections/98/items/57"
},
"meta": {
- "created": "2022-06-07T14:12:24.000Z",
- "modified": "2022-06-07T14:12:24.000Z",
+ "created": "2024-06-20T12:35:47.000Z",
+ "modified": "2024-06-20T12:35:47.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000"
}
diff --git a/public/api/examples/collectionsResponse.json b/public/api/examples/collectionsResponse.json
index fe3130f636..4a8a9ec210 100644
--- a/public/api/examples/collectionsResponse.json
+++ b/public/api/examples/collectionsResponse.json
@@ -1,23 +1,23 @@
{
"data": [
{
- "id": "5",
+ "id": "96",
"type": "collections",
"attributes": {
"title": "A Maximal Collection"
},
"links": {
- "self": "/collections/5"
+ "self": "/collections/96"
}
},
{
- "id": "4",
+ "id": "95",
"type": "collections",
"attributes": {
"title": "A Minimal Collection"
},
"links": {
- "self": "/collections/4"
+ "self": "/collections/95"
}
}
],
diff --git a/public/api/examples/contentBlobResponse.json b/public/api/examples/contentBlobResponse.json
index 4a2a2d5c33..12930d2eec 100644
--- a/public/api/examples/contentBlobResponse.json
+++ b/public/api/examples/contentBlobResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "316",
+ "id": "1050453050",
"type": "content_blobs",
"attributes": {
"original_filename": "min file",
@@ -13,21 +13,21 @@
"relationships": {
"asset": {
"data": {
- "id": "45",
+ "id": "1055250487",
"type": "sops"
}
}
},
"links": {
- "self": "/sops/45/content_blobs/316",
- "download": "/sops/45/content_blobs/316/download"
+ "self": "/sops/1055250487/content_blobs/1050453050",
+ "download": "/sops/1055250487/content_blobs/1050453050/download"
},
"meta": {
- "created": "2022-06-07T14:14:09.000Z",
- "modified": "2022-06-07T14:14:09.000Z",
+ "created": "2024-06-20T12:38:35.000Z",
+ "modified": "2024-06-20T12:38:35.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "05bf37b0-c89a-013a-0f7e-0a81884ed284"
+ "uuid": "ef445e70-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/dataFilePatch.json b/public/api/examples/dataFilePatch.json
index c90f8242ec..23f645ef1f 100644
--- a/public/api/examples/dataFilePatch.json
+++ b/public/api/examples/dataFilePatch.json
@@ -1,7 +1,7 @@
{
"data": {
"type": "data_files",
- "id": "1",
+ "id": "883654311",
"attributes": {
"title": "A Maximally Patched Data File",
"description": "Study of the Human Genome",
@@ -29,7 +29,7 @@
"permissions": [
{
"resource": {
- "id": "2",
+ "id": "1022251011",
"type": "projects"
},
"access": "edit"
@@ -41,7 +41,7 @@
"creators": {
"data": [
{
- "id": "3",
+ "id": "1039986955",
"type": "people"
}
]
@@ -49,7 +49,7 @@
"projects": {
"data": [
{
- "id": "2",
+ "id": "1022251011",
"type": "projects"
}
]
@@ -57,7 +57,7 @@
"assays": {
"data": [
{
- "id": "1",
+ "id": "1035386688",
"type": "assays"
}
]
@@ -65,7 +65,7 @@
"publications": {
"data": [
{
- "id": "1",
+ "id": "191",
"type": "publications"
}
]
@@ -73,7 +73,7 @@
"events": {
"data": [
{
- "id": "1",
+ "id": "1025618717",
"type": "events"
}
]
@@ -81,7 +81,7 @@
"workflows": {
"data": [
{
- "id": "1",
+ "id": "133",
"type": "workflows"
}
]
diff --git a/public/api/examples/dataFilePatchResponse.json b/public/api/examples/dataFilePatchResponse.json
index 8b92aa5350..431a0b809f 100644
--- a/public/api/examples/dataFilePatchResponse.json
+++ b/public/api/examples/dataFilePatchResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "1",
+ "id": "883654311",
"type": "data_files",
"attributes": {
"policy": {
@@ -8,7 +8,7 @@
"permissions": [
{
"resource": {
- "id": "2",
+ "id": "1022251011",
"type": "projects"
},
"access": "edit"
@@ -31,14 +31,14 @@
{
"version": 1,
"revision_comments": null,
- "url": "http://localhost:3000/data_files/1?version=1",
+ "url": "http://localhost:3000/data_files/883654311?version=1",
"doi": null
}
],
"version": 1,
"revision_comments": null,
- "created_at": "2023-03-07T10:50:32.823Z",
- "updated_at": "2023-03-07T10:50:33.024Z",
+ "created_at": "2024-06-20T12:35:31.000Z",
+ "updated_at": "2024-06-20T12:35:31.000Z",
"doi": null,
"content_blobs": [
{
@@ -47,16 +47,16 @@
"md5sum": "565ae8a7a743c3bfd9f15c69647f5b8b",
"sha1sum": "b9d2148740050b7f37975edd0fb97faa508ff767",
"content_type": "application/pdf",
- "link": "http://localhost:3000/data_files/1/content_blobs/1",
+ "link": "http://localhost:3000/data_files/883654311/content_blobs/1050452689",
"size": 8827
}
],
"creators": [
{
- "profile": "/people/3",
+ "profile": "/people/1039986955",
"family_name": "Last",
- "given_name": "Person185",
- "affiliation": "An Institution: 218",
+ "given_name": "Person2117",
+ "affiliation": "An Institution: 2596",
"orcid": null
}
],
@@ -78,7 +78,7 @@
"creators": {
"data": [
{
- "id": "3",
+ "id": "1039986955",
"type": "people"
}
]
@@ -86,7 +86,7 @@
"submitter": {
"data": [
{
- "id": "2",
+ "id": "1039986954",
"type": "people"
}
]
@@ -94,11 +94,11 @@
"people": {
"data": [
{
- "id": "2",
+ "id": "1039986954",
"type": "people"
},
{
- "id": "3",
+ "id": "1039986955",
"type": "people"
}
]
@@ -106,7 +106,7 @@
"projects": {
"data": [
{
- "id": "2",
+ "id": "1022251011",
"type": "projects"
}
]
@@ -114,7 +114,7 @@
"investigations": {
"data": [
{
- "id": "1",
+ "id": "973654842",
"type": "investigations"
}
]
@@ -122,7 +122,7 @@
"studies": {
"data": [
{
- "id": "1",
+ "id": "1060384900",
"type": "studies"
}
]
@@ -130,7 +130,7 @@
"assays": {
"data": [
{
- "id": "1",
+ "id": "1035386688",
"type": "assays"
}
]
@@ -138,7 +138,7 @@
"publications": {
"data": [
{
- "id": "1",
+ "id": "191",
"type": "publications"
}
]
@@ -146,7 +146,7 @@
"events": {
"data": [
{
- "id": "1",
+ "id": "1025618717",
"type": "events"
}
]
@@ -154,7 +154,7 @@
"workflows": {
"data": [
{
- "id": "1",
+ "id": "133",
"type": "workflows"
}
]
@@ -167,14 +167,14 @@
}
},
"links": {
- "self": "/data_files/1?version=1"
+ "self": "/data_files/883654311?version=1"
},
"meta": {
- "created": "2023-03-07T10:50:32.812Z",
- "modified": "2023-03-07T10:50:33.002Z",
+ "created": "2024-06-20T12:35:31.000Z",
+ "modified": "2024-06-20T12:35:31.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "cebc2810-9f03-013b-15cf-0a81884ed284"
+ "uuid": "819648d0-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/dataFilePost.json b/public/api/examples/dataFilePost.json
index 5be85c6e5c..1540713c63 100644
--- a/public/api/examples/dataFilePost.json
+++ b/public/api/examples/dataFilePost.json
@@ -33,7 +33,7 @@
"permissions": [
{
"resource": {
- "id": "2",
+ "id": "1022250976",
"type": "projects"
},
"access": "edit"
@@ -45,7 +45,7 @@
"creators": {
"data": [
{
- "id": "3",
+ "id": "1039986916",
"type": "people"
}
]
@@ -53,7 +53,7 @@
"projects": {
"data": [
{
- "id": "2",
+ "id": "1022250976",
"type": "projects"
}
]
@@ -61,7 +61,7 @@
"assays": {
"data": [
{
- "id": "1",
+ "id": "1035386683",
"type": "assays"
}
]
@@ -69,7 +69,7 @@
"publications": {
"data": [
{
- "id": "1",
+ "id": "186",
"type": "publications"
}
]
@@ -77,7 +77,7 @@
"events": {
"data": [
{
- "id": "1",
+ "id": "1025618712",
"type": "events"
}
]
@@ -85,7 +85,7 @@
"workflows": {
"data": [
{
- "id": "1",
+ "id": "128",
"type": "workflows"
}
]
diff --git a/public/api/examples/dataFilePostResponse.json b/public/api/examples/dataFilePostResponse.json
index 94f2b99904..885ac77908 100644
--- a/public/api/examples/dataFilePostResponse.json
+++ b/public/api/examples/dataFilePostResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "2",
+ "id": "883654305",
"type": "data_files",
"attributes": {
"policy": {
@@ -8,7 +8,7 @@
"permissions": [
{
"resource": {
- "id": "2",
+ "id": "1022250976",
"type": "projects"
},
"access": "edit"
@@ -30,14 +30,14 @@
{
"version": 1,
"revision_comments": null,
- "url": "http://localhost:3000/data_files/2?version=1",
+ "url": "http://localhost:3000/data_files/883654305?version=1",
"doi": null
}
],
"version": 1,
"revision_comments": null,
- "created_at": "2023-03-07T10:50:29.057Z",
- "updated_at": "2023-03-07T10:50:29.057Z",
+ "created_at": "2024-06-20T12:35:26.000Z",
+ "updated_at": "2024-06-20T12:35:26.000Z",
"doi": null,
"content_blobs": [
{
@@ -46,16 +46,16 @@
"md5sum": null,
"sha1sum": null,
"content_type": "application/pdf",
- "link": "http://localhost:3000/data_files/2/content_blobs/3",
+ "link": "http://localhost:3000/data_files/883654305/content_blobs/1050452679",
"size": null
}
],
"creators": [
{
- "profile": "/people/3",
+ "profile": "/people/1039986916",
"family_name": "Last",
- "given_name": "Person151",
- "affiliation": "An Institution: 179",
+ "given_name": "Person2083",
+ "affiliation": "An Institution: 2557",
"orcid": null
}
],
@@ -77,7 +77,7 @@
"creators": {
"data": [
{
- "id": "3",
+ "id": "1039986916",
"type": "people"
}
]
@@ -85,7 +85,7 @@
"submitter": {
"data": [
{
- "id": "2",
+ "id": "1039986915",
"type": "people"
}
]
@@ -93,11 +93,11 @@
"people": {
"data": [
{
- "id": "2",
+ "id": "1039986915",
"type": "people"
},
{
- "id": "3",
+ "id": "1039986916",
"type": "people"
}
]
@@ -105,7 +105,7 @@
"projects": {
"data": [
{
- "id": "2",
+ "id": "1022250976",
"type": "projects"
}
]
@@ -113,7 +113,7 @@
"investigations": {
"data": [
{
- "id": "1",
+ "id": "973654837",
"type": "investigations"
}
]
@@ -121,7 +121,7 @@
"studies": {
"data": [
{
- "id": "1",
+ "id": "1060384895",
"type": "studies"
}
]
@@ -129,7 +129,7 @@
"assays": {
"data": [
{
- "id": "1",
+ "id": "1035386683",
"type": "assays"
}
]
@@ -137,7 +137,7 @@
"publications": {
"data": [
{
- "id": "1",
+ "id": "186",
"type": "publications"
}
]
@@ -145,7 +145,7 @@
"events": {
"data": [
{
- "id": "1",
+ "id": "1025618712",
"type": "events"
}
]
@@ -153,7 +153,7 @@
"workflows": {
"data": [
{
- "id": "1",
+ "id": "128",
"type": "workflows"
}
]
@@ -166,14 +166,14 @@
}
},
"links": {
- "self": "/data_files/2?version=1"
+ "self": "/data_files/883654305?version=1"
},
"meta": {
- "created": "2023-03-07T10:50:29.027Z",
- "modified": "2023-03-07T10:50:29.057Z",
+ "created": "2024-06-20T12:35:26.000Z",
+ "modified": "2024-06-20T12:35:26.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "cc778f60-9f03-013b-15cf-0a81884ed284"
+ "uuid": "7ed41350-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/dataFileResponse.json b/public/api/examples/dataFileResponse.json
index 8531b83576..6e9033dddf 100644
--- a/public/api/examples/dataFileResponse.json
+++ b/public/api/examples/dataFileResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "2",
+ "id": "883654310",
"type": "data_files",
"attributes": {
"policy": {
@@ -11,7 +11,7 @@
},
"discussion_links": [
{
- "id": "1",
+ "id": "171",
"label": "Slack",
"url": "http://www.slack.com/"
}
@@ -31,14 +31,14 @@
{
"version": 1,
"revision_comments": null,
- "url": "http://localhost:3000/data_files/2?version=1",
+ "url": "http://localhost:3000/data_files/883654310?version=1",
"doi": null
}
],
"version": 1,
"revision_comments": null,
- "created_at": "2023-03-07T10:50:32.170Z",
- "updated_at": "2023-03-07T10:50:32.170Z",
+ "created_at": "2024-06-20T12:35:30.000Z",
+ "updated_at": "2024-06-20T12:35:30.000Z",
"doi": null,
"content_blobs": [
{
@@ -47,13 +47,13 @@
"md5sum": "565ae8a7a743c3bfd9f15c69647f5b8b",
"sha1sum": "b9d2148740050b7f37975edd0fb97faa508ff767",
"content_type": "application/pdf",
- "link": "http://localhost:3000/data_files/2/content_blobs/5",
+ "link": "http://localhost:3000/data_files/883654310/content_blobs/1050452688",
"size": 8827
}
],
"creators": [
{
- "profile": "/people/15",
+ "profile": "/people/1039986951",
"family_name": "One",
"given_name": "Some",
"affiliation": "University of Somewhere",
@@ -78,7 +78,7 @@
"creators": {
"data": [
{
- "id": "15",
+ "id": "1039986951",
"type": "people"
}
]
@@ -86,7 +86,7 @@
"submitter": {
"data": [
{
- "id": "16",
+ "id": "1039986952",
"type": "people"
}
]
@@ -94,11 +94,11 @@
"people": {
"data": [
{
- "id": "15",
+ "id": "1039986951",
"type": "people"
},
{
- "id": "16",
+ "id": "1039986952",
"type": "people"
}
]
@@ -106,7 +106,7 @@
"projects": {
"data": [
{
- "id": "15",
+ "id": "1022251009",
"type": "projects"
}
]
@@ -114,7 +114,7 @@
"investigations": {
"data": [
{
- "id": "2",
+ "id": "973654841",
"type": "investigations"
}
]
@@ -122,7 +122,7 @@
"studies": {
"data": [
{
- "id": "2",
+ "id": "1060384899",
"type": "studies"
}
]
@@ -130,7 +130,7 @@
"assays": {
"data": [
{
- "id": "2",
+ "id": "1035386687",
"type": "assays"
}
]
@@ -138,7 +138,7 @@
"publications": {
"data": [
{
- "id": "2",
+ "id": "190",
"type": "publications"
}
]
@@ -146,7 +146,7 @@
"events": {
"data": [
{
- "id": "2",
+ "id": "1025618716",
"type": "events"
}
]
@@ -154,7 +154,7 @@
"workflows": {
"data": [
{
- "id": "2",
+ "id": "132",
"type": "workflows"
}
]
@@ -167,14 +167,14 @@
}
},
"links": {
- "self": "/data_files/2?version=1"
+ "self": "/data_files/883654310?version=1"
},
"meta": {
- "created": "2023-03-07T10:50:32.132Z",
- "modified": "2023-03-07T10:50:32.170Z",
+ "created": "2024-06-20T12:35:30.000Z",
+ "modified": "2024-06-20T12:35:30.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "ce53a460-9f03-013b-15cf-0a81884ed284"
+ "uuid": "811359c0-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/documentPatch.json b/public/api/examples/documentPatch.json
index 411c682591..3d79206d1d 100644
--- a/public/api/examples/documentPatch.json
+++ b/public/api/examples/documentPatch.json
@@ -1,7 +1,7 @@
{
"data": {
"type": "documents",
- "id": "642",
+ "id": "308",
"attributes": {
"title": "A Maximally Patched Document",
"description": "A report about the thing that happened",
@@ -17,7 +17,7 @@
"permissions": [
{
"resource": {
- "id": "16398",
+ "id": "1022252726",
"type": "projects"
},
"access": "edit"
@@ -25,7 +25,7 @@
]
},
"extended_attributes": {
- "extended_metadata_type_id": "3021",
+ "extended_metadata_type_id": "401",
"attribute_map": {
"role_email": "alice@email.com",
"role_phone": "0012345",
@@ -44,7 +44,7 @@
"creators": {
"data": [
{
- "id": "13852",
+ "id": "1039988618",
"type": "people"
}
]
@@ -52,7 +52,7 @@
"projects": {
"data": [
{
- "id": "16398",
+ "id": "1022252726",
"type": "projects"
}
]
@@ -60,7 +60,7 @@
"assays": {
"data": [
{
- "id": "1905",
+ "id": "1035386915",
"type": "assays"
}
]
@@ -68,7 +68,7 @@
"workflows": {
"data": [
{
- "id": "339",
+ "id": "225",
"type": "workflows"
}
]
diff --git a/public/api/examples/documentPatchResponse.json b/public/api/examples/documentPatchResponse.json
index e624d6f62b..754b264e16 100644
--- a/public/api/examples/documentPatchResponse.json
+++ b/public/api/examples/documentPatchResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "642",
+ "id": "308",
"type": "documents",
"attributes": {
"policy": {
@@ -8,7 +8,7 @@
"permissions": [
{
"resource": {
- "id": "16398",
+ "id": "1022252726",
"type": "projects"
},
"access": "edit"
@@ -19,7 +19,7 @@
],
"extended_attributes": {
- "extended_metadata_type_id": "3021",
+ "extended_metadata_type_id": "401",
"attribute_map": {
"role_email": "alice@email.com",
"role_phone": "0012345",
@@ -46,32 +46,32 @@
{
"version": 1,
"revision_comments": null,
- "url": "http://localhost:3000/documents/642?version=1",
+ "url": "http://localhost:3000/documents/308?version=1",
"doi": null
}
],
"version": 1,
"revision_comments": null,
- "created_at": "2024-03-15T16:09:58.000Z",
- "updated_at": "2024-03-15T16:09:58.000Z",
+ "created_at": "2024-06-20T12:39:26.000Z",
+ "updated_at": "2024-06-20T12:39:26.000Z",
"doi": null,
"content_blobs": [
{
- "original_filename": "file-22",
+ "original_filename": "file-332",
"url": null,
- "md5sum": "28219bc7b5e57f29a560e813a8a19f2d",
- "sha1sum": "d210301cad1b23eeecc304180c62047468a78445",
+ "md5sum": "cfd0a2fa5d67073a2046c0bfe42fb68f",
+ "sha1sum": "e40baba579e6063e7f2bec398e5657a23a421fdb",
"content_type": "application/pdf",
- "link": "http://localhost:3000/documents/642/content_blobs/2825",
- "size": 9
+ "link": "http://localhost:3000/documents/308/content_blobs/1050453213",
+ "size": 10
}
],
"creators": [
{
- "profile": "/people/13852",
+ "profile": "/people/1039988618",
"family_name": "Last",
- "given_name": "Person82",
- "affiliation": "An Institution: 108",
+ "given_name": "Person3431",
+ "affiliation": "An Institution: 4272",
"orcid": null
}
],
@@ -81,7 +81,7 @@
"creators": {
"data": [
{
- "id": "13852",
+ "id": "1039988618",
"type": "people"
}
]
@@ -89,7 +89,7 @@
"submitter": {
"data": [
{
- "id": "13851",
+ "id": "1039988617",
"type": "people"
}
]
@@ -97,11 +97,11 @@
"people": {
"data": [
{
- "id": "13851",
+ "id": "1039988617",
"type": "people"
},
{
- "id": "13852",
+ "id": "1039988618",
"type": "people"
}
]
@@ -109,7 +109,7 @@
"projects": {
"data": [
{
- "id": "16398",
+ "id": "1022252726",
"type": "projects"
}
]
@@ -117,7 +117,7 @@
"investigations": {
"data": [
{
- "id": "4748",
+ "id": "973655139",
"type": "investigations"
}
]
@@ -125,7 +125,7 @@
"studies": {
"data": [
{
- "id": "3623",
+ "id": "1060385170",
"type": "studies"
}
]
@@ -133,7 +133,7 @@
"assays": {
"data": [
{
- "id": "1905",
+ "id": "1035386915",
"type": "assays"
}
]
@@ -146,21 +146,21 @@
"workflows": {
"data": [
{
- "id": "339",
+ "id": "225",
"type": "workflows"
}
]
}
},
"links": {
- "self": "/documents/642?version=1"
+ "self": "/documents/308?version=1"
},
"meta": {
- "created": "2024-03-15T16:09:58.000Z",
- "modified": "2024-03-15T16:09:58.000Z",
+ "created": "2024-06-20T12:39:26.000Z",
+ "modified": "2024-06-20T12:39:26.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "650f9950-c514-013c-6432-7efdca78d793"
+ "uuid": "0dd88500-1130-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/documentPost.json b/public/api/examples/documentPost.json
index f7ffc6b21d..d23abf3e73 100644
--- a/public/api/examples/documentPost.json
+++ b/public/api/examples/documentPost.json
@@ -21,7 +21,7 @@
"permissions": [
{
"resource": {
- "id": "16368",
+ "id": "1022252696",
"type": "projects"
},
"access": "edit"
@@ -29,7 +29,7 @@
]
},
"extended_attributes": {
- "extended_metadata_type_id": "3006",
+ "extended_metadata_type_id": "386",
"attribute_map": {
"role_email": "alice@email.com",
"role_phone": "0012345",
@@ -48,7 +48,7 @@
"creators": {
"data": [
{
- "id": "13824",
+ "id": "1039988590",
"type": "people"
}
]
@@ -56,7 +56,7 @@
"projects": {
"data": [
{
- "id": "16368",
+ "id": "1022252696",
"type": "projects"
}
]
@@ -64,7 +64,7 @@
"assays": {
"data": [
{
- "id": "1900",
+ "id": "1035386910",
"type": "assays"
}
]
@@ -72,7 +72,7 @@
"workflows": {
"data": [
{
- "id": "334",
+ "id": "220",
"type": "workflows"
}
]
diff --git a/public/api/examples/documentPostResponse.json b/public/api/examples/documentPostResponse.json
index 6206867a8f..b29a029c4c 100644
--- a/public/api/examples/documentPostResponse.json
+++ b/public/api/examples/documentPostResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "636",
+ "id": "302",
"type": "documents",
"attributes": {
"policy": {
@@ -8,7 +8,7 @@
"permissions": [
{
"resource": {
- "id": "16368",
+ "id": "1022252696",
"type": "projects"
},
"access": "edit"
@@ -19,7 +19,7 @@
],
"extended_attributes": {
- "extended_metadata_type_id": "3006",
+ "extended_metadata_type_id": "386",
"attribute_map": {
"role_email": "alice@email.com",
"role_phone": "0012345",
@@ -45,14 +45,14 @@
{
"version": 1,
"revision_comments": null,
- "url": "http://localhost:3000/documents/636?version=1",
+ "url": "http://localhost:3000/documents/302?version=1",
"doi": null
}
],
"version": 1,
"revision_comments": null,
- "created_at": "2024-03-15T16:09:56.000Z",
- "updated_at": "2024-03-15T16:09:56.000Z",
+ "created_at": "2024-06-20T12:39:23.000Z",
+ "updated_at": "2024-06-20T12:39:23.000Z",
"doi": null,
"content_blobs": [
{
@@ -61,16 +61,16 @@
"md5sum": null,
"sha1sum": null,
"content_type": "application/pdf",
- "link": "http://localhost:3000/documents/636/content_blobs/2814",
+ "link": "http://localhost:3000/documents/302/content_blobs/1050453202",
"size": null
}
],
"creators": [
{
- "profile": "/people/13824",
+ "profile": "/people/1039988590",
"family_name": "Last",
- "given_name": "Person59",
- "affiliation": "An Institution: 80",
+ "given_name": "Person3408",
+ "affiliation": "An Institution: 4244",
"orcid": null
}
],
@@ -80,7 +80,7 @@
"creators": {
"data": [
{
- "id": "13824",
+ "id": "1039988590",
"type": "people"
}
]
@@ -88,7 +88,7 @@
"submitter": {
"data": [
{
- "id": "13823",
+ "id": "1039988589",
"type": "people"
}
]
@@ -96,11 +96,11 @@
"people": {
"data": [
{
- "id": "13823",
+ "id": "1039988589",
"type": "people"
},
{
- "id": "13824",
+ "id": "1039988590",
"type": "people"
}
]
@@ -108,7 +108,7 @@
"projects": {
"data": [
{
- "id": "16368",
+ "id": "1022252696",
"type": "projects"
}
]
@@ -116,7 +116,7 @@
"investigations": {
"data": [
{
- "id": "4743",
+ "id": "973655134",
"type": "investigations"
}
]
@@ -124,7 +124,7 @@
"studies": {
"data": [
{
- "id": "3618",
+ "id": "1060385165",
"type": "studies"
}
]
@@ -132,7 +132,7 @@
"assays": {
"data": [
{
- "id": "1900",
+ "id": "1035386910",
"type": "assays"
}
]
@@ -145,21 +145,21 @@
"workflows": {
"data": [
{
- "id": "334",
+ "id": "220",
"type": "workflows"
}
]
}
},
"links": {
- "self": "/documents/636?version=1"
+ "self": "/documents/302?version=1"
},
"meta": {
- "created": "2024-03-15T16:09:56.000Z",
- "modified": "2024-03-15T16:09:56.000Z",
+ "created": "2024-06-20T12:39:23.000Z",
+ "modified": "2024-06-20T12:39:23.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "63f3bb30-c514-013c-6432-7efdca78d793"
+ "uuid": "0ba000f0-1130-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/documentResponse.json b/public/api/examples/documentResponse.json
index 52748d52c0..3d24399696 100644
--- a/public/api/examples/documentResponse.json
+++ b/public/api/examples/documentResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "641",
+ "id": "307",
"type": "documents",
"attributes": {
"policy": {
@@ -11,13 +11,13 @@
},
"discussion_links": [
{
- "id": "723",
+ "id": "244",
"label": "Slack",
"url": "http://www.slack.com/"
}
],
"extended_attributes": {
- "extended_metadata_type_id": "3018",
+ "extended_metadata_type_id": "398",
"attribute_map": {
"role_email": "alice@email.com",
"role_phone": "0012345",
@@ -46,14 +46,14 @@
{
"version": 1,
"revision_comments": null,
- "url": "http://localhost:3000/documents/641?version=1",
+ "url": "http://localhost:3000/documents/307?version=1",
"doi": null
}
],
"version": 1,
"revision_comments": null,
- "created_at": "2024-03-15T16:09:58.000Z",
- "updated_at": "2024-03-15T16:09:58.000Z",
+ "created_at": "2024-06-20T12:39:26.000Z",
+ "updated_at": "2024-06-20T12:39:26.000Z",
"doi": null,
"content_blobs": [
{
@@ -62,13 +62,13 @@
"md5sum": "726de0a3f94d65056b909b9736e10349",
"sha1sum": "fbcc0dee4b5415de4c82ef5b137d8231fec1331b",
"content_type": "application/pdf",
- "link": "http://localhost:3000/documents/641/content_blobs/2823",
+ "link": "http://localhost:3000/documents/307/content_blobs/1050453211",
"size": 8
}
],
"creators": [
{
- "profile": "/people/13848",
+ "profile": "/people/1039988614",
"family_name": "One",
"given_name": "Some",
"affiliation": "University of Somewhere",
@@ -81,7 +81,7 @@
"creators": {
"data": [
{
- "id": "13848",
+ "id": "1039988614",
"type": "people"
}
]
@@ -89,7 +89,7 @@
"submitter": {
"data": [
{
- "id": "13849",
+ "id": "1039988615",
"type": "people"
}
]
@@ -97,11 +97,11 @@
"people": {
"data": [
{
- "id": "13848",
+ "id": "1039988614",
"type": "people"
},
{
- "id": "13849",
+ "id": "1039988615",
"type": "people"
}
]
@@ -109,7 +109,7 @@
"projects": {
"data": [
{
- "id": "16396",
+ "id": "1022252724",
"type": "projects"
}
]
@@ -117,7 +117,7 @@
"investigations": {
"data": [
{
- "id": "4747",
+ "id": "973655138",
"type": "investigations"
}
]
@@ -125,7 +125,7 @@
"studies": {
"data": [
{
- "id": "3622",
+ "id": "1060385169",
"type": "studies"
}
]
@@ -133,7 +133,7 @@
"assays": {
"data": [
{
- "id": "1904",
+ "id": "1035386914",
"type": "assays"
}
]
@@ -141,7 +141,7 @@
"publications": {
"data": [
{
- "id": "1698",
+ "id": "334",
"type": "publications"
}
]
@@ -149,21 +149,21 @@
"workflows": {
"data": [
{
- "id": "338",
+ "id": "224",
"type": "workflows"
}
]
}
},
"links": {
- "self": "/documents/641?version=1"
+ "self": "/documents/307?version=1"
},
"meta": {
- "created": "2024-03-15T16:09:58.000Z",
- "modified": "2024-03-15T16:09:58.000Z",
+ "created": "2024-06-20T12:39:26.000Z",
+ "modified": "2024-06-20T12:39:26.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "64ddb5c0-c514-013c-6432-7efdca78d793"
+ "uuid": "0d79a100-1130-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/documentsResponse.json b/public/api/examples/documentsResponse.json
index b9f70b27e1..bb2131f583 100644
--- a/public/api/examples/documentsResponse.json
+++ b/public/api/examples/documentsResponse.json
@@ -1,23 +1,23 @@
{
"data": [
{
- "id": "638",
+ "id": "305",
"type": "documents",
"attributes": {
- "title": "A Minimal Document"
+ "title": "A Maximal Document"
},
"links": {
- "self": "/documents/638"
+ "self": "/documents/305"
}
},
{
- "id": "639",
+ "id": "304",
"type": "documents",
"attributes": {
- "title": "A Maximal Document"
+ "title": "A Minimal Document"
},
"links": {
- "self": "/documents/639"
+ "self": "/documents/304"
}
}
],
diff --git a/public/api/examples/eventPatch.json b/public/api/examples/eventPatch.json
index b2ebcc1dcb..5d8194a5b8 100644
--- a/public/api/examples/eventPatch.json
+++ b/public/api/examples/eventPatch.json
@@ -1,7 +1,7 @@
{
"data": {
"type": "events",
- "id": "20",
+ "id": "1025618785",
"attributes": {
"title": "A Maximally Patched Event",
"description": "A thing happening",
@@ -10,7 +10,7 @@
"permissions": [
{
"resource": {
- "id": "459",
+ "id": "1022252557",
"type": "projects"
},
"access": "edit"
@@ -28,7 +28,7 @@
"projects": {
"data": [
{
- "id": "459",
+ "id": "1022252557",
"type": "projects"
}
]
@@ -36,7 +36,7 @@
"data_files": {
"data": [
{
- "id": "28",
+ "id": "883654388",
"type": "data_files"
}
]
@@ -44,7 +44,7 @@
"presentations": {
"data": [
{
- "id": "20",
+ "id": "145",
"type": "presentations"
}
]
@@ -52,7 +52,7 @@
"publications": {
"data": [
{
- "id": "34",
+ "id": "330",
"type": "publications"
}
]
diff --git a/public/api/examples/eventPatchResponse.json b/public/api/examples/eventPatchResponse.json
index 137ba3028c..5e107d611a 100644
--- a/public/api/examples/eventPatchResponse.json
+++ b/public/api/examples/eventPatchResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "20",
+ "id": "1025618785",
"type": "events",
"attributes": {
"policy": {
@@ -8,7 +8,7 @@
"permissions": [
{
"resource": {
- "id": "459",
+ "id": "1022252557",
"type": "projects"
},
"access": "edit"
@@ -28,7 +28,7 @@
"submitter": {
"data": [
{
- "id": "424",
+ "id": "1039988454",
"type": "people"
}
]
@@ -36,7 +36,7 @@
"projects": {
"data": [
{
- "id": "459",
+ "id": "1022252557",
"type": "projects"
}
]
@@ -44,7 +44,7 @@
"data_files": {
"data": [
{
- "id": "28",
+ "id": "883654388",
"type": "data_files"
}
]
@@ -52,7 +52,7 @@
"publications": {
"data": [
{
- "id": "34",
+ "id": "330",
"type": "publications"
}
]
@@ -60,21 +60,21 @@
"presentations": {
"data": [
{
- "id": "20",
+ "id": "145",
"type": "presentations"
}
]
}
},
"links": {
- "self": "/events/20"
+ "self": "/events/1025618785"
},
"meta": {
- "created": "2022-06-07T14:13:27.000Z",
- "modified": "2022-06-07T14:13:27.000Z",
+ "created": "2024-06-20T12:39:01.000Z",
+ "modified": "2024-06-20T12:39:01.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "ecc58c30-c899-013a-0f7e-0a81884ed284"
+ "uuid": "fea3a130-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/eventPost.json b/public/api/examples/eventPost.json
index 33efa56b00..39a2d474ea 100644
--- a/public/api/examples/eventPost.json
+++ b/public/api/examples/eventPost.json
@@ -9,7 +9,7 @@
"permissions": [
{
"resource": {
- "id": "436",
+ "id": "1022252534",
"type": "projects"
},
"access": "edit"
@@ -27,7 +27,7 @@
"projects": {
"data": [
{
- "id": "436",
+ "id": "1022252534",
"type": "projects"
}
]
@@ -35,7 +35,7 @@
"data_files": {
"data": [
{
- "id": "23",
+ "id": "883654383",
"type": "data_files"
}
]
@@ -43,7 +43,7 @@
"presentations": {
"data": [
{
- "id": "15",
+ "id": "140",
"type": "presentations"
}
]
@@ -51,7 +51,7 @@
"publications": {
"data": [
{
- "id": "29",
+ "id": "325",
"type": "publications"
}
]
diff --git a/public/api/examples/eventPostResponse.json b/public/api/examples/eventPostResponse.json
index d85dd32902..273456ee2d 100644
--- a/public/api/examples/eventPostResponse.json
+++ b/public/api/examples/eventPostResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "14",
+ "id": "1025618779",
"type": "events",
"attributes": {
"policy": {
@@ -8,7 +8,7 @@
"permissions": [
{
"resource": {
- "id": "436",
+ "id": "1022252534",
"type": "projects"
},
"access": "edit"
@@ -28,7 +28,7 @@
"submitter": {
"data": [
{
- "id": "406",
+ "id": "1039988436",
"type": "people"
}
]
@@ -36,7 +36,7 @@
"projects": {
"data": [
{
- "id": "436",
+ "id": "1022252534",
"type": "projects"
}
]
@@ -44,7 +44,7 @@
"data_files": {
"data": [
{
- "id": "23",
+ "id": "883654383",
"type": "data_files"
}
]
@@ -52,7 +52,7 @@
"publications": {
"data": [
{
- "id": "29",
+ "id": "325",
"type": "publications"
}
]
@@ -60,21 +60,21 @@
"presentations": {
"data": [
{
- "id": "15",
+ "id": "140",
"type": "presentations"
}
]
}
},
"links": {
- "self": "/events/14"
+ "self": "/events/1025618779"
},
"meta": {
- "created": "2022-06-07T14:13:24.000Z",
- "modified": "2022-06-07T14:13:24.000Z",
+ "created": "2024-06-20T12:38:58.000Z",
+ "modified": "2024-06-20T12:38:58.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "eb17d850-c899-013a-0f7e-0a81884ed284"
+ "uuid": "fd1d2960-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/eventResponse.json b/public/api/examples/eventResponse.json
index ab07d91b5c..2ee8c38baf 100644
--- a/public/api/examples/eventResponse.json
+++ b/public/api/examples/eventResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "19",
+ "id": "1025618784",
"type": "events",
"attributes": {
"policy": {
@@ -22,7 +22,7 @@
"submitter": {
"data": [
{
- "id": "422",
+ "id": "1039988452",
"type": "people"
}
]
@@ -30,7 +30,7 @@
"projects": {
"data": [
{
- "id": "457",
+ "id": "1022252555",
"type": "projects"
}
]
@@ -38,7 +38,7 @@
"data_files": {
"data": [
{
- "id": "27",
+ "id": "883654387",
"type": "data_files"
}
]
@@ -46,7 +46,7 @@
"publications": {
"data": [
{
- "id": "33",
+ "id": "329",
"type": "publications"
}
]
@@ -54,21 +54,21 @@
"presentations": {
"data": [
{
- "id": "19",
+ "id": "144",
"type": "presentations"
}
]
}
},
"links": {
- "self": "/events/19"
+ "self": "/events/1025618784"
},
"meta": {
- "created": "2022-06-07T14:13:27.000Z",
- "modified": "2022-06-07T14:13:27.000Z",
+ "created": "2024-06-20T12:39:00.000Z",
+ "modified": "2024-06-20T12:39:00.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "ec66f880-c899-013a-0f7e-0a81884ed284"
+ "uuid": "fe4eb280-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/extendedMetadataTypeResponse.json b/public/api/examples/extendedMetadataTypeResponse.json
index 23f238bd37..523ea4629f 100644
--- a/public/api/examples/extendedMetadataTypeResponse.json
+++ b/public/api/examples/extendedMetadataTypeResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "233",
+ "id": "278",
"type": "extended_metadata_types",
"attributes": {
"title": "A Max Extended Metadata Type",
@@ -8,13 +8,13 @@
"enabled": true,
"extended_metadata_attributes": [
{
- "id": "502",
+ "id": "652",
"title": "age",
"label": "Age",
"description": null,
"sample_attribute_type": {
- "id": "539",
- "title": "Integer attribute type 4",
+ "id": "765",
+ "title": "Integer attribute type 43",
"base_type": "Integer",
"regexp": ".*"
},
@@ -24,13 +24,13 @@
"linked_extended_metadata_type_id": null
},
{
- "id": "503",
+ "id": "653",
"title": "name",
"label": "Name",
"description": null,
"sample_attribute_type": {
- "id": "540",
- "title": "String attribute type 7",
+ "id": "766",
+ "title": "String attribute type 483",
"base_type": "String",
"regexp": ".*"
},
@@ -40,13 +40,13 @@
"linked_extended_metadata_type_id": null
},
{
- "id": "504",
+ "id": "654",
"title": "date",
"label": "Date",
"description": null,
"sample_attribute_type": {
- "id": "541",
- "title": "DateTime attribute type 4",
+ "id": "767",
+ "title": "DateTime attribute type 43",
"base_type": "DateTime",
"regexp": ".*"
},
@@ -58,7 +58,7 @@
]
},
"links": {
- "self": "/extended_metadata_types/233"
+ "self": "/extended_metadata_types/278"
},
"meta": {
"api_version": "0.3",
diff --git a/public/api/examples/extendedMetadataTypesResponse.json b/public/api/examples/extendedMetadataTypesResponse.json
index 08b883ad75..3397b0a138 100644
--- a/public/api/examples/extendedMetadataTypesResponse.json
+++ b/public/api/examples/extendedMetadataTypesResponse.json
@@ -1,23 +1,23 @@
{
"data": [
{
- "id": "231",
+ "id": "276",
"type": "extended_metadata_types",
"attributes": {
"title": "A Min Extended Metadata Type"
},
"links": {
- "self": "/extended_metadata_types/231"
+ "self": "/extended_metadata_types/276"
}
},
{
- "id": "232",
+ "id": "277",
"type": "extended_metadata_types",
"attributes": {
"title": "A Max Extended Metadata Type"
},
"links": {
- "self": "/extended_metadata_types/232"
+ "self": "/extended_metadata_types/277"
}
}
],
diff --git a/public/api/examples/fileTemplatePatch.json b/public/api/examples/fileTemplatePatch.json
index cfa2e690de..014123c381 100644
--- a/public/api/examples/fileTemplatePatch.json
+++ b/public/api/examples/fileTemplatePatch.json
@@ -1,7 +1,7 @@
{
"data": {
"type": "file_templates",
- "id": "41",
+ "id": "57",
"attributes": {
"title": "A Maximal FileTemplate",
"description": "This is the description",
@@ -28,7 +28,7 @@
"permissions": [
{
"resource": {
- "id": "278",
+ "id": "1022253159",
"type": "projects"
},
"access": "edit"
@@ -40,7 +40,7 @@
"creators": {
"data": [
{
- "id": "333",
+ "id": "1039989032",
"type": "people"
}
]
@@ -48,7 +48,7 @@
"projects": {
"data": [
{
- "id": "278",
+ "id": "1022253159",
"type": "projects"
}
]
diff --git a/public/api/examples/fileTemplatePatchResponse.json b/public/api/examples/fileTemplatePatchResponse.json
index f27d5d3117..c1d21ce9ab 100644
--- a/public/api/examples/fileTemplatePatchResponse.json
+++ b/public/api/examples/fileTemplatePatchResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "41",
+ "id": "57",
"type": "file_templates",
"attributes": {
"policy": {
@@ -8,7 +8,7 @@
"permissions": [
{
"resource": {
- "id": "278",
+ "id": "1022253159",
"type": "projects"
},
"access": "edit"
@@ -30,32 +30,32 @@
{
"version": 1,
"revision_comments": null,
- "url": "http://localhost:3000/file_templates/41?version=1",
+ "url": "http://localhost:3000/file_templates/57?version=1",
"doi": null
}
],
"version": 1,
"revision_comments": null,
- "created_at": "2022-07-22T12:42:27.000Z",
- "updated_at": "2022-07-22T12:42:27.000Z",
+ "created_at": "2024-06-20T12:40:27.000Z",
+ "updated_at": "2024-06-20T12:40:27.000Z",
"doi": null,
"content_blobs": [
{
- "original_filename": "file-28",
+ "original_filename": "file-368",
"url": null,
- "md5sum": "b2379ac13d99328ff8aa2f2f2c1ffa34",
- "sha1sum": "d62c0071c03bbf35eba082bdd2f468fb16868475",
+ "md5sum": "e0c27fbf19a1ba9e8a59da2f80c87669",
+ "sha1sum": "286c276b6576eb983f1e142146e9bfd550790094",
"content_type": "application/pdf",
- "link": "http://localhost:3000/file_templates/41/content_blobs/126",
- "size": 9
+ "link": "http://localhost:3000/file_templates/57/content_blobs/1050453383",
+ "size": 10
}
],
"creators": [
{
- "profile": "/people/333",
+ "profile": "/people/1039989032",
"family_name": "Last",
- "given_name": "Person269",
- "affiliation": "An Institution: 333",
+ "given_name": "Person3762",
+ "affiliation": "An Institution: 4688",
"orcid": null
}
],
@@ -77,7 +77,7 @@
"creators": {
"data": [
{
- "id": "333",
+ "id": "1039989032",
"type": "people"
}
]
@@ -85,7 +85,7 @@
"submitter": {
"data": [
{
- "id": "332",
+ "id": "1039989031",
"type": "people"
}
]
@@ -93,11 +93,11 @@
"people": {
"data": [
{
- "id": "332",
+ "id": "1039989031",
"type": "people"
},
{
- "id": "333",
+ "id": "1039989032",
"type": "people"
}
]
@@ -105,7 +105,7 @@
"projects": {
"data": [
{
- "id": "278",
+ "id": "1022253159",
"type": "projects"
}
]
@@ -122,14 +122,14 @@
}
},
"links": {
- "self": "/file_templates/41?version=1"
+ "self": "/file_templates/57?version=1"
},
"meta": {
- "created": "2022-07-22T12:42:27.000Z",
- "modified": "2022-07-22T12:42:27.000Z",
+ "created": "2024-06-20T12:40:27.000Z",
+ "modified": "2024-06-20T12:40:27.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "ab016810-ebe9-013a-1162-0a81884ed284"
+ "uuid": "32287d20-1130-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/fileTemplatePost.json b/public/api/examples/fileTemplatePost.json
index c3e1a403bb..ebc5b3034f 100644
--- a/public/api/examples/fileTemplatePost.json
+++ b/public/api/examples/fileTemplatePost.json
@@ -33,7 +33,7 @@
"permissions": [
{
"resource": {
- "id": "256",
+ "id": "1022253137",
"type": "projects"
},
"access": "edit"
@@ -45,7 +45,7 @@
"creators": {
"data": [
{
- "id": "311",
+ "id": "1039989010",
"type": "people"
}
]
@@ -53,7 +53,7 @@
"projects": {
"data": [
{
- "id": "256",
+ "id": "1022253137",
"type": "projects"
}
]
diff --git a/public/api/examples/fileTemplatePostResponse.json b/public/api/examples/fileTemplatePostResponse.json
index 62fa8deab1..8e870c9c47 100644
--- a/public/api/examples/fileTemplatePostResponse.json
+++ b/public/api/examples/fileTemplatePostResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "35",
+ "id": "51",
"type": "file_templates",
"attributes": {
"policy": {
@@ -8,7 +8,7 @@
"permissions": [
{
"resource": {
- "id": "256",
+ "id": "1022253137",
"type": "projects"
},
"access": "edit"
@@ -30,14 +30,14 @@
{
"version": 1,
"revision_comments": null,
- "url": "http://localhost:3000/file_templates/35?version=1",
+ "url": "http://localhost:3000/file_templates/51?version=1",
"doi": null
}
],
"version": 1,
"revision_comments": null,
- "created_at": "2022-07-22T12:42:24.000Z",
- "updated_at": "2022-07-22T12:42:24.000Z",
+ "created_at": "2024-06-20T12:40:25.000Z",
+ "updated_at": "2024-06-20T12:40:25.000Z",
"doi": null,
"content_blobs": [
{
@@ -46,16 +46,16 @@
"md5sum": null,
"sha1sum": null,
"content_type": "application/pdf",
- "link": "http://localhost:3000/file_templates/35/content_blobs/118",
+ "link": "http://localhost:3000/file_templates/51/content_blobs/1050453377",
"size": null
}
],
"creators": [
{
- "profile": "/people/311",
+ "profile": "/people/1039989010",
"family_name": "Last",
- "given_name": "Person252",
- "affiliation": "An Institution: 311",
+ "given_name": "Person3745",
+ "affiliation": "An Institution: 4666",
"orcid": null
}
],
@@ -77,7 +77,7 @@
"creators": {
"data": [
{
- "id": "311",
+ "id": "1039989010",
"type": "people"
}
]
@@ -85,7 +85,7 @@
"submitter": {
"data": [
{
- "id": "310",
+ "id": "1039989009",
"type": "people"
}
]
@@ -93,11 +93,11 @@
"people": {
"data": [
{
- "id": "310",
+ "id": "1039989009",
"type": "people"
},
{
- "id": "311",
+ "id": "1039989010",
"type": "people"
}
]
@@ -105,7 +105,7 @@
"projects": {
"data": [
{
- "id": "256",
+ "id": "1022253137",
"type": "projects"
}
]
@@ -122,14 +122,14 @@
}
},
"links": {
- "self": "/file_templates/35?version=1"
+ "self": "/file_templates/51?version=1"
},
"meta": {
- "created": "2022-07-22T12:42:24.000Z",
- "modified": "2022-07-22T12:42:24.000Z",
+ "created": "2024-06-20T12:40:25.000Z",
+ "modified": "2024-06-20T12:40:25.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "a9467070-ebe9-013a-1162-0a81884ed284"
+ "uuid": "30c2bc40-1130-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/fileTemplateResponse.json b/public/api/examples/fileTemplateResponse.json
index 1bf2bbb14e..b0912aa831 100644
--- a/public/api/examples/fileTemplateResponse.json
+++ b/public/api/examples/fileTemplateResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "40",
+ "id": "56",
"type": "file_templates",
"attributes": {
"policy": {
@@ -11,7 +11,7 @@
},
"discussion_links": [
{
- "id": "8",
+ "id": "268",
"label": "Slack",
"url": "http://www.slack.com/"
}
@@ -31,14 +31,14 @@
{
"version": 1,
"revision_comments": null,
- "url": "http://localhost:3000/file_templates/40?version=1",
+ "url": "http://localhost:3000/file_templates/56?version=1",
"doi": null
}
],
"version": 1,
"revision_comments": null,
- "created_at": "2022-07-22T12:42:27.000Z",
- "updated_at": "2022-07-22T12:42:27.000Z",
+ "created_at": "2024-06-20T12:40:27.000Z",
+ "updated_at": "2024-06-20T12:40:27.000Z",
"doi": null,
"content_blobs": [
{
@@ -47,13 +47,13 @@
"md5sum": "726de0a3f94d65056b909b9736e10349",
"sha1sum": "fbcc0dee4b5415de4c82ef5b137d8231fec1331b",
"content_type": "application/pdf",
- "link": "http://localhost:3000/file_templates/40/content_blobs/125",
+ "link": "http://localhost:3000/file_templates/56/content_blobs/1050453382",
"size": 8
}
],
"creators": [
{
- "profile": "/people/329",
+ "profile": "/people/1039989028",
"family_name": "One",
"given_name": "Some",
"affiliation": "University of Somewhere",
@@ -78,7 +78,7 @@
"creators": {
"data": [
{
- "id": "329",
+ "id": "1039989028",
"type": "people"
}
]
@@ -86,7 +86,7 @@
"submitter": {
"data": [
{
- "id": "330",
+ "id": "1039989029",
"type": "people"
}
]
@@ -94,11 +94,11 @@
"people": {
"data": [
{
- "id": "329",
+ "id": "1039989028",
"type": "people"
},
{
- "id": "330",
+ "id": "1039989029",
"type": "people"
}
]
@@ -106,7 +106,7 @@
"projects": {
"data": [
{
- "id": "276",
+ "id": "1022253157",
"type": "projects"
}
]
@@ -123,14 +123,14 @@
}
},
"links": {
- "self": "/file_templates/40?version=1"
+ "self": "/file_templates/56?version=1"
},
"meta": {
- "created": "2022-07-22T12:42:27.000Z",
- "modified": "2022-07-22T12:42:27.000Z",
+ "created": "2024-06-20T12:40:27.000Z",
+ "modified": "2024-06-20T12:40:27.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "aab736b0-ebe9-013a-1162-0a81884ed284"
+ "uuid": "31eb13a0-1130-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/fileTemplatesResponse.json b/public/api/examples/fileTemplatesResponse.json
index 953e0201be..cb93857e76 100644
--- a/public/api/examples/fileTemplatesResponse.json
+++ b/public/api/examples/fileTemplatesResponse.json
@@ -1,23 +1,23 @@
{
"data": [
{
- "id": "38",
+ "id": "54",
"type": "file_templates",
"attributes": {
"title": "A Maximal FileTemplate"
},
"links": {
- "self": "/file_templates/38"
+ "self": "/file_templates/54"
}
},
{
- "id": "37",
+ "id": "53",
"type": "file_templates",
"attributes": {
"title": "A Minimal FileTemplate"
},
"links": {
- "self": "/file_templates/37"
+ "self": "/file_templates/53"
}
}
],
diff --git a/public/api/examples/humanDiseaseResponse.json b/public/api/examples/humanDiseaseResponse.json
index 17e8afbda8..b8edb9610d 100644
--- a/public/api/examples/humanDiseaseResponse.json
+++ b/public/api/examples/humanDiseaseResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "3",
+ "id": "647916208",
"type": "human_diseases",
"attributes": {
"title": "A Maximal Human Disease",
@@ -11,7 +11,7 @@
"projects": {
"data": [
{
- "id": "934",
+ "id": "1022252597",
"type": "projects"
}
]
@@ -19,7 +19,7 @@
"assays": {
"data": [
{
- "id": "127",
+ "id": "1035386884",
"type": "assays"
}
]
@@ -27,7 +27,7 @@
"models": {
"data": [
{
- "id": "137",
+ "id": "1004285591",
"type": "models"
}
]
@@ -44,14 +44,14 @@
}
},
"links": {
- "self": "/human_diseases/3"
+ "self": "/human_diseases/647916208"
},
"meta": {
- "created": "2022-06-07T14:14:35.000Z",
- "modified": "2022-06-07T14:14:35.000Z",
+ "created": "2024-06-20T12:39:06.000Z",
+ "modified": "2024-06-20T12:39:06.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "15063e40-c89a-013a-0f7e-0a81884ed284"
+ "uuid": "01c01bc0-1130-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/institutionPatch.json b/public/api/examples/institutionPatch.json
index 378edaad18..86385c924f 100644
--- a/public/api/examples/institutionPatch.json
+++ b/public/api/examples/institutionPatch.json
@@ -1,7 +1,7 @@
{
"data": {
"type": "institutions",
- "id": "641",
+ "id": "980191687",
"attributes": {
"title": "Patched institution",
"web_page": "http://my.institution.com",
diff --git a/public/api/examples/institutionPatchResponse.json b/public/api/examples/institutionPatchResponse.json
index 78d95847d6..e77d7b9029 100644
--- a/public/api/examples/institutionPatchResponse.json
+++ b/public/api/examples/institutionPatchResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "641",
+ "id": "980191687",
"type": "institutions",
"attributes": {
"discussion_links": [
@@ -27,14 +27,14 @@
}
},
"links": {
- "self": "/institutions/641"
+ "self": "/institutions/980191687"
},
"meta": {
- "created": "2022-06-07T14:14:01.000Z",
- "modified": "2022-06-07T14:14:01.000Z",
+ "created": "2024-06-20T12:35:59.000Z",
+ "modified": "2024-06-20T12:35:59.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "00e18f40-c89a-013a-0f7e-0a81884ed284"
+ "uuid": "92430100-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/institutionPost.json b/public/api/examples/institutionPost.json
index f4974285b1..1bb0ab2b36 100644
--- a/public/api/examples/institutionPost.json
+++ b/public/api/examples/institutionPost.json
@@ -2,7 +2,7 @@
"data": {
"type": "institutions",
"attributes": {
- "title": "Post Institution 627 Max",
+ "title": "Post Institution 980191673 Max",
"country": "United Kingdom",
"city": "Manchester",
"address": "Manchester Centre for Integrative Systems Biology, MIB/CEAS, The University of Manchester Faraday Building, Sackville Street, Manchester M60 1QD United Kingdom",
diff --git a/public/api/examples/institutionPostResponse.json b/public/api/examples/institutionPostResponse.json
index 271f621a54..8b71ab51a8 100644
--- a/public/api/examples/institutionPostResponse.json
+++ b/public/api/examples/institutionPostResponse.json
@@ -1,13 +1,13 @@
{
"data": {
- "id": "627",
+ "id": "980191673",
"type": "institutions",
"attributes": {
"discussion_links": [
],
"avatar": null,
- "title": "Post Institution 627 Max",
+ "title": "Post Institution 980191673 Max",
"country": "United Kingdom",
"country_code": "GB",
"city": "Manchester",
@@ -27,14 +27,14 @@
}
},
"links": {
- "self": "/institutions/627"
+ "self": "/institutions/980191673"
},
"meta": {
- "created": "2022-06-07T14:14:00.000Z",
- "modified": "2022-06-07T14:14:00.000Z",
+ "created": "2024-06-20T12:35:58.000Z",
+ "modified": "2024-06-20T12:35:58.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "0054b090-c89a-013a-0f7e-0a81884ed284"
+ "uuid": "91ca2e80-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/institutionResponse.json b/public/api/examples/institutionResponse.json
index 5c2563cfba..9394a7d6b7 100644
--- a/public/api/examples/institutionResponse.json
+++ b/public/api/examples/institutionResponse.json
@@ -1,11 +1,11 @@
{
"data": {
- "id": "638",
+ "id": "980191684",
"type": "institutions",
"attributes": {
"discussion_links": [
{
- "id": "56",
+ "id": "183",
"label": "Slack",
"url": "http://www.slack.com/"
}
@@ -31,14 +31,14 @@
}
},
"links": {
- "self": "/institutions/638"
+ "self": "/institutions/980191684"
},
"meta": {
- "created": "2022-06-07T14:14:01.000Z",
- "modified": "2022-06-07T14:14:01.000Z",
+ "created": "2024-06-20T12:35:59.000Z",
+ "modified": "2024-06-20T12:35:59.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "00bfa1b0-c89a-013a-0f7e-0a81884ed284"
+ "uuid": "9223aad0-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/institutionsResponse.json b/public/api/examples/institutionsResponse.json
index 8296ec2b28..bc3425e39d 100644
--- a/public/api/examples/institutionsResponse.json
+++ b/public/api/examples/institutionsResponse.json
@@ -1,33 +1,33 @@
{
"data": [
{
- "id": "633",
+ "id": "980191679",
"type": "institutions",
"attributes": {
"title": "A Maximal Institution"
},
"links": {
- "self": "/institutions/633"
+ "self": "/institutions/980191679"
}
},
{
- "id": "631",
+ "id": "980191677",
"type": "institutions",
"attributes": {
"title": "A Minimal Institution"
},
"links": {
- "self": "/institutions/631"
+ "self": "/institutions/980191677"
}
},
{
- "id": "632",
+ "id": "980191678",
"type": "institutions",
"attributes": {
- "title": "An Institution: 630"
+ "title": "An Institution: 2812"
},
"links": {
- "self": "/institutions/632"
+ "self": "/institutions/980191678"
}
}
],
diff --git a/public/api/examples/investigationPatch.json b/public/api/examples/investigationPatch.json
index f234da50c4..9d40ca7494 100644
--- a/public/api/examples/investigationPatch.json
+++ b/public/api/examples/investigationPatch.json
@@ -1,7 +1,7 @@
{
"data": {
"type": "investigations",
- "id": "127",
+ "id": "425",
"attributes": {
"title": "A Maximal Investigation",
"policy": {
@@ -10,14 +10,14 @@
{
"resource": {
"type": "projects",
- "id": "644"
+ "id": "2199"
},
"access": "manage"
},
{
"resource": {
"type": "projects",
- "id": "675"
+ "id": "2234"
},
"access": "manage"
}
@@ -31,18 +31,18 @@
"data": [
{
"type": "projects",
- "id": "644"
+ "id": "2199"
},
{
"type": "projects",
- "id": "675"
+ "id": "2234"
}
]
},
"publications": {
"data": [
{
- "id": "54",
+ "id": "126",
"type": "publications"
}
]
@@ -50,7 +50,7 @@
"creators": {
"data": [
{
- "id": "588",
+ "id": "1908",
"type": "people"
}
]
diff --git a/public/api/examples/investigationPatchResponse.json b/public/api/examples/investigationPatchResponse.json
index 15d6ea649a..0b59d5ced4 100644
--- a/public/api/examples/investigationPatchResponse.json
+++ b/public/api/examples/investigationPatchResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "127",
+ "id": "425",
"type": "investigations",
"attributes": {
"policy": {
@@ -8,14 +8,14 @@
"permissions": [
{
"resource": {
- "id": "644",
+ "id": "2199",
"type": "projects"
},
"access": "manage"
},
{
"resource": {
- "id": "675",
+ "id": "2234",
"type": "projects"
},
"access": "manage"
@@ -34,10 +34,10 @@
"position": null,
"creators": [
{
- "profile": "/people/588",
+ "profile": "/people/1908",
"family_name": "Last",
- "given_name": "Person493",
- "affiliation": "An Institution: 593, An Institution: 622",
+ "given_name": "Person1608",
+ "affiliation": "An Institution: 1959, An Institution: 1992",
"orcid": null
}
]
@@ -46,7 +46,7 @@
"creators": {
"data": [
{
- "id": "588",
+ "id": "1908",
"type": "people"
}
]
@@ -54,7 +54,7 @@
"submitter": {
"data": [
{
- "id": "588",
+ "id": "1908",
"type": "people"
}
]
@@ -62,7 +62,7 @@
"people": {
"data": [
{
- "id": "588",
+ "id": "1908",
"type": "people"
}
]
@@ -70,11 +70,11 @@
"projects": {
"data": [
{
- "id": "644",
+ "id": "2199",
"type": "projects"
},
{
- "id": "675",
+ "id": "2234",
"type": "projects"
}
]
@@ -107,7 +107,7 @@
"publications": {
"data": [
{
- "id": "54",
+ "id": "126",
"type": "publications"
}
]
@@ -119,14 +119,14 @@
}
},
"links": {
- "self": "/investigations/127"
+ "self": "/investigations/425"
},
"meta": {
- "created": "2022-06-07T14:14:00.000Z",
- "modified": "2022-06-07T14:14:00.000Z",
+ "created": "2024-06-20T12:33:50.000Z",
+ "modified": "2024-06-20T12:33:50.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "0018a560-c89a-013a-0f7e-0a81884ed284"
+ "uuid": "451e5cd0-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/investigationPost.json b/public/api/examples/investigationPost.json
index c124709c9f..c0e0ba8e5d 100644
--- a/public/api/examples/investigationPost.json
+++ b/public/api/examples/investigationPost.json
@@ -9,14 +9,14 @@
{
"resource": {
"type": "projects",
- "id": "499"
+ "id": "2036"
},
"access": "manage"
},
{
"resource": {
"type": "projects",
- "id": "530"
+ "id": "2071"
},
"access": "manage"
}
@@ -30,18 +30,18 @@
"data": [
{
"type": "projects",
- "id": "499"
+ "id": "2036"
},
{
"type": "projects",
- "id": "530"
+ "id": "2071"
}
]
},
"publications": {
"data": [
{
- "id": "43",
+ "id": "115",
"type": "publications"
}
]
@@ -49,7 +49,7 @@
"creators": {
"data": [
{
- "id": "460",
+ "id": "1762",
"type": "people"
}
]
diff --git a/public/api/examples/investigationPostResponse.json b/public/api/examples/investigationPostResponse.json
index e417d1a514..fd6adc7dc4 100644
--- a/public/api/examples/investigationPostResponse.json
+++ b/public/api/examples/investigationPostResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "88",
+ "id": "381",
"type": "investigations",
"attributes": {
"policy": {
@@ -8,14 +8,14 @@
"permissions": [
{
"resource": {
- "id": "499",
+ "id": "2036",
"type": "projects"
},
"access": "manage"
},
{
"resource": {
- "id": "530",
+ "id": "2071",
"type": "projects"
},
"access": "manage"
@@ -34,10 +34,10 @@
"position": null,
"creators": [
{
- "profile": "/people/460",
+ "profile": "/people/1762",
"family_name": "Last",
- "given_name": "Person383",
- "affiliation": "An Institution: 462, An Institution: 491",
+ "given_name": "Person1480",
+ "affiliation": "An Institution: 1810, An Institution: 1843",
"orcid": null
}
]
@@ -46,7 +46,7 @@
"creators": {
"data": [
{
- "id": "460",
+ "id": "1762",
"type": "people"
}
]
@@ -54,7 +54,7 @@
"submitter": {
"data": [
{
- "id": "460",
+ "id": "1762",
"type": "people"
}
]
@@ -62,7 +62,7 @@
"people": {
"data": [
{
- "id": "460",
+ "id": "1762",
"type": "people"
}
]
@@ -70,11 +70,11 @@
"projects": {
"data": [
{
- "id": "499",
+ "id": "2036",
"type": "projects"
},
{
- "id": "530",
+ "id": "2071",
"type": "projects"
}
]
@@ -107,7 +107,7 @@
"publications": {
"data": [
{
- "id": "43",
+ "id": "115",
"type": "publications"
}
]
@@ -119,14 +119,14 @@
}
},
"links": {
- "self": "/investigations/88"
+ "self": "/investigations/381"
},
"meta": {
- "created": "2022-06-07T14:13:39.000Z",
- "modified": "2022-06-07T14:13:39.000Z",
+ "created": "2024-06-20T12:33:29.000Z",
+ "modified": "2024-06-20T12:33:29.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "f3edefa0-c899-013a-0f7e-0a81884ed284"
+ "uuid": "3924d830-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/investigationResponse.json b/public/api/examples/investigationResponse.json
index 5aa69d899a..5d70dda339 100644
--- a/public/api/examples/investigationResponse.json
+++ b/public/api/examples/investigationResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "119",
+ "id": "416",
"type": "investigations",
"attributes": {
"policy": {
@@ -11,7 +11,7 @@
},
"discussion_links": [
{
- "id": "50",
+ "id": "156",
"label": "Slack",
"url": "http://www.slack.com/"
}
@@ -25,7 +25,7 @@
"position": null,
"creators": [
{
- "profile": "/people/571",
+ "profile": "/people/1888",
"family_name": "One",
"given_name": "Some",
"affiliation": "University of Somewhere",
@@ -37,7 +37,7 @@
"creators": {
"data": [
{
- "id": "571",
+ "id": "1888",
"type": "people"
}
]
@@ -45,7 +45,7 @@
"submitter": {
"data": [
{
- "id": "572",
+ "id": "1889",
"type": "people"
}
]
@@ -53,11 +53,11 @@
"people": {
"data": [
{
- "id": "571",
+ "id": "1888",
"type": "people"
},
{
- "id": "572",
+ "id": "1889",
"type": "people"
}
]
@@ -65,7 +65,7 @@
"projects": {
"data": [
{
- "id": "626",
+ "id": "2178",
"type": "projects"
}
]
@@ -73,7 +73,7 @@
"studies": {
"data": [
{
- "id": "105",
+ "id": "346",
"type": "studies"
}
]
@@ -81,7 +81,7 @@
"assays": {
"data": [
{
- "id": "93",
+ "id": "286",
"type": "assays"
}
]
@@ -89,7 +89,7 @@
"data_files": {
"data": [
{
- "id": "40",
+ "id": "111",
"type": "data_files"
}
]
@@ -97,7 +97,7 @@
"models": {
"data": [
{
- "id": "92",
+ "id": "127",
"type": "models"
}
]
@@ -105,7 +105,7 @@
"sops": {
"data": [
{
- "id": "38",
+ "id": "133",
"type": "sops"
}
]
@@ -113,7 +113,7 @@
"publications": {
"data": [
{
- "id": "51",
+ "id": "123",
"type": "publications"
}
]
@@ -121,21 +121,21 @@
"documents": {
"data": [
{
- "id": "48",
+ "id": "156",
"type": "documents"
}
]
}
},
"links": {
- "self": "/investigations/119"
+ "self": "/investigations/416"
},
"meta": {
- "created": "2022-06-07T14:13:55.000Z",
- "modified": "2022-06-07T14:13:55.000Z",
+ "created": "2024-06-20T12:33:45.000Z",
+ "modified": "2024-06-20T12:33:45.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "fd2c1ed0-c899-013a-0f7e-0a81884ed284"
+ "uuid": "424a8c50-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/investigationsResponse.json b/public/api/examples/investigationsResponse.json
index 0ad32b0614..b8711dda12 100644
--- a/public/api/examples/investigationsResponse.json
+++ b/public/api/examples/investigationsResponse.json
@@ -1,23 +1,23 @@
{
"data": [
{
- "id": "103",
+ "id": "398",
"type": "investigations",
"attributes": {
- "title": "Investigation85"
+ "title": "Investigation320"
},
"links": {
- "self": "/investigations/103"
+ "self": "/investigations/398"
}
},
{
- "id": "98",
+ "id": "392",
"type": "investigations",
"attributes": {
"title": "A Minimal Investigation"
},
"links": {
- "self": "/investigations/98"
+ "self": "/investigations/392"
}
}
],
diff --git a/public/api/examples/modelPatch.json b/public/api/examples/modelPatch.json
index 2a442b440b..34c88bf590 100644
--- a/public/api/examples/modelPatch.json
+++ b/public/api/examples/modelPatch.json
@@ -1,7 +1,7 @@
{
"data": {
"type": "models",
- "id": "153",
+ "id": "1004285585",
"attributes": {
"title": "A Maximally Patched Model",
"description": "A simulation of a thing",
@@ -17,7 +17,7 @@
"permissions": [
{
"resource": {
- "id": "995",
+ "id": "1022251932",
"type": "projects"
},
"access": "edit"
@@ -29,7 +29,7 @@
"environment": "JWS Online",
"discussion_links": [
{
- "id": "81",
+ "id": "239",
"url": "http://yahoo.com",
"label": "Yahoo"
},
@@ -43,7 +43,7 @@
"creators": {
"data": [
{
- "id": "916",
+ "id": "1039987854",
"type": "people"
}
]
@@ -51,7 +51,7 @@
"organisms": {
"data": [
{
- "id": "35",
+ "id": "627234331",
"type": "organisms"
}
]
@@ -59,7 +59,7 @@
"projects": {
"data": [
{
- "id": "995",
+ "id": "1022251932",
"type": "projects"
}
]
@@ -67,7 +67,7 @@
"assays": {
"data": [
{
- "id": "139",
+ "id": "1035386814",
"type": "assays"
}
]
@@ -75,7 +75,7 @@
"publications": {
"data": [
{
- "id": "83",
+ "id": "299",
"type": "publications"
}
]
diff --git a/public/api/examples/modelPatchResponse.json b/public/api/examples/modelPatchResponse.json
index b3d330fc93..dcf1821a35 100644
--- a/public/api/examples/modelPatchResponse.json
+++ b/public/api/examples/modelPatchResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "153",
+ "id": "1004285585",
"type": "models",
"attributes": {
"policy": {
@@ -8,7 +8,7 @@
"permissions": [
{
"resource": {
- "id": "995",
+ "id": "1022251932",
"type": "projects"
},
"access": "edit"
@@ -17,12 +17,12 @@
},
"discussion_links": [
{
- "id": "81",
+ "id": "239",
"label": "Yahoo",
"url": "http://yahoo.com"
},
{
- "id": "82",
+ "id": "240",
"label": "fish",
"url": "https://fish.com"
}
@@ -40,14 +40,14 @@
{
"version": 1,
"revision_comments": null,
- "url": "http://localhost:3000/models/153?version=1",
+ "url": "http://localhost:3000/models/1004285585?version=1",
"doi": null
}
],
"version": 1,
"revision_comments": null,
- "created_at": "2022-06-07T14:14:44.000Z",
- "updated_at": "2022-06-07T14:14:44.000Z",
+ "created_at": "2024-06-20T12:37:45.000Z",
+ "updated_at": "2024-06-20T12:37:45.000Z",
"doi": null,
"content_blobs": [
{
@@ -56,16 +56,16 @@
"md5sum": "6b9283ed4ca52a081398b715aaeb8113",
"sha1sum": "454e4b6067f577b680bb8538772b12ebcdb6c4a4",
"content_type": "application/xml",
- "link": "http://localhost:3000/models/153/content_blobs/404",
+ "link": "http://localhost:3000/models/1004285585/content_blobs/1050453030",
"size": 5933
}
],
"creators": [
{
- "profile": "/people/916",
+ "profile": "/people/1039987854",
"family_name": "Last",
- "given_name": "Person768",
- "affiliation": "An Institution: 930",
+ "given_name": "Person2807",
+ "affiliation": "An Institution: 3513",
"orcid": null
}
],
@@ -79,7 +79,7 @@
"creators": {
"data": [
{
- "id": "916",
+ "id": "1039987854",
"type": "people"
}
]
@@ -87,7 +87,7 @@
"submitter": {
"data": [
{
- "id": "915",
+ "id": "1039987853",
"type": "people"
}
]
@@ -95,7 +95,7 @@
"organisms": {
"data": [
{
- "id": "35",
+ "id": "627234331",
"type": "organisms"
}
]
@@ -103,11 +103,11 @@
"people": {
"data": [
{
- "id": "915",
+ "id": "1039987853",
"type": "people"
},
{
- "id": "916",
+ "id": "1039987854",
"type": "people"
}
]
@@ -115,7 +115,7 @@
"projects": {
"data": [
{
- "id": "995",
+ "id": "1022251932",
"type": "projects"
}
]
@@ -123,7 +123,7 @@
"investigations": {
"data": [
{
- "id": "187",
+ "id": "973655036",
"type": "investigations"
}
]
@@ -131,7 +131,7 @@
"studies": {
"data": [
{
- "id": "164",
+ "id": "1060385068",
"type": "studies"
}
]
@@ -139,7 +139,7 @@
"assays": {
"data": [
{
- "id": "139",
+ "id": "1035386814",
"type": "assays"
}
]
@@ -147,21 +147,21 @@
"publications": {
"data": [
{
- "id": "83",
+ "id": "299",
"type": "publications"
}
]
}
},
"links": {
- "self": "/models/153?version=1"
+ "self": "/models/1004285585?version=1"
},
"meta": {
- "created": "2022-06-07T14:14:44.000Z",
- "modified": "2022-06-07T14:14:44.000Z",
+ "created": "2024-06-20T12:37:45.000Z",
+ "modified": "2024-06-20T12:37:45.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "1a8db7c0-c89a-013a-0f7e-0a81884ed284"
+ "uuid": "d14659c0-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/modelPost.json b/public/api/examples/modelPost.json
index fee183de6e..bbaa72ccd9 100644
--- a/public/api/examples/modelPost.json
+++ b/public/api/examples/modelPost.json
@@ -25,7 +25,7 @@
"permissions": [
{
"resource": {
- "id": "961",
+ "id": "1022251898",
"type": "projects"
},
"access": "edit"
@@ -46,7 +46,7 @@
"creators": {
"data": [
{
- "id": "881",
+ "id": "1039987819",
"type": "people"
}
]
@@ -54,7 +54,7 @@
"organisms": {
"data": [
{
- "id": "30",
+ "id": "627234326",
"type": "organisms"
}
]
@@ -62,7 +62,7 @@
"projects": {
"data": [
{
- "id": "961",
+ "id": "1022251898",
"type": "projects"
}
]
@@ -70,7 +70,7 @@
"assays": {
"data": [
{
- "id": "134",
+ "id": "1035386809",
"type": "assays"
}
]
@@ -78,7 +78,7 @@
"publications": {
"data": [
{
- "id": "78",
+ "id": "294",
"type": "publications"
}
]
diff --git a/public/api/examples/modelPostResponse.json b/public/api/examples/modelPostResponse.json
index 3398b677f1..57f59b757c 100644
--- a/public/api/examples/modelPostResponse.json
+++ b/public/api/examples/modelPostResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "140",
+ "id": "1004285574",
"type": "models",
"attributes": {
"policy": {
@@ -8,7 +8,7 @@
"permissions": [
{
"resource": {
- "id": "961",
+ "id": "1022251898",
"type": "projects"
},
"access": "edit"
@@ -17,7 +17,7 @@
},
"discussion_links": [
{
- "id": "76",
+ "id": "234",
"label": "Google",
"url": "http://google.com"
}
@@ -34,14 +34,14 @@
{
"version": 1,
"revision_comments": null,
- "url": "http://localhost:3000/models/140?version=1",
+ "url": "http://localhost:3000/models/1004285574?version=1",
"doi": null
}
],
"version": 1,
"revision_comments": null,
- "created_at": "2022-06-07T14:14:39.000Z",
- "updated_at": "2022-06-07T14:14:39.000Z",
+ "created_at": "2024-06-20T12:37:40.000Z",
+ "updated_at": "2024-06-20T12:37:40.000Z",
"doi": null,
"content_blobs": [
{
@@ -50,7 +50,7 @@
"md5sum": null,
"sha1sum": null,
"content_type": "application/pdf",
- "link": "http://localhost:3000/models/140/content_blobs/388",
+ "link": "http://localhost:3000/models/1004285574/content_blobs/1050453016",
"size": null
},
{
@@ -59,16 +59,16 @@
"md5sum": null,
"sha1sum": null,
"content_type": "application/xml",
- "link": "http://localhost:3000/models/140/content_blobs/389",
+ "link": "http://localhost:3000/models/1004285574/content_blobs/1050453017",
"size": null
}
],
"creators": [
{
- "profile": "/people/881",
+ "profile": "/people/1039987819",
"family_name": "Last",
- "given_name": "Person738",
- "affiliation": "An Institution: 895",
+ "given_name": "Person2777",
+ "affiliation": "An Institution: 3478",
"orcid": null
}
],
@@ -82,7 +82,7 @@
"creators": {
"data": [
{
- "id": "881",
+ "id": "1039987819",
"type": "people"
}
]
@@ -90,7 +90,7 @@
"submitter": {
"data": [
{
- "id": "880",
+ "id": "1039987818",
"type": "people"
}
]
@@ -98,7 +98,7 @@
"organisms": {
"data": [
{
- "id": "30",
+ "id": "627234326",
"type": "organisms"
}
]
@@ -106,11 +106,11 @@
"people": {
"data": [
{
- "id": "880",
+ "id": "1039987818",
"type": "people"
},
{
- "id": "881",
+ "id": "1039987819",
"type": "people"
}
]
@@ -118,7 +118,7 @@
"projects": {
"data": [
{
- "id": "961",
+ "id": "1022251898",
"type": "projects"
}
]
@@ -126,7 +126,7 @@
"investigations": {
"data": [
{
- "id": "182",
+ "id": "973655031",
"type": "investigations"
}
]
@@ -134,7 +134,7 @@
"studies": {
"data": [
{
- "id": "159",
+ "id": "1060385063",
"type": "studies"
}
]
@@ -142,7 +142,7 @@
"assays": {
"data": [
{
- "id": "134",
+ "id": "1035386809",
"type": "assays"
}
]
@@ -150,21 +150,21 @@
"publications": {
"data": [
{
- "id": "78",
+ "id": "294",
"type": "publications"
}
]
}
},
"links": {
- "self": "/models/140?version=1"
+ "self": "/models/1004285574?version=1"
},
"meta": {
- "created": "2022-06-07T14:14:39.000Z",
- "modified": "2022-06-07T14:14:39.000Z",
+ "created": "2024-06-20T12:37:40.000Z",
+ "modified": "2024-06-20T12:37:40.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "17884fa0-c89a-013a-0f7e-0a81884ed284"
+ "uuid": "ceb6d280-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/modelResponse.json b/public/api/examples/modelResponse.json
index df8da90ab5..9d73a189fc 100644
--- a/public/api/examples/modelResponse.json
+++ b/public/api/examples/modelResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "151",
+ "id": "1004285583",
"type": "models",
"attributes": {
"policy": {
@@ -11,7 +11,7 @@
},
"discussion_links": [
{
- "id": "80",
+ "id": "238",
"label": "Slack",
"url": "http://www.slack.com/"
}
@@ -31,14 +31,14 @@
{
"version": 1,
"revision_comments": null,
- "url": "http://localhost:3000/models/151?version=1",
+ "url": "http://localhost:3000/models/1004285583?version=1",
"doi": null
}
],
"version": 1,
"revision_comments": null,
- "created_at": "2022-06-07T14:14:43.000Z",
- "updated_at": "2022-06-07T14:14:43.000Z",
+ "created_at": "2024-06-20T12:37:44.000Z",
+ "updated_at": "2024-06-20T12:37:44.000Z",
"doi": null,
"content_blobs": [
{
@@ -47,7 +47,7 @@
"md5sum": "6b9283ed4ca52a081398b715aaeb8113",
"sha1sum": "454e4b6067f577b680bb8538772b12ebcdb6c4a4",
"content_type": "application/xml",
- "link": "http://localhost:3000/models/151/content_blobs/401",
+ "link": "http://localhost:3000/models/1004285583/content_blobs/1050453027",
"size": 5933
},
{
@@ -56,13 +56,13 @@
"md5sum": "01788bca93265d80e8127ca0039bb69b",
"sha1sum": "ffd634ac7564083ab7b66bc3eb2053cbc3d608f5",
"content_type": "application/vnd.ms-excel",
- "link": "http://localhost:3000/models/151/content_blobs/402",
+ "link": "http://localhost:3000/models/1004285583/content_blobs/1050453028",
"size": 9216
}
],
"creators": [
{
- "profile": "/people/912",
+ "profile": "/people/1039987850",
"family_name": "One",
"given_name": "Some",
"affiliation": "University of Somewhere",
@@ -79,7 +79,7 @@
"creators": {
"data": [
{
- "id": "912",
+ "id": "1039987850",
"type": "people"
}
]
@@ -87,7 +87,7 @@
"submitter": {
"data": [
{
- "id": "913",
+ "id": "1039987851",
"type": "people"
}
]
@@ -95,7 +95,7 @@
"organisms": {
"data": [
{
- "id": "34",
+ "id": "627234330",
"type": "organisms"
}
]
@@ -103,11 +103,11 @@
"people": {
"data": [
{
- "id": "912",
+ "id": "1039987850",
"type": "people"
},
{
- "id": "913",
+ "id": "1039987851",
"type": "people"
}
]
@@ -115,7 +115,7 @@
"projects": {
"data": [
{
- "id": "993",
+ "id": "1022251930",
"type": "projects"
}
]
@@ -123,7 +123,7 @@
"investigations": {
"data": [
{
- "id": "186",
+ "id": "973655035",
"type": "investigations"
}
]
@@ -131,7 +131,7 @@
"studies": {
"data": [
{
- "id": "163",
+ "id": "1060385067",
"type": "studies"
}
]
@@ -139,7 +139,7 @@
"assays": {
"data": [
{
- "id": "138",
+ "id": "1035386813",
"type": "assays"
}
]
@@ -147,21 +147,21 @@
"publications": {
"data": [
{
- "id": "82",
+ "id": "298",
"type": "publications"
}
]
}
},
"links": {
- "self": "/models/151?version=1"
+ "self": "/models/1004285583?version=1"
},
"meta": {
- "created": "2022-06-07T14:14:43.000Z",
- "modified": "2022-06-07T14:14:43.000Z",
+ "created": "2024-06-20T12:37:44.000Z",
+ "modified": "2024-06-20T12:37:44.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "19ebefa0-c89a-013a-0f7e-0a81884ed284"
+ "uuid": "d0b92970-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/organismResponse.json b/public/api/examples/organismResponse.json
index 2c3253ca4a..8ce9321ad2 100644
--- a/public/api/examples/organismResponse.json
+++ b/public/api/examples/organismResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "5",
+ "id": "627234345",
"type": "organisms",
"attributes": {
"title": "A Maximal Organism",
@@ -11,7 +11,7 @@
"projects": {
"data": [
{
- "id": "108",
+ "id": "1022252761",
"type": "projects"
}
]
@@ -19,7 +19,7 @@
"assays": {
"data": [
{
- "id": "10",
+ "id": "1035386919",
"type": "assays"
}
]
@@ -27,21 +27,21 @@
"models": {
"data": [
{
- "id": "8",
+ "id": "1004285599",
"type": "models"
}
]
}
},
"links": {
- "self": "/organisms/5"
+ "self": "/organisms/627234345"
},
"meta": {
- "created": "2022-06-07T14:12:34.000Z",
- "modified": "2022-06-07T14:12:34.000Z",
+ "created": "2024-06-20T12:39:29.000Z",
+ "modified": "2024-06-20T12:39:29.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "cd394ea0-c899-013a-0f7e-0a81884ed284"
+ "uuid": "0fbc5e60-1130-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/organismsResponse.json b/public/api/examples/organismsResponse.json
index 501f4f70a7..009b4211c5 100644
--- a/public/api/examples/organismsResponse.json
+++ b/public/api/examples/organismsResponse.json
@@ -1,23 +1,23 @@
{
"data": [
{
- "id": "3",
+ "id": "627234343",
"type": "organisms",
"attributes": {
"title": "A Maximal Organism"
},
"links": {
- "self": "/organisms/3"
+ "self": "/organisms/627234343"
}
},
{
- "id": "2",
+ "id": "627234342",
"type": "organisms",
"attributes": {
"title": "A Minimal Organism"
},
"links": {
- "self": "/organisms/2"
+ "self": "/organisms/627234342"
}
}
],
diff --git a/public/api/examples/peopleResponse.json b/public/api/examples/peopleResponse.json
index 1b86b76561..55b3d060ef 100644
--- a/public/api/examples/peopleResponse.json
+++ b/public/api/examples/peopleResponse.json
@@ -1,63 +1,413 @@
{
"data": [
{
- "id": "105",
+ "id": "940849572",
+ "type": "people",
+ "attributes": {
+ "title": "Fred Aardvark"
+ },
+ "links": {
+ "self": "/people/940849572"
+ }
+ },
+ {
+ "id": "943873801",
+ "type": "people",
+ "attributes": {
+ "title": "Fred Azbo"
+ },
+ "links": {
+ "self": "/people/943873801"
+ }
+ },
+ {
+ "id": "913531622",
+ "type": "people",
+ "attributes": {
+ "title": "Fred David Bloggs"
+ },
+ "links": {
+ "self": "/people/913531622"
+ }
+ },
+ {
+ "id": "975827294",
+ "type": "people",
+ "attributes": {
+ "title": "Fred Blogs"
+ },
+ "links": {
+ "self": "/people/975827294"
+ }
+ },
+ {
+ "id": "643213978",
+ "type": "people",
+ "attributes": {
+ "title": "Johan Bollen"
+ },
+ "links": {
+ "self": "/people/643213978"
+ }
+ },
+ {
+ "id": "241477277",
+ "type": "people",
+ "attributes": {
+ "title": "Spam Bot"
+ },
+ "links": {
+ "self": "/people/241477277"
+ }
+ },
+ {
+ "id": "982117865",
+ "type": "people",
+ "attributes": {
+ "title": "OwnerOf DownloadForAllSysmoUsersPolicy"
+ },
+ "links": {
+ "self": "/people/982117865"
+ }
+ },
+ {
+ "id": "128215185",
+ "type": "people",
+ "attributes": {
+ "title": "I Am a Duplicate"
+ },
+ "links": {
+ "self": "/people/128215185"
+ }
+ },
+ {
+ "id": "514668853",
+ "type": "people",
+ "attributes": {
+ "title": "I Am a Duplicate"
+ },
+ "links": {
+ "self": "/people/514668853"
+ }
+ },
+ {
+ "id": "730501549",
+ "type": "people",
+ "attributes": {
+ "title": "OwnerOf EditingForAllSysMOUsersPolicy"
+ },
+ "links": {
+ "self": "/people/730501549"
+ }
+ },
+ {
+ "id": "601503375",
+ "type": "people",
+ "attributes": {
+ "title": "OwnerOf FullyPublicPolicy"
+ },
+ "links": {
+ "self": "/people/601503375"
+ }
+ },
+ {
+ "id": "198969080",
+ "type": "people",
+ "attributes": {
+ "title": "Alice Graeter"
+ },
+ "links": {
+ "self": "/people/198969080"
+ }
+ },
+ {
+ "id": "275726558",
+ "type": "people",
+ "attributes": {
+ "title": "SysMO-User InAllowlistAndDenylist"
+ },
+ "links": {
+ "self": "/people/275726558"
+ }
+ },
+ {
+ "id": "420064676",
+ "type": "people",
+ "attributes": {
+ "title": "SysMO-User InDenylist"
+ },
+ "links": {
+ "self": "/people/420064676"
+ }
+ },
+ {
+ "id": "701696858",
+ "type": "people",
+ "attributes": {
+ "title": "Quentin Jones"
+ },
+ "links": {
+ "self": "/people/701696858"
+ }
+ },
+ {
+ "id": "1039988351",
"type": "people",
"attributes": {
"title": "default admin Last"
},
"links": {
- "self": "/people/105"
+ "self": "/people/1039988351"
+ }
+ },
+ {
+ "id": "1039988352",
+ "type": "people",
+ "attributes": {
+ "title": "Person3241 Last"
+ },
+ "links": {
+ "self": "/people/1039988352"
}
},
{
- "id": "106",
+ "id": "1039988353",
"type": "people",
"attributes": {
- "title": "Person85 Last"
+ "title": "Person3242 Last"
},
"links": {
- "self": "/people/106"
+ "self": "/people/1039988353"
}
},
{
- "id": "107",
+ "id": "1039988355",
"type": "people",
"attributes": {
- "title": "Person86 Last"
+ "title": "Person3243 Last"
},
"links": {
- "self": "/people/107"
+ "self": "/people/1039988355"
}
},
{
- "id": "109",
+ "id": "12247987",
"type": "people",
"attributes": {
- "title": "Person87 Last"
+ "title": "Lastname"
},
"links": {
- "self": "/people/109"
+ "self": "/people/12247987"
}
},
{
- "id": "110",
+ "id": "1039988356",
"type": "people",
"attributes": {
"title": "Maximilian Maxi-Mum"
},
"links": {
- "self": "/people/110"
+ "self": "/people/1039988356"
}
},
{
- "id": "108",
+ "id": "1039988354",
"type": "people",
"attributes": {
"title": "Minimal"
},
"links": {
- "self": "/people/108"
+ "self": "/people/1039988354"
+ }
+ },
+ {
+ "id": "773249994",
+ "type": "people",
+ "attributes": {
+ "title": "Bob Müller"
+ },
+ "links": {
+ "self": "/people/773249994"
+ }
+ },
+ {
+ "id": "194977880",
+ "type": "people",
+ "attributes": {
+ "title": "OwnerOf MyFirstSop"
+ },
+ "links": {
+ "self": "/people/194977880"
+ }
+ },
+ {
+ "id": "523838188",
+ "type": "people",
+ "attributes": {
+ "title": "TestAccessor OnlyInAllowlist"
+ },
+ "links": {
+ "self": "/people/523838188"
+ }
+ },
+ {
+ "id": "1010894610",
+ "type": "people",
+ "attributes": {
+ "title": "TestAccessor OnlyInDenylist"
+ },
+ "links": {
+ "self": "/people/1010894610"
+ }
+ },
+ {
+ "id": "522086294",
+ "type": "people",
+ "attributes": {
+ "title": "Datafile Owner"
+ },
+ "links": {
+ "self": "/people/522086294"
+ }
+ },
+ {
+ "id": "574165609",
+ "type": "people",
+ "attributes": {
+ "title": "Model Owner"
+ },
+ "links": {
+ "self": "/people/574165609"
+ }
+ },
+ {
+ "id": "1038269682",
+ "type": "people",
+ "attributes": {
+ "title": "Random Person"
+ },
+ "links": {
+ "self": "/people/1038269682"
+ }
+ },
+ {
+ "id": "249179401",
+ "type": "people",
+ "attributes": {
+ "title": "Person Place_holder"
+ },
+ "links": {
+ "self": "/people/249179401"
+ }
+ },
+ {
+ "id": "921288942",
+ "type": "people",
+ "attributes": {
+ "title": "OwnerOf PrivatePolicyUsingCustomSharing"
+ },
+ "links": {
+ "self": "/people/921288942"
+ }
+ },
+ {
+ "id": "113629430",
+ "type": "people",
+ "attributes": {
+ "title": "No_user Smith"
+ },
+ "links": {
+ "self": "/people/113629430"
+ }
+ },
+ {
+ "id": "847710731",
+ "type": "people",
+ "attributes": {
+ "title": "Fred Smith Jones"
+ },
+ "links": {
+ "self": "/people/847710731"
+ }
+ },
+ {
+ "id": "262742470",
+ "type": "people",
+ "attributes": {
+ "title": "Fred Smith-Jones"
+ },
+ "links": {
+ "self": "/people/262742470"
+ }
+ },
+ {
+ "id": "1039986468",
+ "type": "people",
+ "attributes": {
+ "title": "Aaron Spiggle"
+ },
+ "links": {
+ "self": "/people/1039986468"
+ }
+ },
+ {
+ "id": "408848532",
+ "type": "people",
+ "attributes": {
+ "title": "Free Spirit"
+ },
+ "links": {
+ "self": "/people/408848532"
+ }
+ },
+ {
+ "id": "382405343",
+ "type": "people",
+ "attributes": {
+ "title": "Registered-User WantsToAccessManyThingsAndHasSomePermissions"
+ },
+ "links": {
+ "self": "/people/382405343"
+ }
+ },
+ {
+ "id": "528771254",
+ "type": "people",
+ "attributes": {
+ "title": "Firstname"
+ },
+ "links": {
+ "self": "/people/528771254"
+ }
+ },
+ {
+ "id": "272240831",
+ "type": "people",
+ "attributes": {
+ "title": "Lonely"
+ },
+ "links": {
+ "self": "/people/272240831"
+ }
+ },
+ {
+ "id": "872873870",
+ "type": "people",
+ "attributes": {
+ "title": "Modeller"
+ },
+ "links": {
+ "self": "/people/872873870"
+ }
+ },
+ {
+ "id": "171291580",
+ "type": "people",
+ "attributes": {
+ "title": "Userless"
+ },
+ "links": {
+ "self": "/people/171291580"
}
}
],
diff --git a/public/api/examples/personPatch.json b/public/api/examples/personPatch.json
index 875fbb4756..ae71c9fc67 100644
--- a/public/api/examples/personPatch.json
+++ b/public/api/examples/personPatch.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "118",
+ "id": "1039988364",
"type": "people",
"attributes": {
"first_name": "Patched",
diff --git a/public/api/examples/personPatchResponse.json b/public/api/examples/personPatchResponse.json
index fba5715a9c..e91b734a60 100644
--- a/public/api/examples/personPatchResponse.json
+++ b/public/api/examples/personPatchResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "1039992249",
+ "id": "1039988364",
"type": "people",
"attributes": {
"avatar": null,
@@ -19,13 +19,13 @@
"Gromacs",
"Python"
],
- "login": "user204"
+ "login": "user3898"
},
"relationships": {
"projects": {
"data": [
{
- "id": "1022256840",
+ "id": "1022252441",
"type": "projects"
}
]
@@ -33,7 +33,7 @@
"institutions": {
"data": [
{
- "id": "980196784",
+ "id": "980192886",
"type": "institutions"
}
]
@@ -100,14 +100,14 @@
}
},
"links": {
- "self": "/people/1039992249"
+ "self": "/people/1039988364"
},
"meta": {
- "created": "2022-10-26T11:44:31.000Z",
- "modified": "2022-10-26T11:44:31.000Z",
+ "created": "2024-06-20T12:38:47.000Z",
+ "modified": "2024-06-20T12:38:47.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "7acec590-3751-013b-356e-000c29a94011"
+ "uuid": "f66eeec0-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/personPost.json b/public/api/examples/personPost.json
index efe5420289..6b0b69f83f 100644
--- a/public/api/examples/personPost.json
+++ b/public/api/examples/personPost.json
@@ -3,8 +3,8 @@
"type": "people",
"attributes": {
"first_name": "Post",
- "last_name": "Person104",
- "email": "maxtest104@test.com",
+ "last_name": "Person1039988350",
+ "email": "maxtest1039988350@test.com",
"description": "A person with all possible details",
"web_page": "http://www.website.com",
"orcid": "https://orcid.org/0000-0001-9842-9718",
diff --git a/public/api/examples/personPostResponse.json b/public/api/examples/personPostResponse.json
index 6909a2a89c..b79574e978 100644
--- a/public/api/examples/personPostResponse.json
+++ b/public/api/examples/personPostResponse.json
@@ -1,15 +1,15 @@
{
"data": {
- "id": "1039992235",
+ "id": "1039988350",
"type": "people",
"attributes": {
"avatar": null,
- "title": "Post Person1039992235",
+ "title": "Post Person1039988350",
"description": "A person with all possible details",
"first_name": "Post",
- "last_name": "Person1039992235",
+ "last_name": "Person1039988350",
"orcid": "https://orcid.org/0000-0001-9842-9718",
- "mbox_sha1sum": "f1294d2fd50702dcee3a9686b360667d32eca0ad",
+ "mbox_sha1sum": "75b8b8d23704f980c8dd9a965e036a388033383c",
"expertise": [
"modeling",
"programming"
@@ -94,14 +94,14 @@
}
},
"links": {
- "self": "/people/1039992235"
+ "self": "/people/1039988350"
},
"meta": {
- "created": "2022-10-26T11:44:29.000Z",
- "modified": "2022-10-26T11:44:29.000Z",
+ "created": "2024-06-20T12:38:44.000Z",
+ "modified": "2024-06-20T12:38:44.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "792fedf0-3751-013b-356e-000c29a94011"
+ "uuid": "f478fc80-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/personResponse.json b/public/api/examples/personResponse.json
index e09a0d8fc3..2cb01bb8e3 100644
--- a/public/api/examples/personResponse.json
+++ b/public/api/examples/personResponse.json
@@ -1,9 +1,9 @@
{
"data": {
- "id": "1039992246",
+ "id": "1039988361",
"type": "people",
"attributes": {
- "avatar": "/people/1039992246/avatars/45",
+ "avatar": "/people/1039988361/avatars/37",
"title": "Maximilian Maxi-Mum",
"description": "A person with all possible details",
"first_name": "Maximilian",
@@ -23,7 +23,7 @@
"projects": {
"data": [
{
- "id": "1022256835",
+ "id": "1022252437",
"type": "projects"
}
]
@@ -31,7 +31,7 @@
"institutions": {
"data": [
{
- "id": "980196780",
+ "id": "980192883",
"type": "institutions"
}
]
@@ -39,7 +39,7 @@
"investigations": {
"data": [
{
- "id": "973655440",
+ "id": "973655106",
"type": "investigations"
}
]
@@ -47,7 +47,7 @@
"studies": {
"data": [
{
- "id": "1060385452",
+ "id": "1060385137",
"type": "studies"
}
]
@@ -55,7 +55,7 @@
"assays": {
"data": [
{
- "id": "1035387171",
+ "id": "1035386882",
"type": "assays"
}
]
@@ -63,7 +63,7 @@
"data_files": {
"data": [
{
- "id": "883654679",
+ "id": "883654361",
"type": "data_files"
}
]
@@ -71,7 +71,7 @@
"models": {
"data": [
{
- "id": "1004285720",
+ "id": "1004285589",
"type": "models"
}
]
@@ -79,7 +79,7 @@
"sops": {
"data": [
{
- "id": "1055250745",
+ "id": "1055250491",
"type": "sops"
}
]
@@ -87,7 +87,7 @@
"publications": {
"data": [
{
- "id": "165",
+ "id": "303",
"type": "publications"
}
]
@@ -95,7 +95,7 @@
"presentations": {
"data": [
{
- "id": "78",
+ "id": "118",
"type": "presentations"
}
]
@@ -103,7 +103,7 @@
"events": {
"data": [
{
- "id": "1025618735",
+ "id": "1025618752",
"type": "events"
}
]
@@ -111,7 +111,7 @@
"documents": {
"data": [
{
- "id": "211",
+ "id": "267",
"type": "documents"
}
]
@@ -119,7 +119,7 @@
"workflows": {
"data": [
{
- "id": "218",
+ "id": "183",
"type": "workflows"
}
]
@@ -127,21 +127,21 @@
"collections": {
"data": [
{
- "id": "29",
+ "id": "103",
"type": "collections"
}
]
}
},
"links": {
- "self": "/people/1039992246"
+ "self": "/people/1039988361"
},
"meta": {
- "created": "2022-10-26T11:44:30.000Z",
- "modified": "2022-10-26T11:44:30.000Z",
+ "created": "2024-06-20T12:38:46.000Z",
+ "modified": "2024-06-20T12:38:46.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "7a421450-3751-013b-356e-000c29a94011"
+ "uuid": "f5c5aed0-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/presentationPatch.json b/public/api/examples/presentationPatch.json
index de26625606..813c00464d 100644
--- a/public/api/examples/presentationPatch.json
+++ b/public/api/examples/presentationPatch.json
@@ -1,7 +1,7 @@
{
"data": {
"type": "presentations",
- "id": "12",
+ "id": "85",
"attributes": {
"title": "A Maximally Patched Presentation",
"description": "Presenting the research about the thing",
@@ -17,7 +17,7 @@
"permissions": [
{
"resource": {
- "id": "289",
+ "id": "1022250826",
"type": "projects"
},
"access": "edit"
@@ -29,7 +29,7 @@
"creators": {
"data": [
{
- "id": "278",
+ "id": "1039986716",
"type": "people"
}
]
@@ -37,7 +37,7 @@
"projects": {
"data": [
{
- "id": "289",
+ "id": "1022250826",
"type": "projects"
}
]
@@ -45,7 +45,7 @@
"publications": {
"data": [
{
- "id": "18",
+ "id": "157",
"type": "publications"
}
]
@@ -53,7 +53,7 @@
"events": {
"data": [
{
- "id": "10",
+ "id": "1025618684",
"type": "events"
}
]
@@ -61,7 +61,7 @@
"workflows": {
"data": [
{
- "id": "20",
+ "id": "99",
"type": "workflows"
}
]
diff --git a/public/api/examples/presentationPatchResponse.json b/public/api/examples/presentationPatchResponse.json
index c03539c2da..0d0d7d741a 100644
--- a/public/api/examples/presentationPatchResponse.json
+++ b/public/api/examples/presentationPatchResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "12",
+ "id": "85",
"type": "presentations",
"attributes": {
"policy": {
@@ -8,7 +8,7 @@
"permissions": [
{
"resource": {
- "id": "289",
+ "id": "1022250826",
"type": "projects"
},
"access": "edit"
@@ -31,30 +31,30 @@
{
"version": 1,
"revision_comments": null,
- "url": "http://localhost:3000/presentations/12?version=1"
+ "url": "http://localhost:3000/presentations/85?version=1"
}
],
"version": 1,
"revision_comments": null,
- "created_at": "2022-06-07T14:13:04.000Z",
- "updated_at": "2022-06-07T14:13:04.000Z",
+ "created_at": "2024-06-20T12:34:57.000Z",
+ "updated_at": "2024-06-20T12:34:57.000Z",
"content_blobs": [
{
"original_filename": "test.pdf",
"url": null,
- "md5sum": "a922da633a99ac8d8a969fee40348450",
- "sha1sum": "0ca4731e79fbd6525770dcf68e62a35a4581ebd5",
+ "md5sum": "df30f9f1a71be8ee7532b1fb1e917a96",
+ "sha1sum": "72cfabbd17e39311f4bc9e22a09f965bd16cd0c6",
"content_type": "application/pdf",
- "link": "http://localhost:3000/presentations/12/content_blobs/121",
- "size": 9
+ "link": "http://localhost:3000/presentations/85/content_blobs/1050452605",
+ "size": 10
}
],
"creators": [
{
- "profile": "/people/278",
+ "profile": "/people/1039986716",
"family_name": "Last",
- "given_name": "Person228",
- "affiliation": "An Institution: 280",
+ "given_name": "Person1922",
+ "affiliation": "An Institution: 2357",
"orcid": null
}
],
@@ -64,7 +64,7 @@
"creators": {
"data": [
{
- "id": "278",
+ "id": "1039986716",
"type": "people"
}
]
@@ -72,7 +72,7 @@
"submitter": {
"data": [
{
- "id": "277",
+ "id": "1039986715",
"type": "people"
}
]
@@ -80,11 +80,11 @@
"people": {
"data": [
{
- "id": "277",
+ "id": "1039986715",
"type": "people"
},
{
- "id": "278",
+ "id": "1039986716",
"type": "people"
}
]
@@ -92,7 +92,7 @@
"projects": {
"data": [
{
- "id": "289",
+ "id": "1022250826",
"type": "projects"
}
]
@@ -115,7 +115,7 @@
"publications": {
"data": [
{
- "id": "18",
+ "id": "157",
"type": "publications"
}
]
@@ -123,7 +123,7 @@
"events": {
"data": [
{
- "id": "10",
+ "id": "1025618684",
"type": "events"
}
]
@@ -131,21 +131,21 @@
"workflows": {
"data": [
{
- "id": "20",
+ "id": "99",
"type": "workflows"
}
]
}
},
"links": {
- "self": "/presentations/12?version=1"
+ "self": "/presentations/85?version=1"
},
"meta": {
- "created": "2022-06-07T14:13:04.000Z",
- "modified": "2022-06-07T14:13:04.000Z",
+ "created": "2024-06-20T12:34:57.000Z",
+ "modified": "2024-06-20T12:34:57.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "deaca630-c899-013a-0f7e-0a81884ed284"
+ "uuid": "6d527fa0-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/presentationPost.json b/public/api/examples/presentationPost.json
index 7a8e609d4d..49eac7c0f2 100644
--- a/public/api/examples/presentationPost.json
+++ b/public/api/examples/presentationPost.json
@@ -21,7 +21,7 @@
"permissions": [
{
"resource": {
- "id": "254",
+ "id": "1022250791",
"type": "projects"
},
"access": "edit"
@@ -33,7 +33,7 @@
"creators": {
"data": [
{
- "id": "239",
+ "id": "1039986677",
"type": "people"
}
]
@@ -41,7 +41,7 @@
"projects": {
"data": [
{
- "id": "254",
+ "id": "1022250791",
"type": "projects"
}
]
@@ -49,7 +49,7 @@
"publications": {
"data": [
{
- "id": "13",
+ "id": "152",
"type": "publications"
}
]
@@ -57,7 +57,7 @@
"events": {
"data": [
{
- "id": "5",
+ "id": "1025618679",
"type": "events"
}
]
@@ -65,7 +65,7 @@
"workflows": {
"data": [
{
- "id": "15",
+ "id": "94",
"type": "workflows"
}
]
diff --git a/public/api/examples/presentationPostResponse.json b/public/api/examples/presentationPostResponse.json
index 0e439ae7a2..265daf5e49 100644
--- a/public/api/examples/presentationPostResponse.json
+++ b/public/api/examples/presentationPostResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "6",
+ "id": "79",
"type": "presentations",
"attributes": {
"policy": {
@@ -8,7 +8,7 @@
"permissions": [
{
"resource": {
- "id": "254",
+ "id": "1022250791",
"type": "projects"
},
"access": "edit"
@@ -30,13 +30,13 @@
{
"version": 1,
"revision_comments": null,
- "url": "http://localhost:3000/presentations/6?version=1"
+ "url": "http://localhost:3000/presentations/79?version=1"
}
],
"version": 1,
"revision_comments": null,
- "created_at": "2022-06-07T14:12:59.000Z",
- "updated_at": "2022-06-07T14:12:59.000Z",
+ "created_at": "2024-06-20T12:34:53.000Z",
+ "updated_at": "2024-06-20T12:34:53.000Z",
"content_blobs": [
{
"original_filename": "a_pdf_file.pdf",
@@ -44,16 +44,16 @@
"md5sum": null,
"sha1sum": null,
"content_type": "application/pdf",
- "link": "http://localhost:3000/presentations/6/content_blobs/109",
+ "link": "http://localhost:3000/presentations/79/content_blobs/1050452595",
"size": null
}
],
"creators": [
{
- "profile": "/people/239",
+ "profile": "/people/1039986677",
"family_name": "Last",
- "given_name": "Person194",
- "affiliation": "An Institution: 241",
+ "given_name": "Person1888",
+ "affiliation": "An Institution: 2318",
"orcid": null
}
],
@@ -63,7 +63,7 @@
"creators": {
"data": [
{
- "id": "239",
+ "id": "1039986677",
"type": "people"
}
]
@@ -71,7 +71,7 @@
"submitter": {
"data": [
{
- "id": "238",
+ "id": "1039986676",
"type": "people"
}
]
@@ -79,11 +79,11 @@
"people": {
"data": [
{
- "id": "238",
+ "id": "1039986676",
"type": "people"
},
{
- "id": "239",
+ "id": "1039986677",
"type": "people"
}
]
@@ -91,7 +91,7 @@
"projects": {
"data": [
{
- "id": "254",
+ "id": "1022250791",
"type": "projects"
}
]
@@ -114,7 +114,7 @@
"publications": {
"data": [
{
- "id": "13",
+ "id": "152",
"type": "publications"
}
]
@@ -122,7 +122,7 @@
"events": {
"data": [
{
- "id": "5",
+ "id": "1025618679",
"type": "events"
}
]
@@ -130,21 +130,21 @@
"workflows": {
"data": [
{
- "id": "15",
+ "id": "94",
"type": "workflows"
}
]
}
},
"links": {
- "self": "/presentations/6?version=1"
+ "self": "/presentations/79?version=1"
},
"meta": {
- "created": "2022-06-07T14:12:59.000Z",
- "modified": "2022-06-07T14:12:59.000Z",
+ "created": "2024-06-20T12:34:53.000Z",
+ "modified": "2024-06-20T12:34:53.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "dbeae7a0-c899-013a-0f7e-0a81884ed284"
+ "uuid": "6af879c0-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/presentationResponse.json b/public/api/examples/presentationResponse.json
index c540985606..e02101f104 100644
--- a/public/api/examples/presentationResponse.json
+++ b/public/api/examples/presentationResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "11",
+ "id": "84",
"type": "presentations",
"attributes": {
"policy": {
@@ -11,7 +11,7 @@
},
"discussion_links": [
{
- "id": "18",
+ "id": "167",
"label": "Slack",
"url": "http://www.slack.com/"
}
@@ -31,13 +31,13 @@
{
"version": 1,
"revision_comments": null,
- "url": "http://localhost:3000/presentations/11?version=1"
+ "url": "http://localhost:3000/presentations/84?version=1"
}
],
"version": 1,
"revision_comments": null,
- "created_at": "2022-06-07T14:13:03.000Z",
- "updated_at": "2022-06-07T14:13:03.000Z",
+ "created_at": "2024-06-20T12:34:56.000Z",
+ "updated_at": "2024-06-20T12:34:56.000Z",
"content_blobs": [
{
"original_filename": "test.pdf",
@@ -45,13 +45,13 @@
"md5sum": "726de0a3f94d65056b909b9736e10349",
"sha1sum": "fbcc0dee4b5415de4c82ef5b137d8231fec1331b",
"content_type": "application/pdf",
- "link": "http://localhost:3000/presentations/11/content_blobs/120",
+ "link": "http://localhost:3000/presentations/84/content_blobs/1050452604",
"size": 8
}
],
"creators": [
{
- "profile": "/people/274",
+ "profile": "/people/1039986712",
"family_name": "One",
"given_name": "Some",
"affiliation": "University of Somewhere",
@@ -64,7 +64,7 @@
"creators": {
"data": [
{
- "id": "274",
+ "id": "1039986712",
"type": "people"
}
]
@@ -72,7 +72,7 @@
"submitter": {
"data": [
{
- "id": "275",
+ "id": "1039986713",
"type": "people"
}
]
@@ -80,11 +80,11 @@
"people": {
"data": [
{
- "id": "274",
+ "id": "1039986712",
"type": "people"
},
{
- "id": "275",
+ "id": "1039986713",
"type": "people"
}
]
@@ -92,7 +92,7 @@
"projects": {
"data": [
{
- "id": "287",
+ "id": "1022250824",
"type": "projects"
}
]
@@ -100,7 +100,7 @@
"investigations": {
"data": [
{
- "id": "40",
+ "id": "973654808",
"type": "investigations"
}
]
@@ -108,7 +108,7 @@
"studies": {
"data": [
{
- "id": "38",
+ "id": "1060384866",
"type": "studies"
}
]
@@ -116,7 +116,7 @@
"assays": {
"data": [
{
- "id": "36",
+ "id": "1035386654",
"type": "assays"
}
]
@@ -124,7 +124,7 @@
"publications": {
"data": [
{
- "id": "17",
+ "id": "156",
"type": "publications"
}
]
@@ -132,7 +132,7 @@
"events": {
"data": [
{
- "id": "9",
+ "id": "1025618683",
"type": "events"
}
]
@@ -140,21 +140,21 @@
"workflows": {
"data": [
{
- "id": "19",
+ "id": "98",
"type": "workflows"
}
]
}
},
"links": {
- "self": "/presentations/11?version=1"
+ "self": "/presentations/84?version=1"
},
"meta": {
- "created": "2022-06-07T14:13:03.000Z",
- "modified": "2022-06-07T14:13:03.000Z",
+ "created": "2024-06-20T12:34:56.000Z",
+ "modified": "2024-06-20T12:34:56.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "de40d2f0-c899-013a-0f7e-0a81884ed284"
+ "uuid": "6cf09130-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/programmePatch.json b/public/api/examples/programmePatch.json
index 07b41fd5c0..f60ff03dae 100644
--- a/public/api/examples/programmePatch.json
+++ b/public/api/examples/programmePatch.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "1296",
+ "id": "42",
"type": "programmes",
"attributes": {
"title": "Changed title",
@@ -15,7 +15,7 @@
"projects": {
"data": [
{
- "id": "7653",
+ "id": "364",
"type": "projects"
}
]
@@ -23,7 +23,7 @@
"administrators": {
"data": [
{
- "id": "5588",
+ "id": "301",
"type": "people"
}
]
@@ -31,7 +31,7 @@
"people": {
"data": [
{
- "id": "5588",
+ "id": "301",
"type": "people"
}
]
diff --git a/public/api/examples/programmePatchResponse.json b/public/api/examples/programmePatchResponse.json
index 5e6383467e..7edcc269d0 100644
--- a/public/api/examples/programmePatchResponse.json
+++ b/public/api/examples/programmePatchResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "1296",
+ "id": "42",
"type": "programmes",
"attributes": {
"discussion_links": [
@@ -19,7 +19,7 @@
"administrators": {
"data": [
{
- "id": "5588",
+ "id": "301",
"type": "people"
}
]
@@ -27,7 +27,7 @@
"people": {
"data": [
{
- "id": "5588",
+ "id": "301",
"type": "people"
}
]
@@ -35,7 +35,7 @@
"projects": {
"data": [
{
- "id": "7653",
+ "id": "364",
"type": "projects"
}
]
@@ -107,14 +107,14 @@
}
},
"links": {
- "self": "/programmes/1296"
+ "self": "/programmes/42"
},
"meta": {
- "created": "2023-03-28T14:57:01.000Z",
- "modified": "2023-03-28T14:57:01.000Z",
+ "created": "2024-06-20T12:29:32.000Z",
+ "modified": "2024-06-20T12:29:32.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "b8016460-afa6-013b-c76a-2c91a17e7bb9"
+ "uuid": "abc65c50-112e-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/programmePost.json b/public/api/examples/programmePost.json
index a16f03954c..b18ae32ebe 100644
--- a/public/api/examples/programmePost.json
+++ b/public/api/examples/programmePost.json
@@ -15,7 +15,7 @@
"projects": {
"data": [
{
- "id": "7564",
+ "id": "275",
"type": "projects"
}
]
@@ -23,11 +23,11 @@
"administrators": {
"data": [
{
- "id": "5510",
+ "id": "223",
"type": "people"
},
{
- "id": "5511",
+ "id": "224",
"type": "people"
}
]
diff --git a/public/api/examples/programmePostResponse.json b/public/api/examples/programmePostResponse.json
index e413d7b659..e26d1d523e 100644
--- a/public/api/examples/programmePostResponse.json
+++ b/public/api/examples/programmePostResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "1288",
+ "id": "34",
"type": "programmes",
"attributes": {
"discussion_links": [
@@ -20,11 +20,11 @@
"administrators": {
"data": [
{
- "id": "5510",
+ "id": "223",
"type": "people"
},
{
- "id": "5511",
+ "id": "224",
"type": "people"
}
]
@@ -32,11 +32,11 @@
"people": {
"data": [
{
- "id": "5510",
+ "id": "223",
"type": "people"
},
{
- "id": "5511",
+ "id": "224",
"type": "people"
}
]
@@ -44,7 +44,7 @@
"projects": {
"data": [
{
- "id": "7564",
+ "id": "275",
"type": "projects"
}
]
@@ -116,14 +116,14 @@
}
},
"links": {
- "self": "/programmes/1288"
+ "self": "/programmes/34"
},
"meta": {
- "created": "2023-03-28T14:56:53.000Z",
- "modified": "2023-03-28T14:56:53.000Z",
+ "created": "2024-06-20T12:29:22.000Z",
+ "modified": "2024-06-20T12:29:22.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "b37f0780-afa6-013b-c76a-2c91a17e7bb9"
+ "uuid": "a56119c0-112e-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/programmeResponse.json b/public/api/examples/programmeResponse.json
index 4410e43f65..021fd757e1 100644
--- a/public/api/examples/programmeResponse.json
+++ b/public/api/examples/programmeResponse.json
@@ -1,11 +1,11 @@
{
"data": {
- "id": "1295",
+ "id": "41",
"type": "programmes",
"attributes": {
"discussion_links": [
{
- "id": "410",
+ "id": "20",
"label": "Slack",
"url": "http://www.slack.com/"
}
@@ -23,7 +23,7 @@
"administrators": {
"data": [
{
- "id": "5585",
+ "id": "298",
"type": "people"
}
]
@@ -31,11 +31,11 @@
"people": {
"data": [
{
- "id": "5584",
+ "id": "297",
"type": "people"
},
{
- "id": "5585",
+ "id": "298",
"type": "people"
}
]
@@ -43,7 +43,7 @@
"projects": {
"data": [
{
- "id": "7648",
+ "id": "359",
"type": "projects"
}
]
@@ -51,7 +51,7 @@
"institutions": {
"data": [
{
- "id": "5584",
+ "id": "297",
"type": "institutions"
}
]
@@ -59,7 +59,7 @@
"investigations": {
"data": [
{
- "id": "656",
+ "id": "32",
"type": "investigations"
}
]
@@ -67,7 +67,7 @@
"studies": {
"data": [
{
- "id": "574",
+ "id": "28",
"type": "studies"
}
]
@@ -75,7 +75,7 @@
"assays": {
"data": [
{
- "id": "492",
+ "id": "24",
"type": "assays"
}
]
@@ -83,7 +83,7 @@
"data_files": {
"data": [
{
- "id": "164",
+ "id": "16",
"type": "data_files"
}
]
@@ -91,7 +91,7 @@
"models": {
"data": [
{
- "id": "656",
+ "id": "19",
"type": "models"
}
]
@@ -99,7 +99,7 @@
"sops": {
"data": [
{
- "id": "164",
+ "id": "16",
"type": "sops"
}
]
@@ -107,7 +107,7 @@
"publications": {
"data": [
{
- "id": "164",
+ "id": "8",
"type": "publications"
}
]
@@ -115,7 +115,7 @@
"presentations": {
"data": [
{
- "id": "82",
+ "id": "11",
"type": "presentations"
}
]
@@ -123,7 +123,7 @@
"events": {
"data": [
{
- "id": "82",
+ "id": "11",
"type": "events"
}
]
@@ -131,7 +131,7 @@
"documents": {
"data": [
{
- "id": "164",
+ "id": "8",
"type": "documents"
}
]
@@ -139,7 +139,7 @@
"workflows": {
"data": [
{
- "id": "82",
+ "id": "4",
"type": "workflows"
}
]
@@ -151,14 +151,14 @@
}
},
"links": {
- "self": "/programmes/1295"
+ "self": "/programmes/41"
},
"meta": {
- "created": "2023-03-28T14:57:00.000Z",
- "modified": "2023-03-28T14:57:00.000Z",
+ "created": "2024-06-20T12:29:32.000Z",
+ "modified": "2024-06-20T12:29:32.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "b7d5d740-afa6-013b-c76a-2c91a17e7bb9"
+ "uuid": "ab8c34d0-112e-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/programmesResponse.json b/public/api/examples/programmesResponse.json
index b6e1fe975a..b0b6a27252 100644
--- a/public/api/examples/programmesResponse.json
+++ b/public/api/examples/programmesResponse.json
@@ -1,33 +1,33 @@
{
"data": [
{
- "id": "1292",
+ "id": "38",
"type": "programmes",
"attributes": {
"title": "A Maximal Programme"
},
"links": {
- "self": "/programmes/1292"
+ "self": "/programmes/38"
}
},
{
- "id": "1291",
+ "id": "36",
"type": "programmes",
"attributes": {
- "title": "A Programme: 28"
+ "title": "A Minimal Programme"
},
"links": {
- "self": "/programmes/1291"
+ "self": "/programmes/36"
}
},
{
- "id": "1290",
+ "id": "37",
"type": "programmes",
"attributes": {
- "title": "A Minimal Programme"
+ "title": "A Programme: 28"
},
"links": {
- "self": "/programmes/1290"
+ "self": "/programmes/37"
}
}
],
diff --git a/public/api/examples/projectPatch.json b/public/api/examples/projectPatch.json
index eda94f5199..490fa1c426 100644
--- a/public/api/examples/projectPatch.json
+++ b/public/api/examples/projectPatch.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "15790",
+ "id": "646",
"type": "projects",
"attributes": {
"avatar": null,
@@ -14,21 +14,21 @@
"permissions": [
{
"resource": {
- "id": "13324",
+ "id": "513",
"type": "people"
},
"access": "manage"
},
{
"resource": {
- "id": "15790",
+ "id": "646",
"type": "projects"
},
"access": "download"
},
{
"resource": {
- "id": "13808",
+ "id": "540",
"type": "institutions"
},
"access": "view"
@@ -36,7 +36,7 @@
]
},
"extended_attributes": {
- "extended_metadata_type_id": "2662",
+ "extended_metadata_type_id": "140",
"attribute_map": {
"dad": {
"first_name": "john",
@@ -73,7 +73,7 @@
"programmes": {
"data": [
{
- "id": "507",
+ "id": "71",
"type": "programmes"
}
]
@@ -81,7 +81,7 @@
"organisms": {
"data": [
{
- "id": "737",
+ "id": "33",
"type": "organisms"
}
]
diff --git a/public/api/examples/projectPatchResponse.json b/public/api/examples/projectPatchResponse.json
index b8b5bd3f66..91af4f3d71 100644
--- a/public/api/examples/projectPatchResponse.json
+++ b/public/api/examples/projectPatchResponse.json
@@ -1,13 +1,13 @@
{
"data": {
- "id": "15790",
+ "id": "646",
"type": "projects",
"attributes": {
"discussion_links": [
],
"extended_attributes": {
- "extended_metadata_type_id": "2662",
+ "extended_metadata_type_id": "140",
"attribute_map": {
"dad": {
"first_name": "john",
@@ -42,21 +42,21 @@
"permissions": [
{
"resource": {
- "id": "13324",
+ "id": "513",
"type": "people"
},
"access": "manage"
},
{
"resource": {
- "id": "15790",
+ "id": "646",
"type": "projects"
},
"access": "download"
},
{
"resource": {
- "id": "13808",
+ "id": "540",
"type": "institutions"
},
"access": "view"
@@ -102,7 +102,7 @@
"organisms": {
"data": [
{
- "id": "737",
+ "id": "33",
"type": "organisms"
}
]
@@ -125,7 +125,7 @@
"programmes": {
"data": [
{
- "id": "507",
+ "id": "71",
"type": "programmes"
}
]
@@ -202,14 +202,14 @@
}
},
"links": {
- "self": "/projects/15790"
+ "self": "/projects/646"
},
"meta": {
- "created": "2024-03-15T12:40:36.000Z",
- "modified": "2024-03-15T12:40:36.000Z",
+ "created": "2024-06-20T12:30:04.000Z",
+ "modified": "2024-06-20T12:30:04.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "253ae910-c4f7-013c-642b-7efdca78d793"
+ "uuid": "bea4ec10-112e-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/projectPost.json b/public/api/examples/projectPost.json
index 1b060335b3..318efb9717 100644
--- a/public/api/examples/projectPost.json
+++ b/public/api/examples/projectPost.json
@@ -13,21 +13,21 @@
"permissions": [
{
"resource": {
- "id": "13321",
+ "id": "440",
"type": "people"
},
"access": "manage"
},
{
"resource": {
- "id": "15784",
+ "id": "559",
"type": "projects"
},
"access": "download"
},
{
"resource": {
- "id": "13804",
+ "id": "464",
"type": "institutions"
},
"access": "view"
@@ -35,7 +35,7 @@
]
},
"extended_attributes": {
- "extended_metadata_type_id": "2658",
+ "extended_metadata_type_id": "118",
"attribute_map": {
"dad": {
"first_name": "john",
@@ -72,7 +72,7 @@
"programmes": {
"data": [
{
- "id": "506",
+ "id": "66",
"type": "programmes"
}
]
@@ -80,7 +80,7 @@
"organisms": {
"data": [
{
- "id": "736",
+ "id": "28",
"type": "organisms"
}
]
diff --git a/public/api/examples/projectPostResponse.json b/public/api/examples/projectPostResponse.json
index e6ccd4e633..0b16b767d4 100644
--- a/public/api/examples/projectPostResponse.json
+++ b/public/api/examples/projectPostResponse.json
@@ -1,13 +1,13 @@
{
"data": {
- "id": "15786",
+ "id": "561",
"type": "projects",
"attributes": {
"discussion_links": [
],
"extended_attributes": {
- "extended_metadata_type_id": "2658",
+ "extended_metadata_type_id": "118",
"attribute_map": {
"dad": {
"first_name": "john",
@@ -42,21 +42,21 @@
"permissions": [
{
"resource": {
- "id": "13321",
+ "id": "440",
"type": "people"
},
"access": "manage"
},
{
"resource": {
- "id": "15784",
+ "id": "559",
"type": "projects"
},
"access": "download"
},
{
"resource": {
- "id": "13804",
+ "id": "464",
"type": "institutions"
},
"access": "view"
@@ -102,7 +102,7 @@
"organisms": {
"data": [
{
- "id": "736",
+ "id": "28",
"type": "organisms"
}
]
@@ -125,7 +125,7 @@
"programmes": {
"data": [
{
- "id": "506",
+ "id": "66",
"type": "programmes"
}
]
@@ -202,14 +202,14 @@
}
},
"links": {
- "self": "/projects/15786"
+ "self": "/projects/561"
},
"meta": {
- "created": "2024-03-15T12:40:36.000Z",
- "modified": "2024-03-15T12:40:36.000Z",
+ "created": "2024-06-20T12:29:54.000Z",
+ "modified": "2024-06-20T12:29:54.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "2520d160-c4f7-013c-642b-7efdca78d793"
+ "uuid": "b87dd8d0-112e-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/projectResponse.json b/public/api/examples/projectResponse.json
index 28df2bde2a..2d52dba2da 100644
--- a/public/api/examples/projectResponse.json
+++ b/public/api/examples/projectResponse.json
@@ -1,17 +1,17 @@
{
"data": {
- "id": "14075",
+ "id": "642",
"type": "projects",
"attributes": {
"discussion_links": [
{
- "id": "639",
+ "id": "36",
"label": "Slack",
"url": "http://www.slack.com/"
}
],
"extended_attributes": {
- "extended_metadata_type_id": "1824",
+ "extended_metadata_type_id": "135",
"attribute_map": {
"dad": {
"first_name": "john",
@@ -33,7 +33,7 @@
]
}
},
- "avatar": "/projects/14075/avatars/70",
+ "avatar": "/projects/642/avatars/8",
"title": "A Maximal Project",
"description": "A Taverna project",
"web_page": "http://www.taverna.org.uk",
@@ -49,8 +49,8 @@
},
"members": [
{
- "person_id": "12085",
- "institution_id": "12386"
+ "person_id": "510",
+ "institution_id": "536"
}
],
"use_default_policy": true,
@@ -99,7 +99,7 @@
"people": {
"data": [
{
- "id": "12085",
+ "id": "510",
"type": "people"
}
]
@@ -107,7 +107,7 @@
"institutions": {
"data": [
{
- "id": "12386",
+ "id": "536",
"type": "institutions"
}
]
@@ -115,7 +115,7 @@
"programmes": {
"data": [
{
- "id": "314",
+ "id": "70",
"type": "programmes"
}
]
@@ -123,7 +123,7 @@
"investigations": {
"data": [
{
- "id": "4396",
+ "id": "64",
"type": "investigations"
}
]
@@ -131,7 +131,7 @@
"studies": {
"data": [
{
- "id": "3327",
+ "id": "56",
"type": "studies"
}
]
@@ -139,7 +139,7 @@
"assays": {
"data": [
{
- "id": "1696",
+ "id": "48",
"type": "assays"
}
]
@@ -147,7 +147,7 @@
"data_files": {
"data": [
{
- "id": "456",
+ "id": "24",
"type": "data_files"
}
]
@@ -165,7 +165,7 @@
"models": {
"data": [
{
- "id": "611",
+ "id": "31",
"type": "models"
}
]
@@ -173,7 +173,7 @@
"sops": {
"data": [
{
- "id": "438",
+ "id": "24",
"type": "sops"
}
]
@@ -181,7 +181,7 @@
"publications": {
"data": [
{
- "id": "1597",
+ "id": "16",
"type": "publications"
}
]
@@ -189,7 +189,7 @@
"presentations": {
"data": [
{
- "id": "155",
+ "id": "15",
"type": "presentations"
}
]
@@ -197,7 +197,7 @@
"events": {
"data": [
{
- "id": "184",
+ "id": "15",
"type": "events"
}
]
@@ -205,7 +205,7 @@
"documents": {
"data": [
{
- "id": "508",
+ "id": "16",
"type": "documents"
}
]
@@ -213,7 +213,7 @@
"workflows": {
"data": [
{
- "id": "244",
+ "id": "8",
"type": "workflows"
}
]
@@ -221,21 +221,21 @@
"collections": {
"data": [
{
- "id": "122",
+ "id": "8",
"type": "collections"
}
]
}
},
"links": {
- "self": "/projects/14075"
+ "self": "/projects/642"
},
"meta": {
- "created": "2024-03-15T12:19:36.000Z",
- "modified": "2024-03-15T12:19:36.000Z",
+ "created": "2024-06-20T12:30:03.000Z",
+ "modified": "2024-06-20T12:30:04.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "3627d4b0-c4f4-013c-641e-7efdca78d793"
+ "uuid": "be5ee920-112e-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/projectsResponse.json b/public/api/examples/projectsResponse.json
index 6066b016fd..acba601509 100644
--- a/public/api/examples/projectsResponse.json
+++ b/public/api/examples/projectsResponse.json
@@ -1,363 +1,363 @@
{
"data": [
{
- "id": "13608",
+ "id": "599",
"type": "projects",
"attributes": {
- "title": "A Project: -222"
+ "title": "A Project: -587"
},
"links": {
- "self": "/projects/13608"
+ "self": "/projects/599"
}
},
{
- "id": "13609",
+ "id": "600",
"type": "projects",
"attributes": {
- "title": "A Project: -223"
+ "title": "A Project: -588"
},
"links": {
- "self": "/projects/13609"
+ "self": "/projects/600"
}
},
{
- "id": "13610",
+ "id": "601",
"type": "projects",
"attributes": {
- "title": "A Project: -224"
+ "title": "A Project: -589"
},
"links": {
- "self": "/projects/13610"
+ "self": "/projects/601"
}
},
{
- "id": "13611",
+ "id": "602",
"type": "projects",
"attributes": {
- "title": "A Project: -225"
+ "title": "A Maximal Project"
},
"links": {
- "self": "/projects/13611"
+ "self": "/projects/602"
}
},
{
- "id": "13612",
+ "id": "591",
"type": "projects",
"attributes": {
- "title": "A Project: -226"
+ "title": "A Project: -579"
},
"links": {
- "self": "/projects/13612"
+ "self": "/projects/591"
}
},
{
- "id": "13613",
+ "id": "592",
"type": "projects",
"attributes": {
- "title": "A Project: -227"
+ "title": "A Project: -580"
},
"links": {
- "self": "/projects/13613"
+ "self": "/projects/592"
}
},
{
- "id": "13614",
+ "id": "593",
"type": "projects",
"attributes": {
- "title": "A Project: -228"
+ "title": "A Project: -581"
},
"links": {
- "self": "/projects/13614"
+ "self": "/projects/593"
}
},
{
- "id": "13615",
+ "id": "594",
"type": "projects",
"attributes": {
- "title": "A Maximal Project"
+ "title": "A Project: -582"
},
"links": {
- "self": "/projects/13615"
+ "self": "/projects/594"
}
},
{
- "id": "13594",
+ "id": "595",
"type": "projects",
"attributes": {
- "title": "A Project: -208"
+ "title": "A Project: -583"
},
"links": {
- "self": "/projects/13594"
+ "self": "/projects/595"
}
},
{
- "id": "13595",
+ "id": "596",
"type": "projects",
"attributes": {
- "title": "A Project: -209"
+ "title": "A Project: -584"
},
"links": {
- "self": "/projects/13595"
+ "self": "/projects/596"
}
},
{
- "id": "13596",
+ "id": "597",
"type": "projects",
"attributes": {
- "title": "A Project: -210"
+ "title": "A Project: -585"
},
"links": {
- "self": "/projects/13596"
+ "self": "/projects/597"
}
},
{
- "id": "13597",
+ "id": "598",
"type": "projects",
"attributes": {
- "title": "A Project: -211"
+ "title": "A Project: -586"
},
"links": {
- "self": "/projects/13597"
+ "self": "/projects/598"
}
},
{
- "id": "13598",
+ "id": "583",
"type": "projects",
"attributes": {
- "title": "A Project: -212"
+ "title": "A Project: -571"
},
"links": {
- "self": "/projects/13598"
+ "self": "/projects/583"
}
},
{
- "id": "13599",
+ "id": "584",
"type": "projects",
"attributes": {
- "title": "A Project: -213"
+ "title": "A Project: -572"
},
"links": {
- "self": "/projects/13599"
+ "self": "/projects/584"
}
},
{
- "id": "13600",
+ "id": "585",
"type": "projects",
"attributes": {
- "title": "A Project: -214"
+ "title": "A Project: -573"
},
"links": {
- "self": "/projects/13600"
+ "self": "/projects/585"
}
},
{
- "id": "13601",
+ "id": "586",
"type": "projects",
"attributes": {
- "title": "A Project: -215"
+ "title": "A Project: -574"
},
"links": {
- "self": "/projects/13601"
+ "self": "/projects/586"
}
},
{
- "id": "13602",
+ "id": "587",
"type": "projects",
"attributes": {
- "title": "A Project: -216"
+ "title": "A Project: -575"
},
"links": {
- "self": "/projects/13602"
+ "self": "/projects/587"
}
},
{
- "id": "13603",
+ "id": "588",
"type": "projects",
"attributes": {
- "title": "A Project: -217"
+ "title": "A Project: -576"
},
"links": {
- "self": "/projects/13603"
+ "self": "/projects/588"
}
},
{
- "id": "13604",
+ "id": "589",
"type": "projects",
"attributes": {
- "title": "A Project: -218"
+ "title": "A Project: -577"
},
"links": {
- "self": "/projects/13604"
+ "self": "/projects/589"
}
},
{
- "id": "13605",
+ "id": "590",
"type": "projects",
"attributes": {
- "title": "A Project: -219"
+ "title": "A Project: -578"
},
"links": {
- "self": "/projects/13605"
+ "self": "/projects/590"
}
},
{
- "id": "13606",
+ "id": "577",
"type": "projects",
"attributes": {
- "title": "A Project: -220"
+ "title": "A Project: -565"
},
"links": {
- "self": "/projects/13606"
+ "self": "/projects/577"
}
},
{
- "id": "13607",
+ "id": "578",
"type": "projects",
"attributes": {
- "title": "A Project: -221"
+ "title": "A Project: -566"
},
"links": {
- "self": "/projects/13607"
+ "self": "/projects/578"
}
},
{
- "id": "13580",
+ "id": "579",
"type": "projects",
"attributes": {
- "title": "A Minimal Project"
+ "title": "A Project: -567"
},
"links": {
- "self": "/projects/13580"
+ "self": "/projects/579"
}
},
{
- "id": "13581",
+ "id": "580",
"type": "projects",
"attributes": {
- "title": "A Project: -195"
+ "title": "A Project: -568"
},
"links": {
- "self": "/projects/13581"
+ "self": "/projects/580"
}
},
{
- "id": "13582",
+ "id": "581",
"type": "projects",
"attributes": {
- "title": "A Project: -196"
+ "title": "A Project: -569"
},
"links": {
- "self": "/projects/13582"
+ "self": "/projects/581"
}
},
{
- "id": "13583",
+ "id": "582",
"type": "projects",
"attributes": {
- "title": "A Project: -197"
+ "title": "A Project: -570"
},
"links": {
- "self": "/projects/13583"
+ "self": "/projects/582"
}
},
{
- "id": "13584",
+ "id": "570",
"type": "projects",
"attributes": {
- "title": "A Project: -198"
+ "title": "A Project: -558"
},
"links": {
- "self": "/projects/13584"
+ "self": "/projects/570"
}
},
{
- "id": "13585",
+ "id": "571",
"type": "projects",
"attributes": {
- "title": "A Project: -199"
+ "title": "A Project: -559"
},
"links": {
- "self": "/projects/13585"
+ "self": "/projects/571"
}
},
{
- "id": "13586",
+ "id": "572",
"type": "projects",
"attributes": {
- "title": "A Project: -200"
+ "title": "A Project: -560"
},
"links": {
- "self": "/projects/13586"
+ "self": "/projects/572"
}
},
{
- "id": "13587",
+ "id": "573",
"type": "projects",
"attributes": {
- "title": "A Project: -201"
+ "title": "A Project: -561"
},
"links": {
- "self": "/projects/13587"
+ "self": "/projects/573"
}
},
{
- "id": "13588",
+ "id": "574",
"type": "projects",
"attributes": {
- "title": "A Project: -202"
+ "title": "A Project: -562"
},
"links": {
- "self": "/projects/13588"
+ "self": "/projects/574"
}
},
{
- "id": "13589",
+ "id": "575",
"type": "projects",
"attributes": {
- "title": "A Project: -203"
+ "title": "A Project: -563"
},
"links": {
- "self": "/projects/13589"
+ "self": "/projects/575"
}
},
{
- "id": "13590",
+ "id": "576",
"type": "projects",
"attributes": {
- "title": "A Project: -204"
+ "title": "A Project: -564"
},
"links": {
- "self": "/projects/13590"
+ "self": "/projects/576"
}
},
{
- "id": "13591",
+ "id": "567",
"type": "projects",
"attributes": {
- "title": "A Project: -205"
+ "title": "A Minimal Project"
},
"links": {
- "self": "/projects/13591"
+ "self": "/projects/567"
}
},
{
- "id": "13592",
+ "id": "568",
"type": "projects",
"attributes": {
- "title": "A Project: -206"
+ "title": "A Project: -556"
},
"links": {
- "self": "/projects/13592"
+ "self": "/projects/568"
}
},
{
- "id": "13593",
+ "id": "569",
"type": "projects",
"attributes": {
- "title": "A Project: -207"
+ "title": "A Project: -557"
},
"links": {
- "self": "/projects/13593"
+ "self": "/projects/569"
}
}
],
diff --git a/public/api/examples/publicationResponse.json b/public/api/examples/publicationResponse.json
index cfb88ca0d1..1892e73661 100644
--- a/public/api/examples/publicationResponse.json
+++ b/public/api/examples/publicationResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "14",
+ "id": "209",
"type": "publications",
"attributes": {
"policy": {
@@ -11,14 +11,14 @@
},
"discussion_links": [
{
- "id": "7",
+ "id": "190",
"label": "Slack",
"url": "http://www.slack.com/"
}
],
"misc_links": [
{
- "id": "8",
+ "id": "191",
"label": "A link",
"url": "http://www.slack.com/"
}
@@ -32,14 +32,14 @@
{
"version": 1,
"revision_comments": null,
- "url": "http://localhost:3000/publications/14?version=1",
+ "url": "http://localhost:3000/publications/209?version=1",
"doi": "10.5072/abcd"
}
],
"version": 1,
"revision_comments": null,
- "created_at": "2022-09-09T15:53:35.000Z",
- "updated_at": "2022-09-09T15:53:35.000Z",
+ "created_at": "2024-06-20T12:36:11.000Z",
+ "updated_at": "2024-06-20T12:36:11.000Z",
"doi": "10.5072/abcd",
"content_blobs": [
{
@@ -48,7 +48,7 @@
"md5sum": "726de0a3f94d65056b909b9736e10349",
"sha1sum": "fbcc0dee4b5415de4c82ef5b137d8231fec1331b",
"content_type": "application/pdf",
- "link": "http://localhost:3000/publications/14/content_blobs/12",
+ "link": "http://localhost:3000/publications/209/content_blobs/1050452780",
"size": 8
}
],
@@ -81,7 +81,7 @@
"submitter": {
"data": [
{
- "id": "85",
+ "id": "1039987265",
"type": "people"
}
]
@@ -89,7 +89,7 @@
"people": {
"data": [
{
- "id": "85",
+ "id": "1039987265",
"type": "people"
}
]
@@ -97,7 +97,7 @@
"projects": {
"data": [
{
- "id": "92",
+ "id": "1022251332",
"type": "projects"
}
]
@@ -105,7 +105,7 @@
"investigations": {
"data": [
{
- "id": "12",
+ "id": "973654855",
"type": "investigations"
}
]
@@ -113,7 +113,7 @@
"studies": {
"data": [
{
- "id": "8",
+ "id": "1060384909",
"type": "studies"
}
]
@@ -121,7 +121,7 @@
"assays": {
"data": [
{
- "id": "4",
+ "id": "1035386693",
"type": "assays"
}
]
@@ -129,7 +129,7 @@
"data_files": {
"data": [
{
- "id": "4",
+ "id": "883654327",
"type": "data_files"
}
]
@@ -137,7 +137,7 @@
"models": {
"data": [
{
- "id": "12",
+ "id": "1004285499",
"type": "models"
}
]
@@ -145,7 +145,7 @@
"presentations": {
"data": [
{
- "id": "4",
+ "id": "89",
"type": "presentations"
}
]
@@ -153,7 +153,7 @@
"events": {
"data": [
{
- "id": "4",
+ "id": "1025618721",
"type": "events"
}
]
@@ -161,21 +161,21 @@
"workflows": {
"data": [
{
- "id": "4",
+ "id": "141",
"type": "workflows"
}
]
}
},
"links": {
- "self": "/publications/14?version=1"
+ "self": "/publications/209?version=1"
},
"meta": {
- "created": "2022-09-09T15:53:34.000Z",
- "modified": "2022-09-09T15:53:34.000Z",
+ "created": "2024-06-20T12:36:11.000Z",
+ "modified": "2024-06-20T12:36:11.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "7c27c030-1285-013b-1218-0a81884ed284"
+ "uuid": "99a5ba60-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/publicationsResponse.json b/public/api/examples/publicationsResponse.json
index 5a29d0caaf..c4892fc37c 100644
--- a/public/api/examples/publicationsResponse.json
+++ b/public/api/examples/publicationsResponse.json
@@ -1,23 +1,23 @@
{
"data": [
{
- "id": "12",
+ "id": "207",
"type": "publications",
"attributes": {
"title": "A Maximal Publication"
},
"links": {
- "self": "/publications/12"
+ "self": "/publications/207"
}
},
{
- "id": "11",
+ "id": "206",
"type": "publications",
"attributes": {
"title": "A Minimal Publication"
},
"links": {
- "self": "/publications/11"
+ "self": "/publications/206"
}
}
],
diff --git a/public/api/examples/sampleControlledVocabPatch.json b/public/api/examples/sampleControlledVocabPatch.json
index da157689e0..04e7116770 100644
--- a/public/api/examples/sampleControlledVocabPatch.json
+++ b/public/api/examples/sampleControlledVocabPatch.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "18",
+ "id": "303",
"type": "sample_controlled_vocabs",
"attributes": {
"title": "new title",
@@ -10,7 +10,7 @@
"short_name": "new short name",
"sample_controlled_vocab_terms_attributes": [
{
- "id": "17",
+ "id": "931",
"label": "new term label",
"iri": "new iri",
"parent_iri": "new parent_iri"
diff --git a/public/api/examples/sampleControlledVocabPatchResponse.json b/public/api/examples/sampleControlledVocabPatchResponse.json
index b02456a5a8..1f843eb873 100644
--- a/public/api/examples/sampleControlledVocabPatchResponse.json
+++ b/public/api/examples/sampleControlledVocabPatchResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "18",
+ "id": "303",
"type": "sample_controlled_vocabs",
"attributes": {
"title": "new title",
@@ -10,7 +10,7 @@
"short_name": "new short name",
"sample_controlled_vocab_terms_attributes": [
{
- "id": "17",
+ "id": "931",
"label": "new term label",
"iri": "new iri",
"parent_iri": "new parent_iri"
@@ -21,18 +21,18 @@
"sample_controlled_vocab_terms": {
"data": [
{
- "id": "17",
+ "id": "931",
"type": "sample_controlled_vocab_terms"
}
]
}
},
"links": {
- "self": "/sample_controlled_vocabs/18"
+ "self": "/sample_controlled_vocabs/303"
},
"meta": {
- "created": "2023-11-15T16:36:00.000Z",
- "modified": "2023-11-15T16:36:00.000Z",
+ "created": "2024-06-20T12:40:41.000Z",
+ "modified": "2024-06-20T12:40:41.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000"
}
diff --git a/public/api/examples/sampleControlledVocabPostResponse.json b/public/api/examples/sampleControlledVocabPostResponse.json
index e7fccd07f4..06fbc17612 100644
--- a/public/api/examples/sampleControlledVocabPostResponse.json
+++ b/public/api/examples/sampleControlledVocabPostResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "17",
+ "id": "302",
"type": "sample_controlled_vocabs",
"attributes": {
"title": "New Vocab Max",
@@ -10,7 +10,7 @@
"short_name": "short_name",
"sample_controlled_vocab_terms_attributes": [
{
- "id": "16",
+ "id": "930",
"label": "organism",
"iri": "http://some_iri",
"parent_iri": "http://another_iri"
@@ -21,18 +21,18 @@
"sample_controlled_vocab_terms": {
"data": [
{
- "id": "16",
+ "id": "930",
"type": "sample_controlled_vocab_terms"
}
]
}
},
"links": {
- "self": "/sample_controlled_vocabs/17"
+ "self": "/sample_controlled_vocabs/302"
},
"meta": {
- "created": "2023-11-15T16:36:00.000Z",
- "modified": "2023-11-15T16:36:00.000Z",
+ "created": "2024-06-20T12:40:41.000Z",
+ "modified": "2024-06-20T12:40:41.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000"
}
diff --git a/public/api/examples/samplePatch.json b/public/api/examples/samplePatch.json
index 5f42388b27..7ace32b30f 100644
--- a/public/api/examples/samplePatch.json
+++ b/public/api/examples/samplePatch.json
@@ -1,7 +1,7 @@
{
"data": {
"type": "samples",
- "id": "3",
+ "id": "193",
"attributes": {
"attribute_map": {
"full_name": "Fred Bloggs",
@@ -12,7 +12,10 @@
"apples": [
"Golden Delicious",
"Bramley"
- ]
+ ],
+ "weight": 3.7,
+ "age": 42,
+ "bool": true
},
"tags": [
@@ -22,7 +25,7 @@
"projects": {
"data": [
{
- "id": "2",
+ "id": "1022252320",
"type": "projects"
}
]
diff --git a/public/api/examples/samplePatchResponse.json b/public/api/examples/samplePatchResponse.json
index 435a958d0e..7085339e9f 100644
--- a/public/api/examples/samplePatchResponse.json
+++ b/public/api/examples/samplePatchResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "3",
+ "id": "193",
"type": "samples",
"attributes": {
"policy": {
@@ -16,8 +16,8 @@
"tags": [
],
- "created_at": "2023-03-06T15:24:15.832Z",
- "updated_at": "2023-03-06T15:24:15.975Z",
+ "created_at": "2024-06-20T12:38:32.000Z",
+ "updated_at": "2024-06-20T12:38:33.000Z",
"creators": [
],
@@ -34,16 +34,19 @@
],
"patients": [
{
- "id": 1,
+ "id": 191,
"type": "Sample",
"title": "Fred Bloggs"
},
{
- "id": 2,
+ "id": 192,
"type": "Sample",
"title": "Fred Bloggs"
}
- ]
+ ],
+ "weight": 3.7,
+ "age": 42,
+ "bool": true
}
},
"relationships": {
@@ -55,21 +58,21 @@
"submitter": {
"data": [
{
- "id": "2",
+ "id": "1039988241",
"type": "people"
}
]
},
"sample_type": {
"data": {
- "id": "2",
+ "id": "267",
"type": "sample_types"
}
},
"projects": {
"data": [
{
- "id": "2",
+ "id": "1022252320",
"type": "projects"
}
]
@@ -97,21 +100,21 @@
"people": {
"data": [
{
- "id": "2",
+ "id": "1039988241",
"type": "people"
}
]
}
},
"links": {
- "self": "/samples/3"
+ "self": "/samples/193"
},
"meta": {
- "created": "2023-03-06T15:24:15.832Z",
- "modified": "2023-03-06T15:24:15.975Z",
+ "created": "2024-06-20T12:38:32.000Z",
+ "modified": "2024-06-20T12:38:33.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "e133a800-9e60-013b-15a0-0a81884ed284"
+ "uuid": "edb06c50-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/samplePost.json b/public/api/examples/samplePost.json
index 4c59e9a7c3..63a83558cc 100644
--- a/public/api/examples/samplePost.json
+++ b/public/api/examples/samplePost.json
@@ -11,7 +11,10 @@
"apples": [
"Golden Delicious",
"Granny Smith"
- ]
+ ],
+ "weight": 3.7,
+ "age": 42,
+ "bool": true
},
"tags": [
"tag1",
@@ -21,14 +24,14 @@
"relationships": {
"sample_type": {
"data": {
- "id": "2",
+ "id": "246",
"type": "sample_types"
}
},
"creators": {
"data": [
{
- "id": "2",
+ "id": "1039988186",
"type": "people"
}
]
@@ -36,7 +39,7 @@
"projects": {
"data": [
{
- "id": "2",
+ "id": "1022252265",
"type": "projects"
}
]
@@ -44,7 +47,7 @@
"assays": {
"data": [
{
- "id": "2",
+ "id": "1035386870",
"type": "assays"
}
]
diff --git a/public/api/examples/samplePostResponse.json b/public/api/examples/samplePostResponse.json
index 85cde29b48..7e14681087 100644
--- a/public/api/examples/samplePostResponse.json
+++ b/public/api/examples/samplePostResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "4",
+ "id": "177",
"type": "samples",
"attributes": {
"policy": {
@@ -17,14 +17,14 @@
"tag1",
"tag2"
],
- "created_at": "2023-03-06T15:24:11.241Z",
- "updated_at": "2023-03-06T15:24:11.220Z",
+ "created_at": "2024-06-20T12:38:26.000Z",
+ "updated_at": "2024-06-20T12:38:26.000Z",
"creators": [
{
- "profile": "/people/2",
+ "profile": "/people/1039988186",
"family_name": "Last",
- "given_name": "Person284",
- "affiliation": "An Institution: 309",
+ "given_name": "Person3114",
+ "affiliation": "An Institution: 3846",
"orcid": null
}
],
@@ -39,14 +39,17 @@
"Golden Delicious",
"Granny Smith"
],
- "patients": null
+ "patients": null,
+ "weight": 3.7,
+ "age": 42,
+ "bool": true
}
},
"relationships": {
"creators": {
"data": [
{
- "id": "2",
+ "id": "1039988186",
"type": "people"
}
]
@@ -54,21 +57,21 @@
"submitter": {
"data": [
{
- "id": "2",
+ "id": "1039988186",
"type": "people"
}
]
},
"sample_type": {
"data": {
- "id": "2",
+ "id": "246",
"type": "sample_types"
}
},
"projects": {
"data": [
{
- "id": "2",
+ "id": "1022252265",
"type": "projects"
}
]
@@ -81,7 +84,7 @@
"investigations": {
"data": [
{
- "id": "2",
+ "id": "973655094",
"type": "investigations"
}
]
@@ -89,7 +92,7 @@
"studies": {
"data": [
{
- "id": "2",
+ "id": "1060385125",
"type": "studies"
}
]
@@ -97,7 +100,7 @@
"assays": {
"data": [
{
- "id": "2",
+ "id": "1035386870",
"type": "assays"
}
]
@@ -105,21 +108,21 @@
"people": {
"data": [
{
- "id": "2",
+ "id": "1039988186",
"type": "people"
}
]
}
},
"links": {
- "self": "/samples/4"
+ "self": "/samples/177"
},
"meta": {
- "created": "2023-03-06T15:24:11.241Z",
- "modified": "2023-03-06T15:24:11.220Z",
+ "created": "2024-06-20T12:38:26.000Z",
+ "modified": "2024-06-20T12:38:26.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "de769a80-9e60-013b-15a0-0a81884ed284"
+ "uuid": "e9ee4c30-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/sampleResponse.json b/public/api/examples/sampleResponse.json
index 96c4c47cfd..662806302a 100644
--- a/public/api/examples/sampleResponse.json
+++ b/public/api/examples/sampleResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "6",
+ "id": "190",
"type": "samples",
"attributes": {
"policy": {
@@ -17,8 +17,8 @@
"tag1",
"tag2"
],
- "created_at": "2023-03-06T15:24:14.918Z",
- "updated_at": "2023-03-06T15:24:14.918Z",
+ "created_at": "2024-06-20T12:38:31.000Z",
+ "updated_at": "2024-06-20T12:38:31.000Z",
"creators": [
],
@@ -35,16 +35,19 @@
],
"patients": [
{
- "id": 4,
+ "id": 188,
"type": "Sample",
"title": "Fred Bloggs"
},
{
- "id": 5,
+ "id": 189,
"type": "Sample",
"title": "Fred Bloggs"
}
- ]
+ ],
+ "weight": 3.7,
+ "age": 42,
+ "bool": true
}
},
"relationships": {
@@ -56,21 +59,21 @@
"submitter": {
"data": [
{
- "id": "17",
+ "id": "1039988230",
"type": "people"
}
]
},
"sample_type": {
"data": {
- "id": "6",
+ "id": "263",
"type": "sample_types"
}
},
"projects": {
"data": [
{
- "id": "17",
+ "id": "1022252309",
"type": "projects"
}
]
@@ -98,21 +101,21 @@
"people": {
"data": [
{
- "id": "17",
+ "id": "1039988230",
"type": "people"
}
]
}
},
"links": {
- "self": "/samples/6"
+ "self": "/samples/190"
},
"meta": {
- "created": "2023-03-06T15:24:14.918Z",
- "modified": "2023-03-06T15:24:14.918Z",
+ "created": "2024-06-20T12:38:31.000Z",
+ "modified": "2024-06-20T12:38:31.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "e0a80650-9e60-013b-15a0-0a81884ed284"
+ "uuid": "ecf56830-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/sampleTypePatch.json b/public/api/examples/sampleTypePatch.json
index b94869b5cb..4a59e01de0 100644
--- a/public/api/examples/sampleTypePatch.json
+++ b/public/api/examples/sampleTypePatch.json
@@ -1,15 +1,15 @@
{
"data": {
"type": "sample_types",
- "id": "23",
+ "id": "118",
"attributes": {
"title": "This is a new title.",
"sample_attributes": [
{
- "id": "39",
+ "id": "206",
"title": "This is a new attribute title",
"sample_attribute_type": {
- "title": "String attribute type 16"
+ "title": "String attribute type 513"
}
}
],
@@ -21,7 +21,7 @@
"projects": {
"data": [
{
- "id": "953",
+ "id": "1022251411",
"type": "projects"
}
]
@@ -29,7 +29,7 @@
"assays": {
"data": [
{
- "id": "133",
+ "id": "1035386724",
"type": "assays"
}
]
diff --git a/public/api/examples/sampleTypePatchResponse.json b/public/api/examples/sampleTypePatchResponse.json
index 69b5ee4eee..85e68b2020 100644
--- a/public/api/examples/sampleTypePatchResponse.json
+++ b/public/api/examples/sampleTypePatchResponse.json
@@ -1,19 +1,19 @@
{
"data": {
- "id": "23",
+ "id": "118",
"type": "sample_types",
"attributes": {
"title": "This is a new title.",
"description": null,
"sample_attributes": [
{
- "id": "39",
+ "id": "206",
"title": "This is a new attribute title",
"description": null,
"pid": null,
"sample_attribute_type": {
- "id": "38",
- "title": "String attribute type 16",
+ "id": "875",
+ "title": "String attribute type 513",
"base_type": "String",
"regexp": ".*"
},
@@ -33,7 +33,7 @@
"projects": {
"data": [
{
- "id": "953",
+ "id": "1022251411",
"type": "projects"
}
]
@@ -46,7 +46,7 @@
"submitter": {
"data": [
{
- "id": "872",
+ "id": "1039987344",
"type": "people"
}
]
@@ -54,21 +54,21 @@
"assays": {
"data": [
{
- "id": "133",
+ "id": "1035386724",
"type": "assays"
}
]
}
},
"links": {
- "self": "/sample_types/23"
+ "self": "/sample_types/118"
},
"meta": {
- "created": "2022-06-07T14:14:37.000Z",
- "modified": "2022-06-07T14:14:37.000Z",
+ "created": "2024-06-20T12:36:24.000Z",
+ "modified": "2024-06-20T12:36:24.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "16802d40-c89a-013a-0f7e-0a81884ed284"
+ "uuid": "a100d230-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/sampleTypePost.json b/public/api/examples/sampleTypePost.json
index a01e34a737..4a75983d64 100644
--- a/public/api/examples/sampleTypePost.json
+++ b/public/api/examples/sampleTypePost.json
@@ -8,7 +8,7 @@
{
"title": "full name",
"sample_attribute_type": {
- "title": "String attribute type 13"
+ "title": "String attribute type 510"
},
"required": true,
"pos": 1,
@@ -21,7 +21,7 @@
"projects": {
"data": [
{
- "id": "938",
+ "id": "1022251394",
"type": "projects"
}
]
@@ -29,7 +29,7 @@
"assays": {
"data": [
{
- "id": "128",
+ "id": "1035386719",
"type": "assays"
}
]
diff --git a/public/api/examples/sampleTypePostResponse.json b/public/api/examples/sampleTypePostResponse.json
index c2f41e0085..45020606a2 100644
--- a/public/api/examples/sampleTypePostResponse.json
+++ b/public/api/examples/sampleTypePostResponse.json
@@ -1,19 +1,19 @@
{
"data": {
- "id": "17",
+ "id": "110",
"type": "sample_types",
"attributes": {
"title": "A Maximal SampleType",
"description": "A very new research",
"sample_attributes": [
{
- "id": "27",
+ "id": "172",
"title": "full name",
"description": null,
"pid": null,
"sample_attribute_type": {
- "id": "26",
- "title": "String attribute type 13",
+ "id": "841",
+ "title": "String attribute type 510",
"base_type": "String",
"regexp": ".*"
},
@@ -33,7 +33,7 @@
"projects": {
"data": [
{
- "id": "938",
+ "id": "1022251394",
"type": "projects"
}
]
@@ -46,7 +46,7 @@
"submitter": {
"data": [
{
- "id": "857",
+ "id": "1039987327",
"type": "people"
}
]
@@ -54,21 +54,21 @@
"assays": {
"data": [
{
- "id": "128",
+ "id": "1035386719",
"type": "assays"
}
]
}
},
"links": {
- "self": "/sample_types/17"
+ "self": "/sample_types/110"
},
"meta": {
- "created": "2022-06-07T14:14:35.000Z",
- "modified": "2022-06-07T14:14:35.000Z",
+ "created": "2024-06-20T12:36:22.000Z",
+ "modified": "2024-06-20T12:36:22.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "154f5710-c89a-013a-0f7e-0a81884ed284"
+ "uuid": "9fc408f0-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/sampleTypeResponse.json b/public/api/examples/sampleTypeResponse.json
index 7613bde3c2..9c6cddb4ca 100644
--- a/public/api/examples/sampleTypeResponse.json
+++ b/public/api/examples/sampleTypeResponse.json
@@ -1,18 +1,18 @@
{
"data": {
- "id": "22",
+ "id": "117",
"type": "sample_types",
"attributes": {
"title": "A Maximal SampleType",
"description": "A very new research",
"sample_attributes": [
{
- "id": "35",
+ "id": "196",
"title": "full_name",
"description": "the persons full name",
"pid": null,
"sample_attribute_type": {
- "id": "34",
+ "id": "860",
"title": "Full name",
"base_type": "String",
"regexp": "[A-Z][a-z]+[ ][A-Z][a-z]+"
@@ -25,12 +25,12 @@
"linked_sample_type_id": null
},
{
- "id": "36",
+ "id": "197",
"title": "address",
"description": null,
"pid": null,
"sample_attribute_type": {
- "id": "35",
+ "id": "861",
"title": "Address",
"base_type": "Text",
"regexp": ".*"
@@ -43,12 +43,12 @@
"linked_sample_type_id": null
},
{
- "id": "37",
+ "id": "198",
"title": "postcode",
"description": null,
"pid": "dc:postcode",
"sample_attribute_type": {
- "id": "36",
+ "id": "862",
"title": "Post Code",
"base_type": "String",
"regexp": "^([A-PR-UWYZ0-9][A-HK-Y0-9][AEHMNPRTVXY0-9]?[ABEHMNPRVWXY0-9]? {1,2}[0-9][ABD-HJLN-UW-Z]{2}|GIR 0AA)$"
@@ -61,12 +61,12 @@
"linked_sample_type_id": null
},
{
- "id": "38",
+ "id": "199",
"title": "CAPITAL key",
"description": null,
"pid": null,
"sample_attribute_type": {
- "id": "37",
+ "id": "863",
"title": "String",
"base_type": "String",
"regexp": ".*"
@@ -77,6 +77,114 @@
"is_title": false,
"sample_controlled_vocab_id": null,
"linked_sample_type_id": null
+ },
+ {
+ "id": "200",
+ "title": "apple",
+ "description": null,
+ "pid": null,
+ "sample_attribute_type": {
+ "id": "864",
+ "title": "CV attribute type 14",
+ "base_type": "CV",
+ "regexp": ".*"
+ },
+ "required": false,
+ "pos": 5,
+ "unit": null,
+ "is_title": false,
+ "sample_controlled_vocab_id": "110",
+ "linked_sample_type_id": null
+ },
+ {
+ "id": "201",
+ "title": "apples",
+ "description": null,
+ "pid": null,
+ "sample_attribute_type": {
+ "id": "865",
+ "title": "CV List attribute type 4",
+ "base_type": "CVList",
+ "regexp": ".*"
+ },
+ "required": false,
+ "pos": 6,
+ "unit": null,
+ "is_title": false,
+ "sample_controlled_vocab_id": "111",
+ "linked_sample_type_id": null
+ },
+ {
+ "id": "202",
+ "title": "patients",
+ "description": null,
+ "pid": null,
+ "sample_attribute_type": {
+ "id": "874",
+ "title": "Sample multi attribute type 8",
+ "base_type": "SeekSampleMulti",
+ "regexp": ".*"
+ },
+ "required": false,
+ "pos": 7,
+ "unit": null,
+ "is_title": false,
+ "sample_controlled_vocab_id": null,
+ "linked_sample_type_id": "116"
+ },
+ {
+ "id": "203",
+ "title": "weight",
+ "description": null,
+ "pid": null,
+ "sample_attribute_type": {
+ "id": "871",
+ "title": "Float attribute type 4",
+ "base_type": "Float",
+ "regexp": ".*"
+ },
+ "required": false,
+ "pos": 8,
+ "unit": null,
+ "is_title": false,
+ "sample_controlled_vocab_id": null,
+ "linked_sample_type_id": null
+ },
+ {
+ "id": "204",
+ "title": "age",
+ "description": null,
+ "pid": null,
+ "sample_attribute_type": {
+ "id": "872",
+ "title": "Integer attribute type 47",
+ "base_type": "Integer",
+ "regexp": ".*"
+ },
+ "required": false,
+ "pos": 9,
+ "unit": null,
+ "is_title": false,
+ "sample_controlled_vocab_id": null,
+ "linked_sample_type_id": null
+ },
+ {
+ "id": "205",
+ "title": "bool",
+ "description": null,
+ "pid": null,
+ "sample_attribute_type": {
+ "id": "873",
+ "title": "Boolean attribute type 4",
+ "base_type": "Boolean",
+ "regexp": ".*"
+ },
+ "required": false,
+ "pos": 10,
+ "unit": null,
+ "is_title": false,
+ "sample_controlled_vocab_id": null,
+ "linked_sample_type_id": null
}
],
"tags": [
@@ -88,7 +196,7 @@
"projects": {
"data": [
{
- "id": "951",
+ "id": "1022251408",
"type": "projects"
}
]
@@ -101,7 +209,7 @@
"submitter": {
"data": [
{
- "id": "870",
+ "id": "1039987341",
"type": "people"
}
]
@@ -109,21 +217,21 @@
"assays": {
"data": [
{
- "id": "132",
+ "id": "1035386723",
"type": "assays"
}
]
}
},
"links": {
- "self": "/sample_types/22"
+ "self": "/sample_types/117"
},
"meta": {
- "created": "2022-06-07T14:14:37.000Z",
- "modified": "2022-06-07T14:14:37.000Z",
+ "created": "2024-06-20T12:36:23.000Z",
+ "modified": "2024-06-20T12:36:23.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "16537c20-c89a-013a-0f7e-0a81884ed284"
+ "uuid": "a0d6d860-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/sopPatch.json b/public/api/examples/sopPatch.json
index e2bfe11ce3..44aeaeafe1 100644
--- a/public/api/examples/sopPatch.json
+++ b/public/api/examples/sopPatch.json
@@ -1,7 +1,7 @@
{
"data": {
"type": "sops",
- "id": "16",
+ "id": "1055250535",
"attributes": {
"title": "A Maximally Patched SOP",
"description": "Protocol",
@@ -17,7 +17,7 @@
"permissions": [
{
"resource": {
- "id": "218",
+ "id": "1022253019",
"type": "projects"
},
"access": "edit"
@@ -29,7 +29,7 @@
"creators": {
"data": [
{
- "id": "205",
+ "id": "1039988892",
"type": "people"
}
]
@@ -37,7 +37,7 @@
"projects": {
"data": [
{
- "id": "218",
+ "id": "1022253019",
"type": "projects"
}
]
@@ -45,7 +45,7 @@
"assays": {
"data": [
{
- "id": "28",
+ "id": "1035386971",
"type": "assays"
}
]
@@ -53,7 +53,7 @@
"workflows": {
"data": [
{
- "id": "8",
+ "id": "257",
"type": "workflows"
}
]
diff --git a/public/api/examples/sopPatchResponse.json b/public/api/examples/sopPatchResponse.json
index c274592884..fe4150d96c 100644
--- a/public/api/examples/sopPatchResponse.json
+++ b/public/api/examples/sopPatchResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "16",
+ "id": "1055250535",
"type": "sops",
"attributes": {
"policy": {
@@ -8,7 +8,7 @@
"permissions": [
{
"resource": {
- "id": "218",
+ "id": "1022253019",
"type": "projects"
},
"access": "edit"
@@ -31,32 +31,32 @@
{
"version": 1,
"revision_comments": null,
- "url": "http://localhost:3000/sops/16?version=1",
+ "url": "http://localhost:3000/sops/1055250535?version=1",
"doi": null
}
],
"version": 1,
"revision_comments": null,
- "created_at": "2022-06-07T14:12:53.000Z",
- "updated_at": "2022-06-07T14:12:53.000Z",
+ "created_at": "2024-06-20T12:40:04.000Z",
+ "updated_at": "2024-06-20T12:40:04.000Z",
"doi": null,
"content_blobs": [
{
"original_filename": "sop.pdf",
"url": null,
- "md5sum": "63f964868d572e9de7e5a61b2dc27cfa",
- "sha1sum": "77197c545a4465cedfc6d75258b7c2765869010c",
+ "md5sum": "341b39c240d2b301e5a2add1357937db",
+ "sha1sum": "4418725b3d755ed1247b0e6d05598637314ce8fb",
"content_type": "application/pdf",
- "link": "http://localhost:3000/sops/16/content_blobs/89",
- "size": 9
+ "link": "http://localhost:3000/sops/1055250535/content_blobs/1050453320",
+ "size": 10
}
],
"creators": [
{
- "profile": "/people/205",
+ "profile": "/people/1039988892",
"family_name": "Last",
- "given_name": "Person167",
- "affiliation": "An Institution: 207",
+ "given_name": "Person3658",
+ "affiliation": "An Institution: 4548",
"orcid": null
}
],
@@ -66,7 +66,7 @@
"creators": {
"data": [
{
- "id": "205",
+ "id": "1039988892",
"type": "people"
}
]
@@ -74,7 +74,7 @@
"submitter": {
"data": [
{
- "id": "204",
+ "id": "1039988891",
"type": "people"
}
]
@@ -82,11 +82,11 @@
"people": {
"data": [
{
- "id": "204",
+ "id": "1039988891",
"type": "people"
},
{
- "id": "205",
+ "id": "1039988892",
"type": "people"
}
]
@@ -94,7 +94,7 @@
"projects": {
"data": [
{
- "id": "218",
+ "id": "1022253019",
"type": "projects"
}
]
@@ -102,7 +102,7 @@
"investigations": {
"data": [
{
- "id": "32",
+ "id": "973655203",
"type": "investigations"
}
]
@@ -110,7 +110,7 @@
"studies": {
"data": [
{
- "id": "30",
+ "id": "1060385230",
"type": "studies"
}
]
@@ -118,7 +118,7 @@
"assays": {
"data": [
{
- "id": "28",
+ "id": "1035386971",
"type": "assays"
}
]
@@ -131,21 +131,21 @@
"workflows": {
"data": [
{
- "id": "8",
+ "id": "257",
"type": "workflows"
}
]
}
},
"links": {
- "self": "/sops/16?version=1"
+ "self": "/sops/1055250535?version=1"
},
"meta": {
- "created": "2022-06-07T14:12:53.000Z",
- "modified": "2022-06-07T14:12:53.000Z",
+ "created": "2024-06-20T12:40:04.000Z",
+ "modified": "2024-06-20T12:40:04.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "d838c140-c899-013a-0f7e-0a81884ed284"
+ "uuid": "24609170-1130-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/sopPost.json b/public/api/examples/sopPost.json
index 1b5d0579e0..d609a44bae 100644
--- a/public/api/examples/sopPost.json
+++ b/public/api/examples/sopPost.json
@@ -21,7 +21,7 @@
"permissions": [
{
"resource": {
- "id": "128",
+ "id": "1022252921",
"type": "projects"
},
"access": "edit"
@@ -33,7 +33,7 @@
"creators": {
"data": [
{
- "id": "121",
+ "id": "1039988800",
"type": "people"
}
]
@@ -41,7 +41,7 @@
"projects": {
"data": [
{
- "id": "128",
+ "id": "1022252921",
"type": "projects"
}
]
@@ -49,7 +49,7 @@
"assays": {
"data": [
{
- "id": "13",
+ "id": "1035386954",
"type": "assays"
}
]
@@ -57,7 +57,7 @@
"workflows": {
"data": [
{
- "id": "1",
+ "id": "250",
"type": "workflows"
}
]
diff --git a/public/api/examples/sopPostResponse.json b/public/api/examples/sopPostResponse.json
index 504a9773b8..424263dc76 100644
--- a/public/api/examples/sopPostResponse.json
+++ b/public/api/examples/sopPostResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "6",
+ "id": "1055250525",
"type": "sops",
"attributes": {
"policy": {
@@ -8,7 +8,7 @@
"permissions": [
{
"resource": {
- "id": "128",
+ "id": "1022252921",
"type": "projects"
},
"access": "edit"
@@ -30,14 +30,14 @@
{
"version": 1,
"revision_comments": null,
- "url": "http://localhost:3000/sops/6?version=1",
+ "url": "http://localhost:3000/sops/1055250525?version=1",
"doi": null
}
],
"version": 1,
"revision_comments": null,
- "created_at": "2022-06-07T14:12:40.000Z",
- "updated_at": "2022-06-07T14:12:40.000Z",
+ "created_at": "2024-06-20T12:39:52.000Z",
+ "updated_at": "2024-06-20T12:39:52.000Z",
"doi": null,
"content_blobs": [
{
@@ -46,16 +46,16 @@
"md5sum": null,
"sha1sum": null,
"content_type": "application/pdf",
- "link": "http://localhost:3000/sops/6/content_blobs/47",
+ "link": "http://localhost:3000/sops/1055250525/content_blobs/1050453288",
"size": null
}
],
"creators": [
{
- "profile": "/people/121",
+ "profile": "/people/1039988800",
"family_name": "Last",
- "given_name": "Person94",
- "affiliation": "An Institution: 123",
+ "given_name": "Person3577",
+ "affiliation": "An Institution: 4456",
"orcid": null
}
],
@@ -65,7 +65,7 @@
"creators": {
"data": [
{
- "id": "121",
+ "id": "1039988800",
"type": "people"
}
]
@@ -73,7 +73,7 @@
"submitter": {
"data": [
{
- "id": "120",
+ "id": "1039988799",
"type": "people"
}
]
@@ -81,11 +81,11 @@
"people": {
"data": [
{
- "id": "120",
+ "id": "1039988799",
"type": "people"
},
{
- "id": "121",
+ "id": "1039988800",
"type": "people"
}
]
@@ -93,7 +93,7 @@
"projects": {
"data": [
{
- "id": "128",
+ "id": "1022252921",
"type": "projects"
}
]
@@ -101,7 +101,7 @@
"investigations": {
"data": [
{
- "id": "13",
+ "id": "973655182",
"type": "investigations"
}
]
@@ -109,7 +109,7 @@
"studies": {
"data": [
{
- "id": "13",
+ "id": "1060385211",
"type": "studies"
}
]
@@ -117,7 +117,7 @@
"assays": {
"data": [
{
- "id": "13",
+ "id": "1035386954",
"type": "assays"
}
]
@@ -130,21 +130,21 @@
"workflows": {
"data": [
{
- "id": "1",
+ "id": "250",
"type": "workflows"
}
]
}
},
"links": {
- "self": "/sops/6?version=1"
+ "self": "/sops/1055250525?version=1"
},
"meta": {
- "created": "2022-06-07T14:12:40.000Z",
- "modified": "2022-06-07T14:12:40.000Z",
+ "created": "2024-06-20T12:39:52.000Z",
+ "modified": "2024-06-20T12:39:52.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "d05fcab0-c899-013a-0f7e-0a81884ed284"
+ "uuid": "1d3e5240-1130-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/sopResponse.json b/public/api/examples/sopResponse.json
index 79efaa3966..e1a45286f0 100644
--- a/public/api/examples/sopResponse.json
+++ b/public/api/examples/sopResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "15",
+ "id": "1055250534",
"type": "sops",
"attributes": {
"policy": {
@@ -11,7 +11,7 @@
},
"discussion_links": [
{
- "id": "14",
+ "id": "264",
"label": "Slack",
"url": "http://www.slack.com/"
}
@@ -31,14 +31,14 @@
{
"version": 1,
"revision_comments": null,
- "url": "http://localhost:3000/sops/15?version=1",
+ "url": "http://localhost:3000/sops/1055250534?version=1",
"doi": null
}
],
"version": 1,
"revision_comments": null,
- "created_at": "2022-06-07T14:12:52.000Z",
- "updated_at": "2022-06-07T14:12:52.000Z",
+ "created_at": "2024-06-20T12:40:04.000Z",
+ "updated_at": "2024-06-20T12:40:04.000Z",
"doi": null,
"content_blobs": [
{
@@ -47,13 +47,13 @@
"md5sum": "726de0a3f94d65056b909b9736e10349",
"sha1sum": "fbcc0dee4b5415de4c82ef5b137d8231fec1331b",
"content_type": "application/pdf",
- "link": "http://localhost:3000/sops/15/content_blobs/88",
+ "link": "http://localhost:3000/sops/1055250534/content_blobs/1050453319",
"size": 8
}
],
"creators": [
{
- "profile": "/people/201",
+ "profile": "/people/1039988888",
"family_name": "One",
"given_name": "Some",
"affiliation": "University of Somewhere",
@@ -66,7 +66,7 @@
"creators": {
"data": [
{
- "id": "201",
+ "id": "1039988888",
"type": "people"
}
]
@@ -74,7 +74,7 @@
"submitter": {
"data": [
{
- "id": "202",
+ "id": "1039988889",
"type": "people"
}
]
@@ -82,11 +82,11 @@
"people": {
"data": [
{
- "id": "201",
+ "id": "1039988888",
"type": "people"
},
{
- "id": "202",
+ "id": "1039988889",
"type": "people"
}
]
@@ -94,7 +94,7 @@
"projects": {
"data": [
{
- "id": "208",
+ "id": "1022253009",
"type": "projects"
}
]
@@ -102,7 +102,7 @@
"investigations": {
"data": [
{
- "id": "31",
+ "id": "973655202",
"type": "investigations"
}
]
@@ -110,7 +110,7 @@
"studies": {
"data": [
{
- "id": "29",
+ "id": "1060385229",
"type": "studies"
}
]
@@ -118,7 +118,7 @@
"assays": {
"data": [
{
- "id": "27",
+ "id": "1035386970",
"type": "assays"
}
]
@@ -126,7 +126,7 @@
"publications": {
"data": [
{
- "id": "10",
+ "id": "346",
"type": "publications"
}
]
@@ -134,21 +134,21 @@
"workflows": {
"data": [
{
- "id": "7",
+ "id": "256",
"type": "workflows"
}
]
}
},
"links": {
- "self": "/sops/15?version=1"
+ "self": "/sops/1055250534?version=1"
},
"meta": {
- "created": "2022-06-07T14:12:52.000Z",
- "modified": "2022-06-07T14:12:52.000Z",
+ "created": "2024-06-20T12:40:03.000Z",
+ "modified": "2024-06-20T12:40:04.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "d7d1a740-c899-013a-0f7e-0a81884ed284"
+ "uuid": "2405a950-1130-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/sopsResponse.json b/public/api/examples/sopsResponse.json
index 9c144829d0..4136bac780 100644
--- a/public/api/examples/sopsResponse.json
+++ b/public/api/examples/sopsResponse.json
@@ -1,23 +1,23 @@
{
"data": [
{
- "id": "10",
+ "id": "1055250529",
"type": "sops",
"attributes": {
"title": "This Sop"
},
"links": {
- "self": "/sops/10"
+ "self": "/sops/1055250529"
}
},
{
- "id": "9",
+ "id": "1055250528",
"type": "sops",
"attributes": {
"title": "This Sop"
},
"links": {
- "self": "/sops/9"
+ "self": "/sops/1055250528"
}
}
],
diff --git a/public/api/examples/studiesResponse.json b/public/api/examples/studiesResponse.json
index 297e3862e1..72491c7a7f 100644
--- a/public/api/examples/studiesResponse.json
+++ b/public/api/examples/studiesResponse.json
@@ -1,13 +1,13 @@
{
"data": [
{
- "id": "3086",
+ "id": "1060385027",
"type": "studies",
"attributes": {
- "title": "Study49"
+ "title": "Study469"
},
"links": {
- "self": "/studies/3086"
+ "self": "/studies/1060385027"
}
}
],
diff --git a/public/api/examples/studyPatch.json b/public/api/examples/studyPatch.json
index 5b0327caf0..16c1c55bd2 100644
--- a/public/api/examples/studyPatch.json
+++ b/public/api/examples/studyPatch.json
@@ -1,7 +1,7 @@
{
"data": {
"type": "studies",
- "id": "3096",
+ "id": "1060385037",
"attributes": {
"title": "A Maximal Study",
"description": "The Study of many things",
@@ -12,7 +12,7 @@
"permissions": [
{
"resource": {
- "id": "11830",
+ "id": "1022251755",
"type": "projects"
},
"access": "view"
@@ -20,7 +20,7 @@
]
},
"extended_attributes": {
- "extended_metadata_type_id": "940",
+ "extended_metadata_type_id": "308",
"attribute_map": {
"name": "Fred Bloggs",
"age": 44,
@@ -31,14 +31,14 @@
"relationships": {
"investigation": {
"data": {
- "id": "4131",
+ "id": "973655004",
"type": "investigations"
}
},
"publications": {
"data": [
{
- "id": "1531",
+ "id": "268",
"type": "publications"
}
]
@@ -46,7 +46,7 @@
"creators": {
"data": [
{
- "id": "10375",
+ "id": "1039987655",
"type": "people"
}
]
diff --git a/public/api/examples/studyPatchResponse.json b/public/api/examples/studyPatchResponse.json
index ef367a22eb..76ca6abaac 100644
--- a/public/api/examples/studyPatchResponse.json
+++ b/public/api/examples/studyPatchResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "3096",
+ "id": "1060385037",
"type": "studies",
"attributes": {
"policy": {
@@ -8,7 +8,7 @@
"permissions": [
{
"resource": {
- "id": "11830",
+ "id": "1022251755",
"type": "projects"
},
"access": "view"
@@ -19,7 +19,7 @@
],
"extended_attributes": {
- "extended_metadata_type_id": "940",
+ "extended_metadata_type_id": "308",
"attribute_map": {
"age": 44,
"name": "Fred Bloggs",
@@ -36,10 +36,10 @@
"position": null,
"creators": [
{
- "profile": "/people/10375",
+ "profile": "/people/1039987655",
"family_name": "Last",
- "given_name": "Person138",
- "affiliation": "An Institution: 173",
+ "given_name": "Person2639",
+ "affiliation": "An Institution: 3314",
"orcid": null
}
]
@@ -48,7 +48,7 @@
"creators": {
"data": [
{
- "id": "10375",
+ "id": "1039987655",
"type": "people"
}
]
@@ -56,7 +56,7 @@
"submitter": {
"data": [
{
- "id": "10375",
+ "id": "1039987655",
"type": "people"
}
]
@@ -64,7 +64,7 @@
"people": {
"data": [
{
- "id": "10375",
+ "id": "1039987655",
"type": "people"
}
]
@@ -72,14 +72,14 @@
"projects": {
"data": [
{
- "id": "11830",
+ "id": "1022251755",
"type": "projects"
}
]
},
"investigation": {
"data": {
- "id": "4131",
+ "id": "973655004",
"type": "investigations"
}
},
@@ -106,7 +106,7 @@
"publications": {
"data": [
{
- "id": "1531",
+ "id": "268",
"type": "publications"
}
]
@@ -118,14 +118,14 @@
}
},
"links": {
- "self": "/studies/3096"
+ "self": "/studies/1060385037"
},
"meta": {
- "created": "2024-03-15T10:03:27.000Z",
- "modified": "2024-03-15T10:03:27.000Z",
+ "created": "2024-06-20T12:37:18.000Z",
+ "modified": "2024-06-20T12:37:18.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "31299a30-c4e1-013c-640d-7efdca78d793"
+ "uuid": "c12f3e20-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/studyPost.json b/public/api/examples/studyPost.json
index 6b7cf7cbf1..4d9507a55e 100644
--- a/public/api/examples/studyPost.json
+++ b/public/api/examples/studyPost.json
@@ -11,7 +11,7 @@
"permissions": [
{
"resource": {
- "id": "11779",
+ "id": "1022251704",
"type": "projects"
},
"access": "view"
@@ -19,7 +19,7 @@
]
},
"extended_attributes": {
- "extended_metadata_type_id": "935",
+ "extended_metadata_type_id": "303",
"attribute_map": {
"name": "Fred Bloggs",
"age": 44,
@@ -30,14 +30,14 @@
"relationships": {
"investigation": {
"data": {
- "id": "4110",
+ "id": "973654983",
"type": "investigations"
}
},
"publications": {
"data": [
{
- "id": "1526",
+ "id": "263",
"type": "publications"
}
]
@@ -45,7 +45,7 @@
"creators": {
"data": [
{
- "id": "10329",
+ "id": "1039987609",
"type": "people"
}
]
diff --git a/public/api/examples/studyPostResponse.json b/public/api/examples/studyPostResponse.json
index 3038b57a85..32c8e6e958 100644
--- a/public/api/examples/studyPostResponse.json
+++ b/public/api/examples/studyPostResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "3078",
+ "id": "1060385019",
"type": "studies",
"attributes": {
"policy": {
@@ -8,7 +8,7 @@
"permissions": [
{
"resource": {
- "id": "11779",
+ "id": "1022251704",
"type": "projects"
},
"access": "view"
@@ -19,7 +19,7 @@
],
"extended_attributes": {
- "extended_metadata_type_id": "935",
+ "extended_metadata_type_id": "303",
"attribute_map": {
"age": 44,
"name": "Fred Bloggs",
@@ -36,10 +36,10 @@
"position": null,
"creators": [
{
- "profile": "/people/10329",
+ "profile": "/people/1039987609",
"family_name": "Last",
- "given_name": "Person99",
- "affiliation": "An Institution: 127",
+ "given_name": "Person2600",
+ "affiliation": "An Institution: 3268",
"orcid": null
}
]
@@ -48,7 +48,7 @@
"creators": {
"data": [
{
- "id": "10329",
+ "id": "1039987609",
"type": "people"
}
]
@@ -56,7 +56,7 @@
"submitter": {
"data": [
{
- "id": "10329",
+ "id": "1039987609",
"type": "people"
}
]
@@ -64,7 +64,7 @@
"people": {
"data": [
{
- "id": "10329",
+ "id": "1039987609",
"type": "people"
}
]
@@ -72,14 +72,14 @@
"projects": {
"data": [
{
- "id": "11779",
+ "id": "1022251704",
"type": "projects"
}
]
},
"investigation": {
"data": {
- "id": "4110",
+ "id": "973654983",
"type": "investigations"
}
},
@@ -106,7 +106,7 @@
"publications": {
"data": [
{
- "id": "1526",
+ "id": "263",
"type": "publications"
}
]
@@ -118,14 +118,14 @@
}
},
"links": {
- "self": "/studies/3078"
+ "self": "/studies/1060385019"
},
"meta": {
- "created": "2024-03-15T10:03:23.000Z",
- "modified": "2024-03-15T10:03:23.000Z",
+ "created": "2024-06-20T12:37:11.000Z",
+ "modified": "2024-06-20T12:37:11.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "2f175c70-c4e1-013c-640d-7efdca78d793"
+ "uuid": "bd177b10-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/studyResponse.json b/public/api/examples/studyResponse.json
index 8ad45d9701..c9eefe7983 100644
--- a/public/api/examples/studyResponse.json
+++ b/public/api/examples/studyResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "3095",
+ "id": "1060385036",
"type": "studies",
"attributes": {
"policy": {
@@ -11,13 +11,13 @@
},
"discussion_links": [
{
- "id": "507",
+ "id": "205",
"label": "Slack",
"url": "http://www.slack.com/"
}
],
"extended_attributes": {
- "extended_metadata_type_id": "939",
+ "extended_metadata_type_id": "307",
"attribute_map": {
"age": 44,
"name": "Fred Bloggs",
@@ -34,7 +34,7 @@
"position": null,
"creators": [
{
- "profile": "/people/10358",
+ "profile": "/people/1039987638",
"family_name": "One",
"given_name": "Some",
"affiliation": "University of Somewhere",
@@ -46,7 +46,7 @@
"creators": {
"data": [
{
- "id": "10358",
+ "id": "1039987638",
"type": "people"
}
]
@@ -54,7 +54,7 @@
"submitter": {
"data": [
{
- "id": "10356",
+ "id": "1039987636",
"type": "people"
}
]
@@ -62,11 +62,11 @@
"people": {
"data": [
{
- "id": "10356",
+ "id": "1039987636",
"type": "people"
},
{
- "id": "10358",
+ "id": "1039987638",
"type": "people"
}
]
@@ -74,21 +74,21 @@
"projects": {
"data": [
{
- "id": "11810",
+ "id": "1022251735",
"type": "projects"
}
]
},
"investigation": {
"data": {
- "id": "4124",
+ "id": "973654997",
"type": "investigations"
}
},
"assays": {
"data": [
{
- "id": "1498",
+ "id": "1035386783",
"type": "assays"
}
]
@@ -96,7 +96,7 @@
"data_files": {
"data": [
{
- "id": "390",
+ "id": "883654357",
"type": "data_files"
}
]
@@ -104,7 +104,7 @@
"models": {
"data": [
{
- "id": "511",
+ "id": "1004285512",
"type": "models"
}
]
@@ -112,7 +112,7 @@
"sops": {
"data": [
{
- "id": "372",
+ "id": "1055250477",
"type": "sops"
}
]
@@ -120,7 +120,7 @@
"publications": {
"data": [
{
- "id": "1530",
+ "id": "267",
"type": "publications"
}
]
@@ -128,21 +128,21 @@
"documents": {
"data": [
{
- "id": "442",
+ "id": "263",
"type": "documents"
}
]
}
},
"links": {
- "self": "/studies/3095"
+ "self": "/studies/1060385036"
},
"meta": {
- "created": "2024-03-15T10:03:27.000Z",
- "modified": "2024-03-15T10:03:27.000Z",
+ "created": "2024-06-20T12:37:17.000Z",
+ "modified": "2024-06-20T12:37:17.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "3100d260-c4e1-013c-640d-7efdca78d793"
+ "uuid": "c0e05a40-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/workflowPatch.json b/public/api/examples/workflowPatch.json
index 44ff553325..edffe1c0f7 100644
--- a/public/api/examples/workflowPatch.json
+++ b/public/api/examples/workflowPatch.json
@@ -1,7 +1,7 @@
{
"data": {
"type": "workflows",
- "id": "110",
+ "id": "179",
"attributes": {
"title": "A Maximally Patched Workflow",
"description": "A workflow to do important stuff",
@@ -46,7 +46,7 @@
"permissions": [
{
"resource": {
- "id": "409",
+ "id": "1022251551",
"type": "projects"
},
"access": "edit"
@@ -58,7 +58,7 @@
"creators": {
"data": [
{
- "id": "400",
+ "id": "1039987481",
"type": "people"
}
]
@@ -66,7 +66,7 @@
"projects": {
"data": [
{
- "id": "409",
+ "id": "1022251551",
"type": "projects"
}
]
@@ -74,7 +74,7 @@
"assays": {
"data": [
{
- "id": "85",
+ "id": "1035386753",
"type": "assays"
}
]
@@ -82,7 +82,7 @@
"publications": {
"data": [
{
- "id": "85",
+ "id": "238",
"type": "publications"
}
]
@@ -90,7 +90,7 @@
"presentations": {
"data": [
{
- "id": "75",
+ "id": "114",
"type": "presentations"
}
]
@@ -98,7 +98,7 @@
"data_files": {
"data": [
{
- "id": "75",
+ "id": "883654352",
"type": "data_files"
}
]
@@ -106,7 +106,7 @@
"documents": {
"data": [
{
- "id": "75",
+ "id": "258",
"type": "documents"
}
]
@@ -114,7 +114,7 @@
"sops": {
"data": [
{
- "id": "75",
+ "id": "1055250472",
"type": "sops"
}
]
diff --git a/public/api/examples/workflowPatchResponse.json b/public/api/examples/workflowPatchResponse.json
index c34e8e956c..9c44252882 100644
--- a/public/api/examples/workflowPatchResponse.json
+++ b/public/api/examples/workflowPatchResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "110",
+ "id": "179",
"type": "workflows",
"attributes": {
"policy": {
@@ -8,7 +8,7 @@
"permissions": [
{
"resource": {
- "id": "409",
+ "id": "1022251551",
"type": "projects"
},
"access": "edit"
@@ -31,14 +31,14 @@
{
"version": 1,
"revision_comments": null,
- "url": "http://localhost:3000/workflows/110?version=1",
+ "url": "http://localhost:3000/workflows/179?version=1",
"doi": null
}
],
"version": 1,
"revision_comments": null,
- "created_at": "2023-06-14T10:43:21.000Z",
- "updated_at": "2023-06-14T10:43:22.000Z",
+ "created_at": "2024-06-20T12:36:52.000Z",
+ "updated_at": "2024-06-20T12:36:52.000Z",
"doi": null,
"content_blobs": [
{
@@ -47,16 +47,16 @@
"md5sum": "ef2ea32522098acc937199f6c2b64f41",
"sha1sum": "a5133ccdb0376324d039431e4eff4f7d21a751cd",
"content_type": "application/x-yaml",
- "link": "http://localhost:3000/workflows/110/content_blobs/420",
+ "link": "http://localhost:3000/workflows/179/content_blobs/1050452922",
"size": 732
}
],
"creators": [
{
- "profile": "/people/400",
+ "profile": "/people/1039987481",
"family_name": "Last",
- "given_name": "Person108",
- "affiliation": "An Institution: 137",
+ "given_name": "Person2500",
+ "affiliation": "An Institution: 3140",
"orcid": null
}
],
@@ -99,7 +99,7 @@
"creators": {
"data": [
{
- "id": "400",
+ "id": "1039987481",
"type": "people"
}
]
@@ -107,7 +107,7 @@
"submitter": {
"data": [
{
- "id": "399",
+ "id": "1039987480",
"type": "people"
}
]
@@ -115,11 +115,11 @@
"people": {
"data": [
{
- "id": "399",
+ "id": "1039987480",
"type": "people"
},
{
- "id": "400",
+ "id": "1039987481",
"type": "people"
}
]
@@ -127,7 +127,7 @@
"projects": {
"data": [
{
- "id": "409",
+ "id": "1022251551",
"type": "projects"
}
]
@@ -135,7 +135,7 @@
"investigations": {
"data": [
{
- "id": "85",
+ "id": "973654915",
"type": "investigations"
}
]
@@ -143,7 +143,7 @@
"studies": {
"data": [
{
- "id": "85",
+ "id": "1060384969",
"type": "studies"
}
]
@@ -151,7 +151,7 @@
"assays": {
"data": [
{
- "id": "85",
+ "id": "1035386753",
"type": "assays"
}
]
@@ -159,7 +159,7 @@
"publications": {
"data": [
{
- "id": "85",
+ "id": "238",
"type": "publications"
}
]
@@ -167,7 +167,7 @@
"sops": {
"data": [
{
- "id": "75",
+ "id": "1055250472",
"type": "sops"
}
]
@@ -175,7 +175,7 @@
"presentations": {
"data": [
{
- "id": "75",
+ "id": "114",
"type": "presentations"
}
]
@@ -183,7 +183,7 @@
"data_files": {
"data": [
{
- "id": "75",
+ "id": "883654352",
"type": "data_files"
}
]
@@ -191,21 +191,21 @@
"documents": {
"data": [
{
- "id": "75",
+ "id": "258",
"type": "documents"
}
]
}
},
"links": {
- "self": "/workflows/110?version=1"
+ "self": "/workflows/179?version=1"
},
"meta": {
- "created": "2023-06-14T10:43:21.000Z",
- "modified": "2023-06-14T10:43:22.000Z",
+ "created": "2024-06-20T12:36:52.000Z",
+ "modified": "2024-06-20T12:36:52.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "34cbd200-ecce-013b-a2d8-000c29a94011"
+ "uuid": "b1d47590-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/workflowPost.json b/public/api/examples/workflowPost.json
index 01e930043c..871af9edc2 100644
--- a/public/api/examples/workflowPost.json
+++ b/public/api/examples/workflowPost.json
@@ -50,7 +50,7 @@
"permissions": [
{
"resource": {
- "id": "378",
+ "id": "1022251520",
"type": "projects"
},
"access": "edit"
@@ -62,7 +62,7 @@
"creators": {
"data": [
{
- "id": "371",
+ "id": "1039987452",
"type": "people"
}
]
@@ -70,7 +70,7 @@
"projects": {
"data": [
{
- "id": "378",
+ "id": "1022251520",
"type": "projects"
}
]
@@ -78,7 +78,7 @@
"assays": {
"data": [
{
- "id": "80",
+ "id": "1035386748",
"type": "assays"
}
]
@@ -86,7 +86,7 @@
"publications": {
"data": [
{
- "id": "80",
+ "id": "233",
"type": "publications"
}
]
@@ -94,7 +94,7 @@
"presentations": {
"data": [
{
- "id": "72",
+ "id": "111",
"type": "presentations"
}
]
@@ -102,7 +102,7 @@
"data_files": {
"data": [
{
- "id": "72",
+ "id": "883654349",
"type": "data_files"
}
]
@@ -110,7 +110,7 @@
"documents": {
"data": [
{
- "id": "72",
+ "id": "255",
"type": "documents"
}
]
@@ -118,7 +118,7 @@
"sops": {
"data": [
{
- "id": "72",
+ "id": "1055250469",
"type": "sops"
}
]
diff --git a/public/api/examples/workflowPostResponse.json b/public/api/examples/workflowPostResponse.json
index b5018f3525..d22963ba0f 100644
--- a/public/api/examples/workflowPostResponse.json
+++ b/public/api/examples/workflowPostResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "104",
+ "id": "173",
"type": "workflows",
"attributes": {
"policy": {
@@ -8,7 +8,7 @@
"permissions": [
{
"resource": {
- "id": "378",
+ "id": "1022251520",
"type": "projects"
},
"access": "edit"
@@ -30,14 +30,14 @@
{
"version": 1,
"revision_comments": null,
- "url": "http://localhost:3000/workflows/104?version=1",
+ "url": "http://localhost:3000/workflows/173?version=1",
"doi": null
}
],
"version": 1,
"revision_comments": null,
- "created_at": "2023-06-14T10:43:17.000Z",
- "updated_at": "2023-06-14T10:43:17.000Z",
+ "created_at": "2024-06-20T12:36:47.000Z",
+ "updated_at": "2024-06-20T12:36:47.000Z",
"doi": null,
"content_blobs": [
{
@@ -46,16 +46,16 @@
"md5sum": null,
"sha1sum": null,
"content_type": "application/x-yaml",
- "link": "http://localhost:3000/workflows/104/content_blobs/400",
+ "link": "http://localhost:3000/workflows/173/content_blobs/1050452902",
"size": null
}
],
"creators": [
{
- "profile": "/people/371",
+ "profile": "/people/1039987452",
"family_name": "Last",
- "given_name": "Person84",
- "affiliation": "An Institution: 108",
+ "given_name": "Person2476",
+ "affiliation": "An Institution: 3111",
"orcid": null
}
],
@@ -98,7 +98,7 @@
"creators": {
"data": [
{
- "id": "371",
+ "id": "1039987452",
"type": "people"
}
]
@@ -106,7 +106,7 @@
"submitter": {
"data": [
{
- "id": "370",
+ "id": "1039987451",
"type": "people"
}
]
@@ -114,11 +114,11 @@
"people": {
"data": [
{
- "id": "370",
+ "id": "1039987451",
"type": "people"
},
{
- "id": "371",
+ "id": "1039987452",
"type": "people"
}
]
@@ -126,7 +126,7 @@
"projects": {
"data": [
{
- "id": "378",
+ "id": "1022251520",
"type": "projects"
}
]
@@ -134,7 +134,7 @@
"investigations": {
"data": [
{
- "id": "80",
+ "id": "973654910",
"type": "investigations"
}
]
@@ -142,7 +142,7 @@
"studies": {
"data": [
{
- "id": "80",
+ "id": "1060384964",
"type": "studies"
}
]
@@ -150,7 +150,7 @@
"assays": {
"data": [
{
- "id": "80",
+ "id": "1035386748",
"type": "assays"
}
]
@@ -158,7 +158,7 @@
"publications": {
"data": [
{
- "id": "80",
+ "id": "233",
"type": "publications"
}
]
@@ -166,7 +166,7 @@
"sops": {
"data": [
{
- "id": "72",
+ "id": "1055250469",
"type": "sops"
}
]
@@ -174,7 +174,7 @@
"presentations": {
"data": [
{
- "id": "72",
+ "id": "111",
"type": "presentations"
}
]
@@ -182,7 +182,7 @@
"data_files": {
"data": [
{
- "id": "72",
+ "id": "883654349",
"type": "data_files"
}
]
@@ -190,21 +190,21 @@
"documents": {
"data": [
{
- "id": "72",
+ "id": "255",
"type": "documents"
}
]
}
},
"links": {
- "self": "/workflows/104?version=1"
+ "self": "/workflows/173?version=1"
},
"meta": {
- "created": "2023-06-14T10:43:17.000Z",
- "modified": "2023-06-14T10:43:17.000Z",
+ "created": "2024-06-20T12:36:47.000Z",
+ "modified": "2024-06-20T12:36:47.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "326333b0-ecce-013b-a2d8-000c29a94011"
+ "uuid": "af121740-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/public/api/examples/workflowResponse.json b/public/api/examples/workflowResponse.json
index db9cb1b572..c552256018 100644
--- a/public/api/examples/workflowResponse.json
+++ b/public/api/examples/workflowResponse.json
@@ -1,6 +1,6 @@
{
"data": {
- "id": "109",
+ "id": "178",
"type": "workflows",
"attributes": {
"policy": {
@@ -11,7 +11,7 @@
},
"discussion_links": [
{
- "id": "10",
+ "id": "195",
"label": "Slack",
"url": "http://www.slack.com/"
}
@@ -31,14 +31,14 @@
{
"version": 1,
"revision_comments": null,
- "url": "http://localhost:3000/workflows/109?version=1",
+ "url": "http://localhost:3000/workflows/178?version=1",
"doi": null
}
],
"version": 1,
"revision_comments": null,
- "created_at": "2023-06-14T10:43:21.000Z",
- "updated_at": "2023-06-14T10:43:21.000Z",
+ "created_at": "2024-06-20T12:36:51.000Z",
+ "updated_at": "2024-06-20T12:36:51.000Z",
"doi": null,
"content_blobs": [
{
@@ -47,13 +47,13 @@
"md5sum": "ef2ea32522098acc937199f6c2b64f41",
"sha1sum": "a5133ccdb0376324d039431e4eff4f7d21a751cd",
"content_type": "application/x-yaml",
- "link": "http://localhost:3000/workflows/109/content_blobs/415",
+ "link": "http://localhost:3000/workflows/178/content_blobs/1050452917",
"size": 732
}
],
"creators": [
{
- "profile": "/people/396",
+ "profile": "/people/1039987477",
"family_name": "One",
"given_name": "Some",
"affiliation": "University of Somewhere",
@@ -99,7 +99,7 @@
"creators": {
"data": [
{
- "id": "396",
+ "id": "1039987477",
"type": "people"
}
]
@@ -107,7 +107,7 @@
"submitter": {
"data": [
{
- "id": "397",
+ "id": "1039987478",
"type": "people"
}
]
@@ -115,11 +115,11 @@
"people": {
"data": [
{
- "id": "396",
+ "id": "1039987477",
"type": "people"
},
{
- "id": "397",
+ "id": "1039987478",
"type": "people"
}
]
@@ -127,7 +127,7 @@
"projects": {
"data": [
{
- "id": "407",
+ "id": "1022251549",
"type": "projects"
}
]
@@ -135,7 +135,7 @@
"investigations": {
"data": [
{
- "id": "84",
+ "id": "973654914",
"type": "investigations"
}
]
@@ -143,7 +143,7 @@
"studies": {
"data": [
{
- "id": "84",
+ "id": "1060384968",
"type": "studies"
}
]
@@ -151,7 +151,7 @@
"assays": {
"data": [
{
- "id": "84",
+ "id": "1035386752",
"type": "assays"
}
]
@@ -159,7 +159,7 @@
"publications": {
"data": [
{
- "id": "84",
+ "id": "237",
"type": "publications"
}
]
@@ -186,14 +186,14 @@
}
},
"links": {
- "self": "/workflows/109?version=1"
+ "self": "/workflows/178?version=1"
},
"meta": {
- "created": "2023-06-14T10:43:21.000Z",
- "modified": "2023-06-14T10:43:21.000Z",
+ "created": "2024-06-20T12:36:51.000Z",
+ "modified": "2024-06-20T12:36:51.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
- "uuid": "3440eef0-ecce-013b-a2d8-000c29a94011"
+ "uuid": "b13a3450-112f-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
diff --git a/test/fixtures/files/upload_json_sample_type_template/invalid_attribute_type_templates.json b/test/fixtures/files/upload_json_sample_type_template/invalid_attribute_type_templates.json
new file mode 100644
index 0000000000..8f1f30e98e
--- /dev/null
+++ b/test/fixtures/files/upload_json_sample_type_template/invalid_attribute_type_templates.json
@@ -0,0 +1,41 @@
+{
+ "data": [
+ {
+ "metadata": {
+ "name": "Source - Invalid template",
+ "group": "ISA Test",
+ "group_order": 1,
+ "temporary_name": "1_Source - Invalid template",
+ "version": "1.0.0",
+ "isa_config": "isaconfig-default_v2015-07-02/studySample.xml",
+ "isa_measurement_type": null,
+ "isa_technology_type": null,
+ "isa_protocol_type": null,
+ "repo_schema_id": "none",
+ "organism": "any",
+ "level": "study source"
+ },
+ "data": [
+ {
+ "iri": null,
+ "name": "Source Name",
+ "description": "Sources are considered as the starting biological material used in a study.",
+ "dataType": "String attribute type 1",
+ "title": true,
+ "required": true,
+ "isaTag": "source"
+ },
+ {
+ "iri": null,
+ "name": "Source Characteristic 1",
+ "description": "A characteristic of the source.",
+ "dataType": "Invalid String attribute type 1",
+ "required": true,
+ "ontology": null,
+ "CVList": null,
+ "isaTag": "source_characteristic"
+ }
+ ]
+ }
+ ]
+}
diff --git a/test/fixtures/files/upload_json_sample_type_template/invalid_isa_tag_templates.json b/test/fixtures/files/upload_json_sample_type_template/invalid_isa_tag_templates.json
new file mode 100644
index 0000000000..861d5f38ee
--- /dev/null
+++ b/test/fixtures/files/upload_json_sample_type_template/invalid_isa_tag_templates.json
@@ -0,0 +1,41 @@
+{
+ "data": [
+ {
+ "metadata": {
+ "name": "Source - Invalid template",
+ "group": "ISA Test",
+ "group_order": 1,
+ "temporary_name": "1_Source - Invalid template",
+ "version": "1.0.0",
+ "isa_config": "isaconfig-default_v2015-07-02/studySample.xml",
+ "isa_measurement_type": null,
+ "isa_technology_type": null,
+ "isa_protocol_type": null,
+ "repo_schema_id": "none",
+ "organism": "any",
+ "level": "study source"
+ },
+ "data": [
+ {
+ "iri": null,
+ "name": "Source Name",
+ "description": "Sources are considered as the starting biological material used in a study.",
+ "dataType": "String attribute type 1",
+ "title": true,
+ "required": true,
+ "isaTag": "invalid_source"
+ },
+ {
+ "iri": null,
+ "name": "Source Characteristic 1",
+ "description": "A characteristic of the source.",
+ "dataType": "String attribute type 1",
+ "required": true,
+ "ontology": null,
+ "CVList": null,
+ "isaTag": "source_characteristic"
+ }
+ ]
+ }
+ ]
+}
diff --git a/test/fixtures/files/upload_json_sample_type_template/test_templates.json b/test/fixtures/files/upload_json_sample_type_template/test_templates.json
new file mode 100644
index 0000000000..ce4e2f20cc
--- /dev/null
+++ b/test/fixtures/files/upload_json_sample_type_template/test_templates.json
@@ -0,0 +1,236 @@
+{
+ "data": [
+ {
+ "metadata": {
+ "name": "Source - ISA Test template",
+ "group": "ISA Test",
+ "group_order": 1,
+ "temporary_name": "1_Source - ISA Test template",
+ "version": "1.0.0",
+ "isa_config": "isaconfig-default_v2015-07-02/studySample.xml",
+ "isa_measurement_type": null,
+ "isa_technology_type": null,
+ "isa_protocol_type": null,
+ "repo_schema_id": "none",
+ "organism": "any",
+ "level": "study source"
+ },
+ "data": [
+ {
+ "iri": null,
+ "name": "Source Name",
+ "description": "Sources are considered as the starting biological material used in a study.",
+ "dataType": "String attribute type 1",
+ "title": true,
+ "required": true,
+ "isaTag": "source"
+ },
+ {
+ "iri": null,
+ "name": "Source Characteristic 1",
+ "description": "A characteristic of the source.",
+ "dataType": "String attribute type 1",
+ "required": true,
+ "ontology": null,
+ "CVList": null,
+ "isaTag": "source_characteristic"
+ }
+ ]
+ },
+ {
+ "metadata": {
+ "name": "Sample - ISA Test template",
+ "group": "ISA Test",
+ "group_order": 2,
+ "temporary_name": "2_Sample - ISA Test template",
+ "version": "1.0.0",
+ "isa_config": "isaconfig-default_v2015-07-02/studySample.xml",
+ "isa_measurement_type": "Sample",
+ "isa_technology_type": null,
+ "isa_protocol_type": "protocol with samples as outputs",
+ "repo_schema_id": "none",
+ "organism": "any",
+ "level": "study sample"
+ },
+ "data": [
+ {
+ "iri": null,
+ "name": "Input",
+ "description": "Registered Samples in the platform used as input for this protocol.",
+ "dataType": "Sample multi attribute type 1",
+ "required": true,
+ "isaTag": null
+ },
+ {
+ "iri": null,
+ "name": "Name of a protocol with samples as outputs",
+ "description": "Type of experimental step that generates samples as outputs from the study sources.",
+ "dataType": "String attribute type 1",
+ "required": true,
+ "ontology": null,
+ "CVList": null,
+ "isaTag": "protocol"
+ },
+ {
+ "iri": null,
+ "name": "Name of protocol parameter 1",
+ "description": "A parameter for the protocol.",
+ "dataType": "String attribute type 1",
+ "required": true,
+ "ontology": null,
+ "CVList": null,
+ "isaTag": "parameter_value"
+ },
+ {
+ "iri": null,
+ "name": "Sample Name",
+ "description": "Samples are considered as biological material sampled from sources and used in the study.",
+ "dataType": "String attribute type 1",
+ "title": true,
+ "required": true,
+ "isaTag": "sample"
+ },
+ {
+ "iri": null,
+ "name": "Sample Characteristic 1",
+ "description": "A characteristic of the sample.",
+ "dataType": "String attribute type 1",
+ "required": true,
+ "ontology": null,
+ "CVList": null,
+ "isaTag": "sample_characteristic"
+ }
+ ]
+ },
+ {
+ "metadata": {
+ "name": "Material output assay - ISA Test template",
+ "group": "ISA Test",
+ "group_order": 3,
+ "temporary_name": "3_Material output assay - ISA Test template",
+ "version": "1.0.0",
+ "isa_config": "none",
+ "isa_measurement_type": "any",
+ "isa_technology_type": "any",
+ "isa_protocol_type": "protocol with material output",
+ "repo_schema_id": "none",
+ "organism": "any",
+ "level": "assay - material"
+ },
+ "data": [
+ {
+ "iri": null,
+ "name": "Input",
+ "description": "Registered Samples in the platform used as input for this protocol.",
+ "dataType": "Sample multi attribute type 1",
+ "required": true,
+ "isaTag": null
+ },
+ {
+ "iri": null,
+ "name": "Name of a protocol with material output",
+ "description": "Type of assay or experimental step performed that generates a material output.",
+ "dataType": "String attribute type 1",
+ "required": true,
+ "ontology": null,
+ "CVList": null,
+ "isaTag": "protocol"
+ },
+ {
+ "iri": null,
+ "name": "Name of protocol parameter 1",
+ "description": "A parameter for the protocol.",
+ "dataType": "String attribute type 1",
+ "required": true,
+ "ontology": null,
+ "CVList": null,
+ "isaTag": "parameter_value"
+ },
+ {
+ "iri": null,
+ "name": "Output material Name",
+ "description": "Name of the major material output resulting from the application of the protocol.",
+ "dataType": "String attribute type 1",
+ "title": true,
+ "required": true,
+ "isaTag": "other_material"
+ },
+ {
+ "iri": null,
+ "name": "Output material characteristic 1",
+ "description": "Characteristic 1 of the output material.",
+ "dataType": "String attribute type 1",
+ "required": true,
+ "ontology": null,
+ "CVList": null,
+ "isaTag": "other_material_characteristic"
+ }
+ ]
+ },
+ {
+ "metadata": {
+ "name": "Data file output assay - ISA Test template",
+ "group": "ISA Test",
+ "group_order": 4,
+ "temporary_name": "4_Data file output assay - ISA Test template",
+ "version": "1.0.0",
+ "isa_config": "none",
+ "isa_measurement_type": "any",
+ "isa_technology_type": "any",
+ "isa_protocol_type": "protocol with data file output",
+ "repo_schema_id": "none",
+ "organism": "any",
+ "level": "assay - data file"
+ },
+ "data": [
+ {
+ "iri": null,
+ "name": "Input",
+ "description": "Registered Samples in the platform used as input for this protocol.",
+ "dataType": "Sample multi attribute type 1",
+ "required": true,
+ "isaTag": null
+ },
+ {
+ "iri": null,
+ "name": "Name of a protocol with data file output",
+ "description": "Type of assay or experimental step performed that generates a data file output.",
+ "dataType": "String attribute type 1",
+ "required": true,
+ "ontology": null,
+ "CVList": null,
+ "isaTag": "protocol"
+ },
+ {
+ "iri": null,
+ "name": "Name of protocol parameter 1",
+ "description": "A parameter for the protocol.",
+ "dataType": "String attribute type 1",
+ "required": true,
+ "ontology": null,
+ "CVList": null,
+ "isaTag": "data_file_comment"
+ },
+ {
+ "iri": null,
+ "name": "Data file Name",
+ "description": "Name of the major data file output resulting from the application of the protocol.",
+ "dataType": "String attribute type 1",
+ "title": true,
+ "required": true,
+ "isaTag": "data_file"
+ },
+ {
+ "iri": null,
+ "name": "Data file characteristic 1",
+ "description": "Characteristic 1 of the data file output.",
+ "dataType": "String attribute type 1",
+ "required": true,
+ "ontology": null,
+ "CVList": null,
+ "isaTag": "data_file_comment"
+ }
+ ]
+ }
+ ]
+}
diff --git a/test/functional/samples_controller_test.rb b/test/functional/samples_controller_test.rb
index 4ca85aae24..8e8bc52df5 100644
--- a/test/functional/samples_controller_test.rb
+++ b/test/functional/samples_controller_test.rb
@@ -1275,11 +1275,14 @@ class SamplesControllerTest < ActionController::TestCase
template2 = FactoryBot.create(:isa_sample_collection_template)
template3 = FactoryBot.create(:isa_assay_material_template)
- type1 = FactoryBot.create(:isa_source_sample_type, contributor: person, project_ids: [project.id], isa_template: template1)
- type2 = FactoryBot.create(:isa_sample_collection_sample_type, contributor: person, project_ids: [project.id],
- isa_template: template2, linked_sample_type: type1)
- type3 = FactoryBot.create(:isa_assay_material_sample_type, contributor: person, project_ids: [project.id], isa_template: template3,
- linked_sample_type: type2)
+ type1 = FactoryBot.create(:simple_sample_type, contributor: person, project_ids: [project.id], title: 'Source sample type', template_id: template1.id)
+ type1.create_sample_attributes_from_isa_template(template1)
+
+ type2 = FactoryBot.create(:simple_sample_type, contributor: person, project_ids: [project.id], title: 'Sample collection sample type', template_id: template2.id)
+ type2.create_sample_attributes_from_isa_template(template2, type1)
+
+ type3 = FactoryBot.create(:simple_sample_type, contributor: person, project_ids: [project.id], title: 'Assay material sample type', template_id: template3.id)
+ type3.create_sample_attributes_from_isa_template(template3, type2)
sample1 = FactoryBot.create :sample, title: 'sample1', sample_type: type1, project_ids: [project.id], contributor: person,
data: { 'Source Name': 'Source Name', 'Source Characteristic 1': 'Source Characteristic 1', 'Source Characteristic 2': "Cox's Orange Pippin" }
@@ -1287,7 +1290,8 @@ class SamplesControllerTest < ActionController::TestCase
sample2 = FactoryBot.create :sample, title: 'sample2', sample_type: type2, project_ids: [project.id], contributor: person,
data: { Input: [sample1.id], 'sample collection': 'sample collection', 'sample collection parameter value 1': 'sample collection parameter value 1', 'Sample Name': 'sample name', 'sample characteristic 1': 'sample characteristic 1' }
- sample3 = FactoryBot.create :sample, title: 'sample3', sample_type: type3, project_ids: [project.id], contributor: person,
+ # sample3
+ FactoryBot.create :sample, title: 'sample3', sample_type: type3, project_ids: [project.id], contributor: person,
data: { Input: [sample2.id], 'Protocol Assay 1': 'Protocol Assay 1', 'Assay 1 parameter value 1': 'Assay 1 parameter value 1', 'Extract Name': 'Extract Name', 'other material characteristic 1': 'other material characteristic 1' }
@@ -1309,6 +1313,24 @@ class SamplesControllerTest < ActionController::TestCase
assert result = assigns(:result)
assert_equal 1, result.length
+ # Do the same query but with random casing to check if case-insensitive
+ post :query, xhr: true, params: {
+ project_ids: [project.id],
+ template_id: template2.id,
+ template_attribute_id: template2.template_attributes.second.id,
+ template_attribute_value: 'ColLecTion',
+ input_template_id: template1.id,
+ input_attribute_id: template1.template_attributes.third.id,
+ input_attribute_value: "x's",
+ output_template_id: template3.id,
+ output_attribute_id: template3.template_attributes.second.id,
+ output_attribute_value: '1'
+ }
+
+ assert_response :success
+ assert result = assigns(:result)
+ assert_equal 1, result.length
+
# Query for sample's grandparents
post :query, xhr: true, params: {
project_ids: [project.id],
@@ -1338,6 +1360,48 @@ class SamplesControllerTest < ActionController::TestCase
assert_response :success
assert result = assigns(:result)
assert_equal 1, result.length
+
+ # Simple query on 'Input' attribute (SEEK_SAMPLE_MULTI type)
+ post :query, xhr: true, params: {
+ project_ids: [project.id],
+ template_id: template2.id,
+ template_attribute_id: template2.template_attributes.detect(&:input_attribute?)&.id,
+ template_attribute_value: 'source'
+ }
+
+ assert_response :success
+ result = assigns(:result)
+ assert_equal result.length, 1
+
+ # parent query on 'Input' attribute (SEEK_SAMPLE_MULTI type)
+ post :query, xhr: true, params: {
+ project_ids: [project.id],
+ template_id: template3.id,
+ template_attribute_id: template3.template_attributes.second.id,
+ template_attribute_value: 'Protocol',
+ input_template_id: template2.id,
+ input_attribute_id: template2.template_attributes.detect(&:input_attribute?)&.id,
+ input_attribute_value: "source"
+ }
+
+ assert_response :success
+ result = assigns(:result)
+ assert_equal result.length, 1
+
+ # Grandchild query on 'Input' attribute (SEEK_SAMPLE_MULTI type)
+ post :query, xhr: true, params: {
+ project_ids: [project.id],
+ template_id: template1.id,
+ template_attribute_id: template1.template_attributes.third.id,
+ template_attribute_value: "x's",
+ output_template_id: template3.id,
+ output_attribute_id: template3.template_attributes.detect(&:input_attribute?)&.id,
+ output_attribute_value: 'sample'
+ }
+
+ assert_response :success
+ result = assigns(:result)
+ assert_equal result.length, 1
end
end
@@ -1488,5 +1552,4 @@ def populated_patient_sample
sample
end
-
end
diff --git a/test/integration/workflow_ro_crate_test.rb b/test/integration/workflow_ro_crate_test.rb
index 3e660423e6..514e3e8e3a 100644
--- a/test/integration/workflow_ro_crate_test.rb
+++ b/test/integration/workflow_ro_crate_test.rb
@@ -123,12 +123,4 @@ class WorkflowRoCrateTest < ActionDispatch::IntegrationTest
File.delete(git_version.send(:ro_crate_path))
end
end
-
- test 'conformsTo' do
- crate = ROCrate::WorkflowCrate.new
-
- ids = crate['conformsTo'].map { |x| x['@id'] }
- assert_includes ids, 'https://w3id.org/ro/crate/1.1'
- assert_includes ids, 'https://w3id.org/workflowhub/workflow-ro-crate/1.0'
- end
end
diff --git a/test/unit/jobs/populate_templates_job_test.rb b/test/unit/jobs/populate_templates_job_test.rb
index 026d19c587..0558063667 100644
--- a/test/unit/jobs/populate_templates_job_test.rb
+++ b/test/unit/jobs/populate_templates_job_test.rb
@@ -1,11 +1,66 @@
require 'test_helper'
class PopulateTemplatesJobTest < ActiveSupport::TestCase
+ def setup
+ # Create the SampleAttributeTypes
+ # The title MUST be set manually!
+ FactoryBot.create(:string_sample_attribute_type, title: 'String attribute type 1')
+ FactoryBot.create(:sample_multi_sample_attribute_type, title: 'Sample multi attribute type 1')
+
+ # Create the ISA Tags
+ %i[source_isa_tag sample_isa_tag protocol_isa_tag source_characteristic_isa_tag sample_characteristic_isa_tag
+ other_material_isa_tag other_material_characteristic_isa_tag data_file_isa_tag parameter_value_isa_tag
+ data_file_comment_isa_tag default_isa_tag].map do |tag|
+ FactoryBot.create(tag)
+ end
+
+ # Set isa_json_compliance_enabled to true
+ Seek::Config.isa_json_compliance_enabled = true
+ end
+
+ def teardown
+ # Set isa_json_compliance_enabled back to false
+ Seek::Config.isa_json_compliance_enabled = false
+ end
+
test 'perform' do
- with_config_value(:isa_json_compliance_enabled, true) do
- assert_nothing_raised do
+ # Copy the JSON file to the source_types directory
+ src = Rails.root.join('test', 'fixtures', 'files', 'upload_json_sample_type_template', 'test_templates.json')
+ dest = Seek::Config.append_filestore_path('source_types')
+ FileUtils.cp(src, dest)
+
+ assert_nothing_raised do
+ assert_difference('Template.count', 4) do
PopulateTemplatesJob.perform_now
end
end
end
+
+ test 'perform with json containing invalid sample attribute type' do
+ # Copy the JSON file to the source_types directory
+ src = Rails.root.join('test', 'fixtures', 'files', 'upload_json_sample_type_template', 'invalid_attribute_type_templates.json')
+ dest = Seek::Config.append_filestore_path('source_types')
+ FileUtils.cp(src, dest)
+
+ assert_no_difference('Template.count') do
+ assert_raises(RuntimeError,
+'The property \'#/data/0/data/1/dataType\' value \"Invalid String attribute type 1\" did not match one of the following values: String attribute type 1, Sample multi attribute type 1 in schema file:///home/kepel/projects/seek/lib/seek/isa_templates/template_attributes_schema_test.json# Could not find a Sample Attribute Type named \'Invalid String attribute type 1\' ') do
+ PopulateTemplatesJob.perform_now
+ end
+ end
+ end
+
+ test 'perform with json containing invalid ISA tag' do
+ # Copy the JSON file to the source_types directory
+ src = Rails.root.join('test', 'fixtures', 'files', 'upload_json_sample_type_template', 'invalid_isa_tag_templates.json')
+ dest = Seek::Config.append_filestore_path('source_types')
+ FileUtils.cp(src, dest)
+
+ assert_no_difference('Template.count') do
+ assert_raises(StandardError) do
+ PopulateTemplatesJob.perform_now
+ end
+ end
+ end
+
end
diff --git a/test/unit/ro_crate/workflow_crate_test.rb b/test/unit/ro_crate/workflow_crate_test.rb
new file mode 100644
index 0000000000..f1a85f5109
--- /dev/null
+++ b/test/unit/ro_crate/workflow_crate_test.rb
@@ -0,0 +1,37 @@
+require 'test_helper'
+
+class WorkflowCrateTest < ActiveSupport::TestCase
+ test 'conformsTo' do
+ crate = ROCrate::WorkflowCrate.new
+
+ ids = crate['conformsTo'].map { |x| x['@id'] }
+ assert_includes ids, 'https://w3id.org/ro/crate/1.1'
+ assert_includes ids, 'https://w3id.org/workflowhub/workflow-ro-crate/1.0'
+ end
+
+ test 'test_suites' do
+ crate = ROCrate::WorkflowCrate.new
+ assert_empty crate.test_suites
+ crate['mentions'] = crate.add_contextual_entity(ROCrate::ContextualEntity.new(crate, '#test_suite', { '@type' => 'TestSuite' })).reference
+ assert_equal 1, crate.test_suites.length
+ assert_equal '#test_suite', crate.test_suites.first.id
+
+ crate = ROCrate::WorkflowCrate.new
+ crate['about'] = [
+ crate.add_contextual_entity(ROCrate::ContextualEntity.new(crate, '#test_suite1', { '@type' => 'TestSuite' })).reference,
+ crate.add_contextual_entity(ROCrate::ContextualEntity.new(crate, '#test_suite2', { '@type' => 'TestSuite' })).reference
+ ]
+ assert_equal 2, crate.test_suites.length
+ crate['mentions'] = crate.add_contextual_entity(ROCrate::ContextualEntity.new(crate, '#test_suite2', { '@type' => 'TestSuite' })).reference
+ assert_equal 2, crate.test_suites.length
+ ids = crate.test_suites.map(&:id)
+ assert_includes ids, '#test_suite1'
+ assert_includes ids, '#test_suite2'
+ crate['mentions'] = [crate['mentions'], crate.add_contextual_entity(ROCrate::ContextualEntity.new(crate, '#test_suite3', { '@type' => 'TestSuite' })).reference]
+ assert_equal 3, crate.test_suites.length
+ ids = crate.test_suites.map(&:id)
+ assert_includes ids, '#test_suite1'
+ assert_includes ids, '#test_suite2'
+ assert_includes ids, '#test_suite3'
+ end
+end
diff --git a/test/unit/sample_type_test.rb b/test/unit/sample_type_test.rb
index 89ce2b81d6..ecfcd20799 100644
--- a/test/unit/sample_type_test.rb
+++ b/test/unit/sample_type_test.rb
@@ -1138,6 +1138,25 @@ def setup
assert third_sample_type.next_linked_sample_types.blank?
end
+ test 'create sample attributes from isa template' do
+ template1 = FactoryBot.create(:isa_source_template)
+ template2 = FactoryBot.create(:isa_sample_collection_template)
+
+ sample_type1 = FactoryBot.create(:simple_sample_type, title: 'Sample Type 1', project_ids: @project_ids, contributor: @person, template_id: template1.id)
+ sample_type1.create_sample_attributes_from_isa_template(template1)
+ assert sample_type1.valid?
+ sample_type1.sample_attributes.map do |sa|
+ assert template1.template_attributes.map(&:id).include? sa.template_attribute_id
+ end
+
+ sample_type2 = FactoryBot.create(:simple_sample_type, title: 'Sample Type 2', project_ids: @project_ids, contributor: @person, template_id: template2.id)
+ sample_type2.create_sample_attributes_from_isa_template(template2, sample_type1)
+ assert sample_type2.valid?
+ sample_type2.sample_attributes.map do |sa|
+ assert template2.template_attributes.map(&:id).include? sa.template_attribute_id
+ end
+ end
+
private
# sample type with 3 samples