Project

General

Profile

Bug #7286

MN.listObjects() with a sid filter should return all pids under given sid

Added by Andrei Buium over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Ben Leinfelder
Category:
Metacat
Target version:
Start date:
2015-08-04
Due date:
% Done:

100%

Milestone:
CCI-2.0
Product Version:
*
Story Points:
Sprint:

Description

Currently calling MN.listObjects(... , sid, ...) yields a single result (the head pid I believe).

The documentation says it should return a list of objects whose pids all fall under the given sid.

History

#2 Updated by Ben Leinfelder over 8 years ago

  • Status changed from New to In Progress
  • Assignee changed from Jing Tao to Ben Leinfelder
  • % Done changed from 0 to 30
  • Milestone changed from None to CCI-2.0

#3 Updated by Ben Leinfelder over 8 years ago

On mn-demo-6, I get results consistent with expected behavior. There are three objects in this series, and all three are returned:
https://mn-demo-6.test.dataone.org/knb/d1/mn/v2/object?identifier=sid.1436994458933665000

Can you provide an example where this behavior is not shown? Perhaps there are other parameters included when you make the call and that accounts for the difference?

#4 Updated by Andrei Buium over 8 years ago

  • % Done changed from 30 to 100
  • Status changed from In Progress to Closed

The problem turned out to be on the test side. I committed the fix and the tests pass now.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)