some issues in Version and IVersion

Bug #625975 reported by Sergio Miranda Freire on 2010-08-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OSHIPpy
High
Wagner Mezaroba

Bug Description

The attribute contribution is not set in the initializer.

The invariants below are not enforced:

Contribution_valid: contribution /= Void and contribution.type.is_equal(“CONTRIBUTION”)

Preceding_version_uid_validity: uid.version_tree_id.is_first xor preceding_version_uid /= Void

Lifecycle_state_valid: lifecycle_state /= Void and then terminology(Term_id_openehr).has_code_for_group_id(Group_id_version_lifecycle_state,

lifecycle_state.defining_code)

This last invariant should be implemented through the terminological service.

Maybe it would be interesting to have a representation function for this class.

Related branches

Changed in oship:
importance: Undecided → High
Changed in oship:
assignee: nobody → Wagner Mezaroba (wagnerfrancisco)
Changed in oship:
status: New → In Progress
Changed in oship:
milestone: none → 1.5
Changed in oship:
status: In Progress → Fix Committed
affects: oship → oshippy
Changed in oshippy:
milestone: 1.5 → none
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers