← Back to team overview

dhis2-devs team mailing list archive

Re: Status of ImportSummaries in /api/events

 

No, I mean for the new DXF2 importer, I'm sorry (I assume you are also
working on the metadata sync importer). The event importer has not had any
changes done.

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Thu, May 12, 2016 at 1:44 PM, Aamer Mohammed <aamerm@xxxxxxxxxxxxxxxx>
wrote:

> Thanks Morten for the insight. But we are also on a branch forked off on
> 2.23 and it is not giving any WARNING kind of status in our case. Any
> thoughts please?
>
>
> On Thu, May 12, 2016 at 11:46 AM, Morten Olav Hansen <morten@xxxxxxxxx>
> wrote:
>
>> Hi
>>
>> I agree this is confusing, but I think this is also the case in our old
>> importer. I'm not sure if we want to change it at this point (as we don't
>> want to break any third party clients out there).
>>
>> That said, as you might know, we changed the approach a bit in our new
>> importer, and it is much better at these kind of issues (in your case it
>> would give status=WARNING which means please have a closer look at the
>> report, or ERROR if all failed).
>>
>> We are hoping to have proper web-api versioning coming in 2.24, which
>> means we can potentially clean up these kinds of issues (but that part is
>> not started yet, so let's see).
>>
>> @Abyot: are you using this returned status for anything in your EC/TC
>> apps?
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Thu, May 12, 2016 at 12:52 PM, Aamer Mohammed <aamerm@xxxxxxxxxxxxxxxx
>> > wrote:
>>
>>> Hi
>>>
>>> We are using /api/events to post event related data and it is being
>>> uploaded successfully. The api returns a response of type ImportSummaries
>>> which has the status of ImportSummary along with the count of data which is
>>> imported/updated.
>>> In case of any conflicts being reported in ImportSummary, we observe
>>> that the status still shows as SUCCESS.
>>>
>>> ---------
>>> ImportSummaries {
>>> importSummaries = [ImportSummary {
>>> status = SUCCESS,
>>>                 description = 'null',
>>>                 importCount = [imports = 2, updates = 0, ignores = 0],
>>>                 conflicts = [ImportConflict {
>>> object = 'Illegal category option identifier: U8vu31ybiD5', value =
>>>     'U8vu31ybiD5' }],
>>>                 dataSetComplete = 'null',
>>>                 reference = 'jLBehWyIspM',
>>>                 href = '
>>> http://msfocamdsynchq.twhosted.com/api/events/jLBehWyIspM'
>>> }]
>>> }
>>> ----------
>>> Is this not an error because the complete import of the event data has
>>> not happened. Please suggest.
>>>
>>> Thanks
>>> Aamer.
>>>
>>
>>
>

Follow ups

References