Analytics API: metadata.names[period] null when displayProperty=SHORTNAME

Bug #1401952 reported by Olav P on 2014-12-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DHIS
Medium
Morten Olav Hansen

Bug Description

When using the displayName property in Analytics API and setting it to SHORTNAME, names of periods are not included in the metadata.

Example (demo/dev server):
api/analytics.json?dimension=dx:cYeuwXTCPkU&dimension=ou:USER_ORGUNIT&dimension=pe:201311&displayProperty=SHORTNAME

Morten Olav Hansen (mortenoh) wrote :

Should be fixed in latest trunk / 2.17. Please try it out and report back.

Changed in dhis2:
assignee: nobody → Morten Olav Hansen (mortenoh)
importance: Undecided → Medium
status: New → Fix Committed
milestone: none → 2.17

It is possibly fixed. If the period in ISO format count as a name it is fixed, if it is supposed to give the period name as when using displayProperty=NAME it is not fixed.

Name:
«201411»: «November 2014"

Shortname:
«201411»: «201411»

> 15. des. 2014 kl. 13.32 skrev Morten Olav Hansen <email address hidden>:
>
> Should be fixed in latest trunk / 2.17. Please try it out and report
> back.
>
> ** Changed in: dhis2
> Assignee: (unassigned) => Morten Olav Hansen (mortenoh)
>
> ** Changed in: dhis2
> Importance: Undecided => Medium
>
> ** Changed in: dhis2
> Status: New => Fix Committed
>
> ** Changed in: dhis2
> Milestone: None => 2.17
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1401952
>
> Title:
> Analytics API: metadata.names[period] null when
> displayProperty=SHORTNAME
>
> Status in DHIS 2:
> Fix Committed
>
> Bug description:
> When using the displayName property in Analytics API and setting it to
> SHORTNAME, names of periods are not included in the metadata.
>
> Example (demo/dev server):
> api/analytics.json?dimension=dx:cYeuwXTCPkU&dimension=ou:USER_ORGUNIT&dimension=pe:201311&displayProperty=SHORTNAME
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dhis2/+bug/1401952/+subscriptions

Morten Olav Hansen (mortenoh) wrote :

Yeah, it makes sense no? since its short-name? or would you expect the full
name for periods as before?

--
Morten

On Mon, Dec 15, 2014 at 1:50 PM, Olav Poppe <email address hidden> wrote:
>
> It is possibly fixed. If the period in ISO format count as a name it is
> fixed, if it is supposed to give the period name as when using
> displayProperty=NAME it is not fixed.
>
> Name:
> «201411»: «November 2014"
>
> Shortname:
> «201411»: «201411»
>
>
> > 15. des. 2014 kl. 13.32 skrev Morten Olav Hansen <
> <email address hidden>>:
> >
> > Should be fixed in latest trunk / 2.17. Please try it out and report
> > back.
> >
> > ** Changed in: dhis2
> > Assignee: (unassigned) => Morten Olav Hansen (mortenoh)
> >
> > ** Changed in: dhis2
> > Importance: Undecided => Medium
> >
> > ** Changed in: dhis2
> > Status: New => Fix Committed
> >
> > ** Changed in: dhis2
> > Milestone: None => 2.17
> >
> > --
> > You received this bug notification because you are subscribed to the bug
> > report.
> > https://bugs.launchpad.net/bugs/1401952
> >
> > Title:
> > Analytics API: metadata.names[period] null when
> > displayProperty=SHORTNAME
> >
> > Status in DHIS 2:
> > Fix Committed
> >
> > Bug description:
> > When using the displayName property in Analytics API and setting it to
> > SHORTNAME, names of periods are not included in the metadata.
> >
> > Example (demo/dev server):
> >
> api/analytics.json?dimension=dx:cYeuwXTCPkU&dimension=ou:USER_ORGUNIT&dimension=pe:201311&displayProperty=SHORTNAME
> >
> > To manage notifications about this bug go to:
> > https://bugs.launchpad.net/dhis2/+bug/1401952/+subscriptions
>
>

The ideal would perhaps be to actually have short period names (Jan 14 for January 2014 etc), but if not I guess ISO format is okay.

> 15. des. 2014 kl. 13.52 skrev Morten Olav Hansen <email address hidden>:
>
> Yeah, it makes sense no? since its short-name? or would you expect the full
> name for periods as before?
>
> --
> Morten
>
> On Mon, Dec 15, 2014 at 1:50 PM, Olav Poppe <email address hidden> wrote:
>>
>> It is possibly fixed. If the period in ISO format count as a name it is
>> fixed, if it is supposed to give the period name as when using
>> displayProperty=NAME it is not fixed.
>>
>> Name:
>> «201411»: «November 2014"
>>
>> Shortname:
>> «201411»: «201411»
>>
>>
>>> 15. des. 2014 kl. 13.32 skrev Morten Olav Hansen <
>> <email address hidden>>:
>>>
>>> Should be fixed in latest trunk / 2.17. Please try it out and report
>>> back.
>>>
>>> ** Changed in: dhis2
>>> Assignee: (unassigned) => Morten Olav Hansen (mortenoh)
>>>
>>> ** Changed in: dhis2
>>> Importance: Undecided => Medium
>>>
>>> ** Changed in: dhis2
>>> Status: New => Fix Committed
>>>
>>> ** Changed in: dhis2
>>> Milestone: None => 2.17
>>>
>>> --
>>> You received this bug notification because you are subscribed to the bug
>>> report.
>>> https://bugs.launchpad.net/bugs/1401952
>>>
>>> Title:
>>> Analytics API: metadata.names[period] null when
>>> displayProperty=SHORTNAME
>>>
>>> Status in DHIS 2:
>>> Fix Committed
>>>
>>> Bug description:
>>> When using the displayName property in Analytics API and setting it to
>>> SHORTNAME, names of periods are not included in the metadata.
>>>
>>> Example (demo/dev server):
>>>
>> api/analytics.json?dimension=dx:cYeuwXTCPkU&dimension=ou:USER_ORGUNIT&dimension=pe:201311&displayProperty=SHORTNAME
>>>
>>> To manage notifications about this bug go to:
>>> https://bugs.launchpad.net/dhis2/+bug/1401952/+subscriptions
>>
>>
>
> --
> You received this bug notification because you are a member of DHIS 2
> developers, which is subscribed to DHIS.
> https://bugs.launchpad.net/bugs/1401952
>
> Title:
> Analytics API: metadata.names[period] null when
> displayProperty=SHORTNAME
>
> Status in DHIS 2:
> Fix Committed
>
> Bug description:
> When using the displayName property in Analytics API and setting it to
> SHORTNAME, names of periods are not included in the metadata.
>
> Example (demo/dev server):
> api/analytics.json?dimension=dx:cYeuwXTCPkU&dimension=ou:USER_ORGUNIT&dimension=pe:201311&displayProperty=SHORTNAME
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dhis2/+bug/1401952/+subscriptions
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help : https://help.launchpad.net/ListHelp

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers