Re: [Dhis2-devs] DHIS EventReport Plugin

2016-09-16 Thread Vanya Seth
HI Jan

Thats true. For that favorite we can see both "ou"  and "pe" in the
columns. What you mentioned is exactly whats happening when we provide "pe"
as rows again.
"pe" on the columns is the relative time period of the event report and the
ones that we supply on the rows is the specific periods that we want to
fetch the data for.

Do you see any issue with this config?

Ideally I was hoping that the plugin would take care of appending the dim
items. Similar configs are working fine for other 3 types of viz objects.


Regards
Vanya
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Response differences between /api/metadata and /api/23/metadata

2016-09-16 Thread Lorill Crees
Thanks for getting back to me so quickly Morten! I've answered inline below.

On Thu, Sep 15, 2016 at 10:19 PM, Morten Olav Hansen 
wrote:

   1. When submitting an identical post containing
   {"programTrackedEntityAttributes" [...], "program" [...]}, where there
   is an error in the Program being posted, the call to /api/metadata responds
   with success for "programTrackedEntityAttributes" with the correct
   "importCount" counts, but the call to /api/23/metadata responds for
   "programTrackedEntityAttributes" with "stats" counts containing all
   zeros, and no "objectReports". It is like the first item being posted is
   completely ignored if the second item posted has errors. Is this the
   intended behaviour? And should there be "objectReports" regardless? Please
   see attached examples.

Yes, what kind of error are you getting? a reference error, or a validation
>>> error? in the old importer, it would always try to just import what it
>>> could.. which was not always ideal (missing references etc was just
>>> ignored). If it's just reference error, and you want to ignore them..
>>> please try with `atomicMode=NONE`, regarding the object report..
>>>
>>
>> We need to write our response parser to be able to parse any kind of
>> error that may happen. Our program ingests CSV files from the user and we
>> attempt to do as much error checking in advance as possible, but there may
>> be other errors that happen when posting to the API such as validation
>> errors, reference errors, or even 500 errors if there is an error within
>> DHIS 2 itself. Given that we need to cater to every possible scenario, I'm
>> not sure if we should be using "atomicMode=NONE" or not. Also, should there
>> be "objectReports" regardless?
>>
>
> I'm not 100% sure what is the best approach here, I think maybe we want to
> add some new parameters to control the output a bit. If you are posting 10
> new data elements, it is very useful to get the object report back as they
> will contain the new UID of the object, on the flipside.. if you are
> importing 5 objects.. the payload sent back might just too much in most
> cases, and not very useful (in that case, probably you are more interested
> in errors)
>

1. Adding new parameters to control the output is a great idea, is this
something that you plan to implement as part of the blueprint you mention
below?
2. I'm also wondering if it would make more sense to mark the ignored
objects as "ignored" in the stats, instead of having zeros for all the
stats? I've re-attached our output, and you can see that I posted
4 programTrackedEntityAttributes, and the stats show 0 total / 0 ignored
which is not entirely accurate. I would have expected 4 total / 4 ignored.
Thoughts?

>
>
>>
1. There is no longer a "lastImported" field. Is this now
deprecated?

 There should now be a id exported in the object report.. I think there
>>> might be some inconsistencies there though.. I will go through it, in
>>> general this field was mostly used for our /api/type/id endpoints.. were
>>> you also using it for /api/metadata? (it's not very useful unless you are
>>> only sending 1 single object)
>>>
>>
>> Agreed that using "lastImported" for /api/metadata is not very useful
>> unless sending one single object. However, we are using our generic
>> response parser for all DHIS 2 API endpoints and are trying to avoid the
>> need for special case logic dependent upon which specific endpoint was
>> called. Additionally, we do still use this field for many of the API calls
>> where we do send one single object. Is the plan to deprecate the
>> "lastImported" field across the API, or only in the /api/metadata call, so
>> we can adjust our parser accordingly?
>>
>
> The lastImported field has been removed all over, what is happening now,
> is that if you POST a new data element to /api/dataElements, you will get a
> single object report back.. and the uid is contained within there
>

