Ticket #138 (assigned task)

Opened 6 years ago

Last modified 5 years ago

Implement study quality criteria for publication

Reported by: business@… Owned by: business@…
Priority: major Milestone: Should have
Component: General Version:
Keywords: Cc:
Hardware: Operating system:
Product: URL:

Description (last modified by business@…) (diff)

A study should only be published if it meets certain criteria:

  • It should have no orphan samples (all samples should have a parent subject and parent sampling event)
  • It should have at least 1 event?
  • Further requirements, TODO now for Jildau to define these

Implement tests for this functionality (such as SampleTests?.testStudyPublish for the first criterium), and then implement this functionality in Study.constraints as a custom validator for the 'published' field. If validation fails, a clear error message should be returned stating which criteria were not met and for how many entities that was the case.

Change History

comment:1 Changed 6 years ago by business@…

  • Description modified (diff)

comment:2 Changed 6 years ago by work@…

would it be an idea to ask for some pubmed id, or search pubmed to see if the study was published?

comment:3 Changed 6 years ago by business@…

'Published' in GSCF doesn't necessarily mean that there is also a published scientific paper, I meant a property that indicates whether the study is actually visible to the study readers and writers you specify (or everyone if the study is public too), and that's also how 'published' is now implemented. If a study is not 'published' it's only viewable by yourself.

comment:4 Changed 5 years ago by work@…

  • Owner changed from jildau.bouwman@… to business@…
  • Status changed from new to assigned
Note: See TracTickets for help on using tickets.