Plan for OpenMRS Core 1.12.x

Stages & jobs

  1. Build and Test

  2. Deploy

  3. Release

    Requires a user to start manually

Build result summary

Details

Completed
Queue duration
1 second
Duration
4 minutes
Labels
None
Revisions
Git
62f3203de6bbc83e34e6f32cf15efc824a61fb14 62f3203de6bbc83e34e6f32cf15efc824a61fb14
Release scripts
a9c6b4741f415820e397e9b150cf80baca7f9368 a9c6b4741f415820e397e9b150cf80baca7f9368
Total tests
3415
Fixed in
#34 (Changes by Darius Jazayeri <jazayeri@alum.mit.edu>)

Tests

Responsible

  • djazayeri djazayeri Automatically assigned

Code commits

Git
Author Commit Message Commit date
Darius Jazayeri <jazayeri@alum.mit.edu> Darius Jazayeri <jazayeri@alum.mit.edu> 62f3203de6bbc83e34e6f32cf15efc824a61fb14 62f3203de6bbc83e34e6f32cf15efc824a61fb14 Merge pull request #1700 from Bahmni/1.12.x
TRUNK-4834 - Support for Order Sets and Order Groups
ys-achinta <achintar@thoughtworks.com> ys-achinta <achintar@thoughtworks.com> 1c35883399d359cb5bf83bb43409e7952f538e9f 1c35883399d359cb5bf83bb43409e7952f538e9f TRUNK-4834 | Support for orderSets and orderGroups
Creating OrderSet, OrderSetMember metadata,
Corresponding tables order_set, order_set_meber,
Services OrderSetService for operations on the metadata.
Creating OrderGroup
Adding extra methods in OrderService for saving the OrderGroup,
Updating the Order model to have new fields for OrderGroup

Used a List for putting the orderSetMembers in OrderSet,
        (Hibernate internally sets the sequenceNumber)
Added functionality in OrderSet to add a member at a particular position
Used a List for putting the orders in the OrderGroup,
        (Used a bag for mapping the list of orders in hibernate mapping file)
Added functionality in OrderGroup to add an order at a particular postion.

Added functionality for the API to handle negative position values for adding orderSetMembers and Orders
Added validation for illegal position values for adding orderSetMembers and Orders

Added a parameter to the OrderSetMember model to take in a templateType.
(This template type is a name which will decide the schema of the orderTemplate
to be generated)

OrderSet-Implementation:
Added two utility methods to Encounter model
        a. to getOrderGroups within a list of orders
        b. to get the orders which are not associated with orderGroups

EncounterSave iterates through the list of orderGroups and saves them one by one.
EncounterSave iterates through a list of order not having orderGroups for saving them.

OrderService saves an orderGroup and the orders within it.

Tests

New test failures 2
Status Test View job Duration
Collapse Failed Database1_9_7UpgradeIT shouldUpgradeFromClean1_9To1_10 History
Integration Test 7 secs
org.hibernate.HibernateException: Missing column: sort_weight in OPENMRS.PUBLIC.ORDERS
	at org.hibernate.mapping.Table.validateColumns(Table.java:276)
	at org.hibernate.cfg.Configuration.validateSchema(Configuration.java:1343)
	at org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:139)
	at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:378)
	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1872)
	at org.openmrs.util.databasechange.DatabaseUpgradeTestUtil.buildSessionFactory(DatabaseUpgradeTestUtil.java:247)
	at org.openmrs.util.databasechange.Database1_9_7UpgradeIT.shouldUpgradeFromClean1_9To1_10(Database1_9_7UpgradeIT.java:153)
(33 more lines...)
Collapse Failed Database1_9_7UpgradeIT shouldPassIfAllExistingDrugOrderUnitsAndFrequenciesAreMappedToConcepts History
Integration Test 9 secs
org.hibernate.HibernateException: Missing column: sort_weight in OPENMRS.PUBLIC.ORDERS
	at org.hibernate.mapping.Table.validateColumns(Table.java:276)
	at org.hibernate.cfg.Configuration.validateSchema(Configuration.java:1343)
	at org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:139)
	at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:378)
	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1872)
	at org.openmrs.util.databasechange.DatabaseUpgradeTestUtil.buildSessionFactory(DatabaseUpgradeTestUtil.java:247)
	at org.openmrs.util.databasechange.Database1_9_7UpgradeIT.shouldPassIfAllExistingDrugOrderUnitsAndFrequenciesAreMappedToConcepts(Database1_9_7UpgradeIT.java:269)
(33 more lines...)

Jira issues

IssueDescriptionStatus
Unknown Issue TypeTRUNK-4834Could not obtain issue details from Jira