← Back to team overview

dhis2-devs team mailing list archive

Re: [DHIS] Updating Program Version

 

Hi,

I don't know how this is implemented. Yes, it doesn't make sense to bump
the version while there is no change in the program.

Otherwise, we need the program version. Even't capture updates its cache of
programs based on version.



---
Thank you,
Abyot.

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
>

Follow ups

References