dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #48805
Re: Deletion of DataElements or Indicators that are used in Favourites
Hi Lorill
Deleting favorites should definitely be possible, but they are some
complications around it (if they are connected to dashboard items etc), its
something we should look more closely into I'm sure.
The process of JIRA issues is that when you report them, they are
automatically assigned to the person responsible for that module, that
person will then look at the issue (and re-assign to a different person if
necessary)
--
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org
On Tue, Feb 28, 2017 at 11:42 PM, Lorill Crees <lcrees@xxxxxxxxxx> wrote:
> Hi Morten,
>
> Can I assume then that querying for and deleting favourites via the API is
> not possible right now?
>
> I created three different JIRAs for this:
>
> https://jira.dhis2.org/browse/DHIS2-1174 - Show more meaningful message
> to user when a favourite cannot be loaded due to missing data elements
> https://jira.dhis2.org/browse/DHIS2-1175 - Add ability to query for
> Favourites by their corresponding data elements and indicators via the API
> https://jira.dhis2.org/browse/DHIS2-1176 - Add ability to delete
> Favourites via the API
>
> What is your process for reviewing and prioritizing JIRA issues? Just
> wondering when I would know if and when these issues would be developed,
> and for which version(s)?
>
> Thanks,
>
> Lorill
>
> On Mon, Feb 27, 2017 at 6:28 PM, Morten Olav Hansen <morten@xxxxxxxxx>
> wrote:
>
>> Hi Lorill
>>
>> Would you mind filing an issue in Jira for this?
>>
>> jira.dhis2.org
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Tue, Feb 28, 2017 at 6:36 AM, Lorill Crees <lcrees@xxxxxxxxxx> wrote:
>>
>>> Hi - just following up on this. Does anyone have any suggestions?
>>>
>>> On Thu, Feb 16, 2017 at 11:27 AM, Lorill Crees <lcrees@xxxxxxxxxx>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am able to successfully delete a Data Set and all corresponding
>>>> DataElements and Indicators and corresponding data via the Web API. However
>>>> when I then go and attempt to load a Favourite that was created referencing
>>>> elements that are now deleted, I get the error
>>>>
>>>> Code 409
>>>> Status: Conflict
>>>> Dimension dx is present in query without any valid dimension options
>>>>
>>>> (see attached screenshot)
>>>>
>>>> This doesn't give the user any idea that the favourite is no longer
>>>> valid because the underlying elements have been deleted. In order for this
>>>> functionality to make sense to the user I want to do one of the following:
>>>>
>>>> 1. Prior to deleting the Data Set and related objects, query for
>>>> all favourites that use any items to be deleted and list them and allow the
>>>> user the option to have them programatically deleted.
>>>> 1. Is it possible to query for favourites by their corresponding
>>>> data elements and indicators via the API?
>>>> 2. Is it possible to delete a favourite via the API?
>>>> 2. If #1 above is not possible, is it possible to show a more
>>>> meaningful message to the user that lets them know why a favourite cannot
>>>> be loaded?
>>>>
>>>> I am using version:
>>>> 2.25
>>>> Build revision:
>>>> 9f6b262
>>>> Build date:
>>>> 2017-02-16 06:42
>>>>
>>>> Thanks,
>>>>
>>>> Lorill
>>>>
>>>>
>>>> --
>>>> Lorill Crees
>>>> Project Leader / Senior Developer
>>>> 2Paths Solutions Ltd. <http://www.2paths.com>
>>>>
>>>>
>>>
>>>
>>> --
>>> Lorill Crees
>>> Project Leader / Senior Developer
>>> 2Paths Solutions Ltd. <http://www.2paths.com>
>>>
>>> lcrees@xxxxxxxxxx
>>> skype: lorill2paths
>>> (604) 689-4123 x 15 <(604)%20689-4123>
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>
>
> --
> Lorill Crees
> Project Leader / Senior Developer
> 2Paths Solutions Ltd. <http://www.2paths.com>
>
> lcrees@xxxxxxxxxx
> skype: lorill2paths
> (604) 689-4123 x 15
>
References