Thanks.


>
1. The /api/23/metadata response with "errorReports" within
"objectReports" appears to have replaced the /api/metadata
"importConflicts". In /api/metadata, the "importConflicts" "object" 
 field
contains the actual name of the object that has the error (eg: the 
 Program
short name in our case). However, in /api/23/metadata there is only the
index which makes it more work to debug. Is it possible to also include 
 the
name of the object in the error report like the prior API version does?

 Hm, right. I understand that it's useful, but that can easily add up to
>>> a lot of data returned. Maybe we should add some kind of "debug" mode where
>>> more output is provided.
>>>
>>
>> Although I understand that this might add more data to the payload, it
>> would decrease the amount of data that we need to pass around in our app,
>> and also potentially decrease the number of API calls we need to do. Not
>> having this inform

Re: [Dhis2-devs] Password not working when creating Users through API

2016-09-16 Thread Harsh Atal
Hi Morten

Tried with a valid password(District1234), same issue. Password doesn't
work, everything else is created fine.
Version:2.23Build revision:23016Build date:2016-06-20 17:48

Could it be a bug?

Regards
harsh

On 18 August 2016 at 14:17, Morten Olav Hansen  wrote:

> Hi Harsh
>
> Try with a valid password, something like `Harsh123`
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Thu, Aug 18, 2016 at 10:41 AM, Harsh Atal  wrote:
>
>> Dear Devs,
>>
>> We made several users by Posting to "../api/Users" endpooint.
>> Eg payload-
>>
>> {"firstName":"harsh","surname":"harsh","email":"harsh",
>> "userCredentials": {"username":"harsh","password"
>> :"harsh","userRoles":[{"id":"yrB6vc5Ip3r"}]},
>> "organisationUnits":[{"id":"WBFNadSm5EQ"}],"userGroups":[]}
>>
>> The users were created all right but the given password didn't work. So
>> we had to change the password through application..
>>
>> Is there something we missed when creating user through API? Please help.
>>
>> DHIS2 version - 2.23
>>
>> Thank You
>> harsh
>>
>>
>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Understanding the 'relativePeriodDate' property

2016-09-16 Thread Vanya Seth
Hello devs

We are leveraging the "relativePeriodDate" parameter on the DHIS2 chart
plugin.
Say we want data starting July 2016 for the last 3 months i.e. May, June
and July 2016.
Logically we think of 2016-07-31 as the relativePerioDate to fetch data for
the above example. But when we do so we get the data starting June and
backwards.

It's like sending "October 2016" to get data from September 2016 and
backwards.

Is this the way its supposed to work?

Any help would be appreciated.

-- 
With Regards
Vanya
ThoughtWorks Technologies
Hyderabad

--Stay Hungry Stay Foolish!!
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] DHIS EventReport Plugin

2016-09-16 Thread Vanya Seth
Hi Jan

We are working with DHIS 2.24 and the plugin has been copied from our fork
of dhis-core. So, its from the master branch.
Please let know in case you need more info.

Regards
Vanya

On Fri, Sep 16, 2016 at 3:36 PM, Jan Henrik Øverland  wrote:

