-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add Custom Location Mapping feature: it allows to run automated reports for multiples Location/OrgUni mapping. #11
base: master
Are you sure you want to change the base?
Conversation
…ts for multiples Location/OrgUni mapping.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
am not sure i know well enough what this is meant to add! can you brief me more detailed wise what you want to achieve before i can proceed reviewing.
try { | ||
if (!mappingsDirecory.mkdirs()) { | ||
log.warn("Not able to create resource folder"); | ||
}else{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some right code format needed here too, '}else'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed - please see my last commit
}else{ | ||
File directory = new File(getClass().getClassLoader().getResource("mappings").getFile()); | ||
FileUtils.copyDirectory(directory, mappingsDirecory); | ||
log.debug("Copiyed all the mapping files to:"+mappingsDirecory); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed - please see my last commit
@@ -64,6 +67,8 @@ | |||
public static final String GLOBAL_PROPERTY_USER = "dhisconnector.user"; | |||
|
|||
public static final String GLOBAL_PROPERTY_PASS = "dhisconnector.pass"; | |||
|
|||
public static final String GLOBAL_PROPERTY_FULL_MAPPING = "dhisconnector.fullmappingvalues"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not initialise this in config.xml, better you even have it in one place and reference it from there where else you need it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to be coherent with the other codes (user and password preoperties)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
those (user & pass) are initialised in config.xml
great, i will find time as soon as i can to do a more detailed review and
testing.
thanks
…On Fri, Jan 18, 2019 at 10:57 AM ahammi ***@***.***> wrote:
I added new menu called Custom Location Mapping. It allows to predefine a
list of mapping between locations and OrgUnits :
[image: image]
<https://user-images.githubusercontent.com/45977120/51372778-95dfd380-1afe-11e9-9ca6-0f8c2d7df36c.png>
That custom mapping can be used within Automation menu, so the reports is
runned for all predefined mappings at once:
[image: image]
<https://user-images.githubusercontent.com/45977120/51372670-397cb400-1afe-11e9-857b-5d689728f1b6.png>
I hope I was clear. Thanks for your time
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APJk8huXVdS4aKfjb_ypj0rg89It-1v9ks5vEX5-gaJpZM4Z4AEM>
.
--
*Kaweesi Joseph*
*Jembi Health Systems NPC* *| **Uganda*
*Mobile: **+256784994313** | Office: **Software Developer** | Skype:*
*kaweesi.joseph*
*E-mail: [email protected] <[email protected]>*
*This e-mail contains proprietary and confidential information some or all
of which may be legally privileged. It is for the intended recipient only.
If an addressing or transmission error has misdirected this e-mail, please
notify the author by replying to this e-mail and then deleting same. If you
are not the intended recipient you must not use, disclose, distribute,
copy, print or rely on this e-mail. Jembi Health Systems NPO, its
subsidiaries and associated companies is not liable for the security of
information sent by e-mail and accepts no liability of whatsoever nature
for any loss, damage or expense resulting, directly or indirectly, from the
access of this e-mail or any attachments hereto.*
|
Add Custom Location Mapping feature: it allows to run automated reports for multiples Location/OrgUni mapping.