← Back to team overview

oship-dev team mailing list archive

[Bug 627557] [NEW] issues in class ResourceDescription

 

Public bug reported:

This class has not been implemented yet.
	
The type of details is IRESOURCE_DESCRIPTION_ITEM

originalAuthor is Dict and not List

otherDetails is Dict and not List

parentResource is an AUTHORED_RESOURCE and not OBJECT_REF. This is
another case of circular dependencies.


The following invariants should be enforced:

Original_author_valid: original_author /= Void and then not original_author.is_empty
Lifecycle_state_valid: lifecycle_state /= Void and then not lifecycle_state.is_empty
Details_valid: details /= Void and then not details.is_empty
Language_valid: parent_resource /= Void implies details.for_all (d | parent_resource.languages_available.has(d.language.code_string))
Parent_resource_valid: parent_resource /= Void implies parent_resource.description = Current

Maybe it would be interesting to implement a representation method for
this class

** Affects: oship
     Importance: High
         Status: New

** Changed in: oship
   Importance: Undecided => High

-- 
issues in class ResourceDescription
https://bugs.launchpad.net/bugs/627557
You received this bug notification because you are a member of OSHIP
Development Team, which is subscribed to Open Source Health Information
Platform.

Status in Open Source Health Information Platform (OSHIP): New

Bug description:
This class has not been implemented yet.
	
The type of details is IRESOURCE_DESCRIPTION_ITEM

originalAuthor is Dict and not List

otherDetails is Dict and not List

parentResource is an AUTHORED_RESOURCE and not OBJECT_REF. This is another case of circular dependencies.


The following invariants should be enforced:

Original_author_valid: original_author /= Void and then not original_author.is_empty
Lifecycle_state_valid: lifecycle_state /= Void and then not lifecycle_state.is_empty
Details_valid: details /= Void and then not details.is_empty
Language_valid: parent_resource /= Void implies details.for_all (d | parent_resource.languages_available.has(d.language.code_string))
Parent_resource_valid: parent_resource /= Void implies parent_resource.description = Current

Maybe it would be interesting to implement a representation method for this class





Follow ups

References