dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #44016
Re: [DHIS] Updating Program Version
Hi guys,
In our Android legacy apps we depend on the Program version code to see if
we need to download the program and subclasses (such as tracked entity
attributes, program stage data elements etc). It would be great if the
program version is being increased if there is actually any changes
Regards,
Erling
On Wed, Mar 16, 2016 at 10:41 AM, Morten Olav Hansen <morten@xxxxxxxxx>
wrote:
> Hi
>
> When it comes to the web-api, we do not update the program version for
> every update. I'm not sure exactly why its being done like that in the
> program module.. but I see this comment:
> program.increaseVersion(); //TODO make more fine-grained
>
> So probably they wanted to do something more with it.. Maybe Abyot can
> shed some light on it? is this version flag in use today? I can see it
> being used for doing offline metadata, but then again.. its not very useful
> if the version gets updated regardless of any actual changes..
>
> On Wed, Mar 16, 2016 at 3:53 PM, Archana Chillala <
> archanac@xxxxxxxxxxxxxxxx> wrote:
>
>> Hi Morten,
>>
>> I am using DHIS version 2.23. In the Program/attributes module, when we
>> create a program, one of the properties of the program - *Version -* is
>> automatically assigned a value 1. When we update the program, the Version
>> value gets incremented by 1 each time. But, even if we do not make any
>> changes to the program and just click update button, the program version
>> still gets incremented by 1.
>>
>> Is this the expected functionality? Could you please explain.
>>
>>
>>
>> *Thanks*
>>
>> Archana Chillala
>> Application Developer
>> Email archanac@xxxxxxxxxxxxxxxx
>> Telephone +91 9100960533 <+91+9100960533>
>> [image: ThoughtWorks]
>> <http://www.thoughtworks.com/?utm_campaign=archana-chillala-signature&utm_medium=email&utm_source=thoughtworks-email-signature-generator>
>>
>
>
>
> --
> Morten
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help : https://help.launchpad.net/ListHelp
>
>
References