Ignore:
Timestamp:
Oct 21, 2010, 3:54:12 PM (10 years ago)
Author:
business@…
Message:

also added assays check in Study.deleteEventGroup, added test to check whether a study with orphan events cannot be published (functionality is still to be implemented)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/studycapturing/Study.groovy

    r965 r966  
    4444                owner(nullable: true, blank: true)
    4545                code(nullable:false, blank:true,unique:true)
     46
     47                // TODO: add custom validator for 'published' to assess whether the study meets all quality criteria for publication
     48                // tested by SampleTests.testStudyPublish
    4649        }
    4750
     
    360363                                        }
    361364
    362                                         // TODO: remove the sample from any assays it belongs to
     365                                        // remove the sample from any assays it belongs to
     366                                        this.assays.findAll { it.samples.any { it == sample }} .each {
     367                                                println ".removed sample ${sample.name} from assay ${it.name}"
     368                                                it.removeFromSamples(sample)
     369                                        }
    363370
    364371                                        // Also here, contrary to documentation, an extra delete() is needed
Note: See TracChangeset for help on using the changeset viewer.