> Hi Vanya,
>
> I will look at it, but I need to know the version of the plugin and the
> version of the dhis2 instance.
>
> Jan
>
> On 16 September 2016 at 11:58, Vanya Seth  wrote:
>
>> Hello Devs
>>
>> We are leveraging the eventreport plugin for rendering the event reports
>> in one of our custom apps.
>>
>> We want to get data for specific periods and these could very well be in
>> the past as well.
>> To achieve this we use the "pe" dimension and pass it as "rows" property
>> while making a call to the getEventReport function.
>>
>> The event report is fetched alright in the Event Report web app but while
>> we try to get it through the plugin (the API query string as created by
>> this plugin) we get a 409 Conflict.
>>
>> On further investigation we realize that there are two "pe" type
>> dimensions getting added which is apparently the cause of the conflict.
>>
>> This is the way we are trying to make a call to the plugin:
>>
>> DHIS.getEventReport({
>> url: dhisUrl, el: eventReport.id, id: eventReport.id,
>> *rows: [{dimension: "pe", items: dimensionPeriods}]*
>> });
>>
>> Here the items for the "pe" contains the iso periods for which we want
>> data.
>>
>>
>> And this is the API query that gets generated:
>>
>> http://localhost:8000/api/analytics/events/aggregate/FqtMkfZ
>> k93u.json?stage=SKQlKPszsak&dimension=ou:zOyMxdCLXBM&
>> *dimension=pe:LAST_12_MONTHS&dimension=pe:201510;201511;201512;201601;201602;201603;201604;201605;201606;201607;201608;201609*
>> &outputType=EVENT&displayProperty=NAME
>>
>> Can you help us identify the right way to invoke this plugin?
>>
>> Thanks for the help in advance.
>>
>>
>> --
>> With Regards
>> Vanya
>> ThoughtWorks Technologies
>> Hyderabad
>>
>> --Stay Hungry Stay Foolish!!
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Jan Henrik Øverland
> Software developer, DHIS 2
> University of Oslo
> http://www.dhis2.org 
>



-- 
With Regards
ThoughtWorks Technologies
Hyderabad

--Stay Hungry Stay Foolish!!
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] DHIS EventReport Plugin

2016-09-16 Thread Vanya Seth
Hello Devs

We are leveraging the eventreport plugin for rendering the event reports in
one of our custom apps.

We want to get data for specific periods and these could very well be in
the past as well.
To achieve this we use the "pe" dimension and pass it as "rows" property
while making a call to the getEventReport function.

The event report is fetched alright in the Event Report web app but while
we try to get it through the plugin (the API query string as created by
this plugin) we get a 409 Conflict.

On further investigation we realize that there are two "pe" type dimensions
getting added which is apparently the cause of the conflict.

This is the way we are trying to make a call to the plugin:

DHIS.getEventReport({
url: dhisUrl, el: eventReport.id, id: eventReport.id,
*rows: [{dimension: "pe", items: dimensionPeriods}]*
});

Here the items for the "pe" contains the iso periods for which we want data.


And this is the API query that gets generated:

http://localhost:8000/api/analytics/events/aggregate/FqtMkfZk93u.json?stage=SKQlKPszsak&dimension=ou:zOyMxdCLXBM&;
*dimension=pe:LAST_12_MONTHS&dimension=pe:201510;201511;201512;201601;201602;201603;201604;201605;201606;201607;201608;201609*
&outputType=EVENT&displayProperty=NAME

Can you help us identify the right way to invoke this plugin?

Thanks for the help in advance.


-- 
With Regards
Vanya
ThoughtWorks Technologies
Hyderabad

--Stay Hungry Stay Foolish!!
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Problem in running DHIS2.15 war file with empty database.

2016-09-16 Thread Brajesh Murari
Hello Devs,

When i am running dhis2.15 using $ mvn jetty:run-war on windows 7 machine
with i3 and 4 GB RAM configuration, it appears like posed(stops idle) at
one place ie. at the last line of even trace as you can find below in log
trace

Can someone justify me whats going wrong there in running dhis2 application
?

$ mvn jetty:run-war
[INFO] Scanning for projects...
[INFO]
[INFO]

[INFO] Building DHIS Web Portal 2.15
[INFO]

