Regarding bugs

Asked by Parul Kamra

Hi,

I wanna know what is "omit_targeted" parameter used in many milestone?

When I fetch bugs with omit_targeted=true then, bugs count becomes greater than those bugs count in which omit_targeted=false.
Why bugs count differs using omit_targeted parameter?

Thanks & Regards
Parul

Question information

Language:
English Edit question
Status:
Expired
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Colin Watson (cjwatson) said :
#1

The precise effect of omit_targeted=True is to constrain the bug task search to those tasks that have neither a distroseries nor a productseries. It adds conditions to the query, so it cannot cause the search to return more results.

If you have an example where omit_targeted=True returns more results than omit_targeted=False, then please provide us with specific details of that example.

Revision history for this message
Parul Kamra (itz-me-parul) said :
#2

Hi Colin,

Thanks for your support.

I am giving you eg here where omit_targeted parameter has been used.

Here below URl is for fetching bugs of milestone - r3.1.0.0-fcs

https://api.launchpad.net/1.0/juniperopenstack/+milestone/r3.1.0.0-fcs?ws.op=searchTasks&omit_targeted=true
Total bugs count - 841

But if I use - omit_targeted=false , as
https://api.launchpad.net/1.0/juniperopenstack/+milestone/r3.1.0.0-fcs?ws.op=searchTasks&omit_targeted=false

Total bugs count - 1686

Revision history for this message
Colin Watson (cjwatson) said :
#3

So omit_targeted=true returns fewer tasks than omit_targeted=false. That's as expected, and is the opposite of the situation you described in your original question. I think you've just read them the wrong way round by mistake.

Revision history for this message
Parul Kamra (itz-me-parul) said :
#4

Thanks Colin.

Yea you are right.

But I have to fetch bugs of milestone - r3.1.0.0-fcs
But I don't know whether I should use omit_targeted parameter or not?
How will I know about it?

eg - I am fetching bugs of milestone - r3.1.0.0-fcs with status= New , then count differs on using omit_targeted parameter
& below is the url for it -

https://api.launchpad.net/1.0/juniperopenstack/+milestone/r3.1.0.0-fcs?ws.op=searchTasks&status=New&omit_targeted=false
Bugs Count - 357

https://api.launchpad.net/1.0/juniperopenstack/+milestone/r3.1.0.0-fcs?ws.op=searchTasks&status=New&omit_targeted=true
Bugs Count - 186

Then, from which url I should fetch bugs of this milestone?

Revision history for this message
Colin Watson (cjwatson) said :
#5

The option exists because people want different things in different situations. Just pointing out that the count differs isn't very useful in itself.

The count is actually a count of bug tasks, not a count of bugs. So, if you're trying to get a count of bugs, your best approach might be to use omit_targeted=true and then construct a unique set of bug IDs on the client side.

Revision history for this message
Parul Kamra (itz-me-parul) said :
#6
Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.