ePortfolio Object Query Filters

30 views
Skip to first unread message

Brian Looker

unread,
Jul 14, 2014, 11:52:29 AM7/14/14
to valenc...@googlegroups.com
Hello, and to those at the User Group meeting, I hope it's going well.

I don't have an urgent need for the object query filters available for use with the route to get all ePortfolio objects from a current user context, but in being complete in working on code with the route, I tested each. If my work itself is the error causing several filters to appear not to work, I'll be embarrassed, but happy to learn my mistake.

The documentation of the route I'm working with is at:

And the query filters are described at:

When using the "id" filter, filtering for objects with a certain id ( using =) returns accurate results, but all of the other options (<,>,>=,<=) lead to a 400 bad request error.

The "desc," "created," and "modified" filters (for all operators) result in the same bad request error. In the example with the query filters, "date" is used rather than "created" or "modified"-- so I tried "date" as well with the same resulting error.


Desire2Learn Staff: Viktor

unread,
Jul 15, 2014, 10:28:43 AM7/15/14
to
Hi Brian,

I will look into this -- I may come back and ask you to file this as a defect through support (via your organization's Approved Support Contact), so that your organization can "own" the defect and track it; or, it could be that this is a problem in the documentation, and if so, you don't need to file a defect for that: if we determine that's the case, we'll just update the docs as necessary.

I highly suspect that the example in the EP Object query filter section is incorrect, in the sense that if any filter on date is allowed at all, it should be using created or modified. In fact, that suspicion is strong enough that I'll amend the docs now to fix that while our dev team is looking into the exact implementation of filters around objects to verify what the code is currently doing with them.

It might help if you could confirm with us what version of the EP product component and/or what version of the Learning Suite you're using? Also, it might help if you could confirm what version of the EP API contract you're using in your testing?

Thanks,

--
Viktor

Brian Looker

unread,
Jul 21, 2014, 4:48:59 PM7/21/14
to valenc...@googlegroups.com
Hi Viktor, 

We're using ePortfolio 4.3.0 SP6, Learning Environment 10.3.0 SP6, and Learning Platform 5.3.0 SP6. 

The EP API contract I'm using is 2.3.

Be well,
Brian

Desire2Learn Staff: Viktor

unread,
Jul 31, 2014, 3:55:25 PM7/31/14
to valenc...@googlegroups.com
Hi Brian,

Thanks for the additional information. I've confirmed that the docs are innaccurate around the 'id' query filter property on EP objects (you can only test for equality with that filter, as you've determined). And also, yes, I believe the example is incorrect. I have made those two corrections.

However, it sounds like the other problems you mention (not being able to use 'desc', 'created', or 'modified') may be defects, and I would encourage you to submit support incidents to that effect through your organization's Approved Support Contact, or Partner Manager.

Brian Looker

unread,
Aug 1, 2014, 10:37:16 AM8/1/14
to valenc...@googlegroups.com
Thanks, Viktor!
Reply all
Reply to author
Forward
0 new messages