[INFO]
[INFO] >>> maven-jetty-plugin:6.1.26:run-war (default-cli) > package @
dhis-web-portal >>>
Downloading:
http://maven.dhis2.org/amplecode-local/org/apache/ant/ant/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.ant:ant/maven-metadata.xml
from/to amplecode_maven2_repo (http://maven.dhis2.org/amplecode-local):
maven.dhis2.org
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
dhis-web-portal ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
dhis-web-portal ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources)
@ dhis-web-portal ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
D:\sorce\2.15\dhis-2\dhis-web\dhis-web-portal\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @
dhis-web-portal ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ dhis-web-portal
---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-war-plugin:2.4:war (default-war) @ dhis-web-portal ---
[INFO] Packaging webapp
[INFO] Assembling webapp [dhis-web-portal] in
[D:\sorce\2.15\dhis-2\dhis-web\dhis-web-portal\target\dhis]
[INFO] Processing war project
[INFO] Copying webapp resources
[D:\sorce\2.15\dhis-2\dhis-web\dhis-web-portal\src\main\webapp]
[INFO] Building jar:
D:\sorce\2.15\dhis-2\dhis-web\dhis-web-portal\target\dhis\WEB-INF\lib\dhis-web-portal-2.15.jar
[INFO] Processing overlay [ id org.hisp.dhis:dhis-web-commons-resources]
[INFO] Processing overlay [ id org.hisp.dhis:dhis-web-ohie]
[INFO] Processing overlay [ id org.hisp.dhis:dhis-web-sms]
[INFO] Processing overlay [ id
org.hisp.dhis:dhis-web-maintenance-datadictionary]
[INFO] Processing overlay [ id org.hisp.dhis:dhis-web-maintenance-dataset]
[INFO] Processing overlay [ id
org.hisp.dhis:dhis-web-maintenance-organisationunit]
[INFO] Processing overlay [ id org.hisp.dhis:dhis-web-maintenance-user]
[INFO] Processing overlay [ id org.hisp.dhis:dhis-web-maintenance-dataadmin]
[INFO] Processing overlay [ id org.hisp.dhis:dhis-web-maintenance-settings]
[INFO] Processing overlay [ id org.hisp.dhis:dhis-web-maintenance-program]
[INFO] Processing overlay [ id org.hisp.dhis:dhis-web-maintenance-mobile]
[INFO] Processing overlay [ id org.hisp.dhis:dhis-web-importexport]
[INFO] Processing overlay [ id org.hisp.dhis:dhis-web-validationrule]
[INFO] Processing overlay [ id org.hisp.dhis:dhis-web-dataentry]
[INFO] Processing overlay [ id org.hisp.dhis:dhis-web-dashboard-integration]
[INFO] Processing overlay [ id org.hisp.dhis:dhis-web-mapping]
[INFO] Processing overlay [ id org.hisp.dhis:dhis-web-caseentry]
[INFO] Processing overlay [ id org.hisp.dhis:dhis-web-light]
[INFO] Processing overlay [ id org.hisp.dhis:dhis-web-mobile]
[INFO] Processing overlay [ id org.hisp.dhis:dhis-web-reporting]
[INFO] Processing overlay [ id org.hisp.dhis:dhis-web-visualizer]
[INFO] Processing overlay [ id org.hisp.dhis:dhis-web-pivot]
[INFO] Processing overlay [ id org.hisp.dhis:dhis-web-event-capture]
[INFO] Processing overlay [ id org.hisp.dhis:dhis-web-event-reports]
[INFO] Processing overlay [ id org.hisp.dhis:dhis-web-tracker-capture]
[INFO] Processing overlay [ id
org.hisp.dhis:dhis-web-maintenance-appmanager]
[INFO] Webapp assembled in [10735 msecs]
[INFO] Building war:
D:\sorce\2.15\dhis-2\dhis-web\dhis-web-portal\target\dhis.war
[INFO]
[INFO] <<< maven-jetty-plugin:6.1.26:run-war (default-cli) < package @
dhis-web-portal <<<
[WARNING] Failure to transfer org.apache.ant:ant/maven-metadata.xml from
http://maven.dhis2.org/amplecode-local was cached in the local repository,
resolution will not be reattempted until the update interval of
amplecode_maven2_repo has elapsed or updates are forced. Original error:
Could not transfer metadata org.apache.ant:ant/maven-metadata.xml from/to
amplecode_maven2_repo (http://maven.dhis2.org/amplecode-local):
maven.dhis2.org
[INFO]
[INFO] --- maven-jetty-plugin:6.1.26:run-war (default-cli) @
dhis-web-portal ---
[INFO] Configuring Jetty for project: DHIS Web Portal
[INFO] Logging to org.slf4j.impl.SimpleLogger(org.mortbay.log) via
org.mortbay.log.Slf4jLog
[INF

[Dhis2-devs] [Bug 1623966] Re: Build-Error

2016-09-16 Thread Halvdan Hoem Grelland
Do jetty:run-war when you run the dhis-web-portal project.

Not a bug. Closed.

On Thu, Sep 15, 2016 at 4:22 PM, Brajesh Murari <1623...@bugs.launchpad.net>
wrote:

> Public bug reported:
>
> When i am trying to run the dhis2.24 war file using jetty plugin, it
> comes with following info trace but in every subsequent try, it appears
> as the same error info trace as given below. Can anybody help me whats
> going wrong in this trace...?
>
> $ mvn clean -Dmaven.test.skip=true install jetty:run
> Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
> MaxPermSize=1024m; su
> pport was removed in 8.0
> [INFO] Scanning for projects...
> [INFO]
> [INFO] 
> 
> [INFO] Building DHIS Web Portal 2.24
> [INFO] 
> 
> [INFO]
> [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ dhis-web-portal
> ---
> [INFO] Deleting D:\source\2.24\dhis-2\dhis-web\dhis-web-portal\target
> [INFO]
> [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
> dhis-web-p
> ortal ---
> [debug] execute contextualize
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 2 resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
> dhis-web-port
> al ---
> [INFO] Nothing to compile - all classes are up to date
> [INFO]
> [INFO] --- maven-resources-plugin:2.5:testResources
> (default-testResources) @ dh
> is-web-portal ---
> [debug] execute contextualize
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory D:\source\2.24\dhis-2\dhis-
> web\dhis-w
> eb-portal\src\test\resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile)
> @ dhis-
> web-portal ---
> [INFO] Not compiling test sources
> [INFO]
> [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @
> dhis-web-portal --
> -
> [INFO] Tests are skipped.
> [INFO]
> [INFO] --- maven-war-plugin:2.4:war (default-war) @ dhis-web-portal ---
> [INFO] Packaging webapp
> [INFO] Assembling webapp [dhis-web-portal] in [D:\source\2.24\dhis-2\dhis-
> web\dh
> is-web-portal\target\dhis]
> [INFO] Processing war project
> [INFO] Copying webapp resources [D:\source\2.24\dhis-2\dhis-
> web\dhis-web-portal\
> src\main\webapp]
> [INFO] Building jar: D:\source\2.24\dhis-2\dhis-
> web\dhis-web-portal\target\dhis\
> WEB-INF\lib\dhis-web-portal-2.24.jar
> [INFO] Processing overlay [ id org.hisp.dhis:dhis-web-commons-resources]
> [INFO] Processing overlay [ id org.hisp.dhis:dhis-web-ohie]
> [INFO] Processing overlay [ id org.hisp.dhis:dhis-web-uaa]
> [INFO] Processing overlay [ id org.hisp.dhis:dhis-web-sms]
> [INFO] Processing overlay [ id org.hisp.dhis:dhis-web-maintenance-dataset]
> [INFO] Processing overlay [ id org.hisp.dhis:dhis-web-maintenance-user]
> [INFO] Processing overlay [ id org.hisp.dhis:dhis-web-
> maintenance-dataadmin]
> [INFO] Processing overlay [ id org.hisp.dhis:dhis-web-maintenance-program]
> [INFO] Processing overlay [ id org.hisp.dhis:dhis-web-maintenance-mobile]
> [INFO] Processing overlay [ id org.hisp.dhis:dhis-web-importexport]
> [INFO] Processing overlay [ id org.hisp.dhis:dhis-web-validationrule]
> [INFO] Processing overlay [ id org.hisp.dhis:dhis-web-dataentry]
> [INFO] Processing overlay [ id org.hisp.dhis:dhis-web-
> dashboard-integration]
> [INFO] Processing overlay [ id org.hisp.dhis:dhis-web-light]
> [INFO] Processing overlay [ id org.hisp.dhis:dhis-web-mobile]
> [INFO] Processing overlay [ id org.hisp.dhis:dhis-web-reporting]
> [INFO] Processing overlay [ id org.hisp.dhis:dhis-web-apps]
> [INFO] Webapp assembled in [275224 msecs]
> [INFO] Building war: D:\source\2.24\dhis-2\dhis-
> web\dhis-web-portal\target\dhis.
> war
> [INFO]
> [INFO] --- maven-install-plugin:2.4:install (default-install) @
> dhis-web-portal
> ---
> [INFO] Installing D:\source\2.24\dhis-2\dhis-web\dhis-web-portal\target\
> dhis.war
>  to C:\Users\SDRC_DEV25\.m2\repository\org\hisp\dhis\dhis-
> web-portal\2.24\dhis-w
> eb-portal-2.24.war
> [INFO] Installing D:\source\2.24\dhis-2\dhis-web\dhis-web-portal\pom.xml
> to C:\U
> sers\SDRC_DEV25\.m2\repository\org\hisp\dhis\dhis-
> web-portal\2.24\dhis-web-porta
> l-2.24.pom
> [INFO]
> [INFO] >>> jetty-maven-plugin:9.3.8.v20160314:run (default-cli) >
> test-compile @
>  dhis-web-portal >>>
> [INFO]
> [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
> dhis-web-p
> ortal ---
> [debug] execute contextualize
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 2 resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
> dhis-web-port
> al ---
> [INFO] Nothing to compile - all classes are up to date
> [INFO]
> [INFO] --- maven-resources-plugin:2.5:testResources
> (default-testResources) @ dh
> is-web-portal ---
> [debug] execute contextualize
> [INFO] Using 'UTF-8' encoding to copy filtered res

Re: [Dhis2-devs] [Bug 1624062] Re: userSettings resource doesn't work properly

2016-09-16 Thread Kamil Krampa
Great, thanks! Is it possible to fix this also in 2.22?

W dniu 2016-09-16 05:43:34 użytkownik Morten Olav Hansen 
<1624...@bugs.launchpad.net> napisał:
> You are right, this have now been fixed in 224 and master (give our
> server a bit of time to re-deploy)
> 
> ** Changed in: dhis2
>  Assignee: (unassigned) => Morten Olav Hansen (mortenoh)
> 
> ** Changed in: dhis2
> Milestone: None => 2.25
> 
> ** Changed in: dhis2
>Status: New => Fix Committed
> 
> -- 
> You received this bug notification because you are a member of DHIS 2
> developers, which is subscribed to DHIS.
> https://bugs.launchpad.net/bugs/1624062
> 
> Title:
>   userSettings resource doesn't work properly
> 
> Status in DHIS:
>   Fix Committed
> 
> Bug description:
>   Hi,
>   I'm trying to get keyUiLocale property for a particular user via API. I 
> tried /api/userSettings/keyUiLocale?user=someUsername but it doesn't return 
> proper results. I guess the problem is here: 
> https://github.com/dhis2/dhis2-core/blob/master/dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/UserSettingController.java#L159,
>  credentials.getUser() doesn't return a user with requested username but the 
> owner of credentials object.
> 
>   Is there some other way to fetch keyUiLocale of a particular user (I
>   need to get keyUiLocale of any user not only current)?
> 
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dhis2/+bug/1624062/+subscriptions
> 
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1624062

Title:
  userSettings resource doesn't work properly

Status in DHIS:
  Fix Committed

Bug description:
  Hi,
  I'm trying to get keyUiLocale property for a particular user via API. I tried 
/api/userSettings/keyUiLocale?user=someUsername but it doesn't return proper 
results. I guess the problem is here: 
https://github.com/dhis2/dhis2-core/blob/master/dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/UserSettingController.java#L159,
 credentials.getUser() doesn't return a user with requested username but the 
owner of credentials object.

  Is there some other way to fetch keyUiLocale of a particular user (I
  need to get keyUiLocale of any user not only current)?

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1624062/+subscriptions

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] [Bug 1624020] Re: New dataset UI don't allow "default" category

2016-09-16 Thread Víctor García
*** This bug is a duplicate of bug 1603179 ***
https://bugs.launchpad.net/bugs/1603179

Ups, sorry, didn't see the other one.
Marked this bug as duplicated.

** This bug has been marked a duplicate of bug 1603179
   DataSet creation misses category combo

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1624020

Title:
  New dataset UI don't allow "default" category

Status in DHIS:
  New

Bug description:
  Tested in 2.24 rev593a9bc

  When creating a new Dataset using the new user interface (the one
  under Maintenance), it is not possible to select "default" value for
  the category combination. This field is left empty by default.

  Besides, this fact causes the failure of resource table regeneration
  if the dataset is assign to any orgunit. The generation of the table
  "_datasetorganisationunitcategory" will fail because of a null pointer
  exception.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1624020/+subscriptions

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Maintenance App validation problems with '%' character

2016-09-16 Thread David Siang Fong Oh
Thanks Lars.

-doh

On Fri, Sep 16, 2016 at 12:32 PM, Lars Helge Øverland 
wrote:

> Hi David,
>
> I can confirm your issue. Bug reported here: https://github.com/
> dhis2/maintenance-app/issues/239
>
> We will look into it.
>
> regards,
>
> Lars
>
> On Thu, Sep 15, 2016 at 4:22 PM, David Siang Fong Oh  > wrote:
>
>> Hi team,
>>
>> We are using v2.23 (from branch on GitHub) and are encountering
>> validation issues with the '%' character in the maintenance app. This is
>> applicable to all entities that have validation rules (i.e. DataElements,
>> Categories etc.). The specific error is obfuscated in the JS console as a
>> Minified exception. The issue is not replicable on our local dev
>> environments which suggests it must be a minification issue.
>>
>> Version: 2.23
>> Revision: 979a8e9952be410438563178f47d813f3bc0a60d
>> Maintenance App version: v23.0.2
>>
>> This is also an issue on the latest stable demo at
>> https://play.dhis2.org/demo where the validation error is shown
>> incorrectly as "This field requires a unique value". An example name to
>> trigger the error is "Burns on 10% body area".
>>
>> Any ideas what may be causing this?
>>
>> Cheers,
>>
>> David Oh
>> Developer
>> ThoughtWorks
>> d...@thoughtworks.com
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> l...@dhis2.org
> http://www.dhis2.org 
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Maintenance App validation problems with '%' character

2016-09-16 Thread Lars Helge Øverland
Hi David,

I can confirm your issue. Bug reported here:
https://github.com/dhis2/maintenance-app/issues/239

We will look into it.

regards,

Lars

On Thu, Sep 15, 2016 at 4:22 PM, David Siang Fong Oh 
wrote:

> Hi team,
>
> We are using v2.23 (from branch on GitHub) and are encountering validation
> issues with the '%' character in the maintenance app. This is applicable to
> all entities that have validation rules (i.e. DataElements, Categories
> etc.). The specific error is obfuscated in the JS console as a Minified
> exception. The issue is not replicable on our local dev environments
> which suggests it must be a minification issue.
>
> Version: 2.23
> Revision: 979a8e9952be410438563178f47d813f3bc0a60d
> Maintenance App version: v23.0.2
>
> This is also an issue on the latest stable demo at
> https://play.dhis2.org/demo where the validation error is shown
> incorrectly as "This field requires a unique value". An example name to
> trigger the error is "Burns on 10% body area".
>
> Any ideas what may be causing this?
>
> Cheers,
>
> David Oh
> Developer
> ThoughtWorks
> d...@thoughtworks.com
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
l...@dhis2.org
http://www.dhis2.org 
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp