Re: Two actions (retire and unlink) at the same time
"John P. Rouillard" <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Nagy: In message <20210409180732.22053099@Dell>, Nagy Gabor writes: >I investigated the "saved queries" management of 'devel' template. I >observed that the removal of a query is a bit complicated: > >If we retire a query, then it is still visible in the "queries" list >(multilink) of the user, because it is not automatically removed. So >the user still need to hide the query (i.e. remove from his queries >list). Actually it is visible in the "queries" list of any user who chose to include it. This makes deletion tricky. >In similar scenarios usually we want to perform two actions in the same >time: >1. Remove query1 from the queries multilink of user1. (This is an 'edit' >action on user1.) >2. Retire query1. (This is a 'retire' action on query1.) > >Can these performed in one "HTML form submission"? Which the nicest >solution here? Or how can I define a custom Action easily which >consists of performing these two db operations? If the user is retiring a private query that has never been public, I think you can add an auditor that will also edit the multilink for the user. Note this will not work if another user has the same query. User A won't (in general) have the ability to edit User B's queries multilink. >Yes, I know that automatic multilink editing can be done using >rev_multilink, according to the documentation, but I am curious. (And I >am not sure that the default 'search' action would like that in case of >queries.) I am not sure rev_multilink can be used for that. Ralf any ideas? Have a great weekend. -- -- rouilj John Rouillard =========================================================================== My employers don't acknowledge my existence much less my opinions.