Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CB-160: query description does not specify constraints applied to a query in search history #157

Merged
merged 1 commit into from
Nov 7, 2017

Conversation

joel-ace
Copy link
Contributor

@joel-ace joel-ace commented Nov 6, 2017

JIRA TICKET NAME:

Concept/Observation - On numeric concept ("Weight (kg)”), query description does not specify the constraints applied to a query in search history.

SUMMARY:

This PR ensures that when a search query is done, there's a description in the search history that contains the search parameters/constraints applied

…ry description does not specify the constraints applied to a query in search history
@coveralls
Copy link

Coverage Status

Coverage remained the same at 75.0% when pulling b084661 on joel-ace:CB-160 into 85b8440 on openmrs:master.

@@ -0,0 +1,30 @@
/**
* takes in a date string and returns it in the format dd/mm/yy
Copy link

@tduyile04 tduyile04 Nov 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice separation of concerns here. 👍

Copy link

@tduyile04 tduyile04 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!!!

@Farhanisto
Copy link

looks good

expect(queryDescriptionBuilder(mockStateWithMoreData, mockConceptName))
.to.equal('Patients with ANY Weight (Kg) < 20 since 1/12/2016 until 1/11/2017');
});
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work with the tests, I will need your help figuring out a few things on testing myself.

PR looks good.

@dkayiwa dkayiwa merged commit 569d176 into openmrs:master Nov 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants