GET /enrollments/myenrollments/ Paging Limits
Hi Valence Team,
I am initiating a discussion on behalf of a client who will also have visibility over this topic. My client has a project to integrate Equella with Brightspace.
The scenario is as follows.
Users that have cascading role permissions may be subscribed to courses > 1000, and therefore cannot find some of their courses.
The problem description is that the API that only returns 100 courses and if there are more, a pointer to the next 100 courses. We follow that pointer for a maximum of 10 times meaning that we can only ever get 1000 courses returned for a user when using Add to External System.
The following solutions have been discussed:
- That we provide some kind of paging mechanism so that when the pointer to a further number of courses is detected, we show a Next link that then displays the next 100 (max) courses. I also stated the cons of this kind of solution: first that the search would only search the currently retrieved set(s). Second, that because there is no Previous pointer, there would be no real mechanism to go back through the search (I didn't mention that we could potentially cache all results as a user moves forward so that they could go back ... )
- That we work with D2L is such a way that their search API could take a searchable parameter (either a full course, or some kind of search REGEX pattern). Users that performed a blank search would be searching all courses (still having the 1000 courses limit). But if they performed a search using the search box in the Add to External System, it would use that term and pass it to the D2L API, which would perform that search and return matching courses. If there are more that 100 courses in the returned set, the API would still have the Next pointer so that we could go through the results sets. Ideally, there would be a Previous pointer so that we could go backwards without caching.
Any advice or comment would be much appreciated!
- 119 views
- 1 version
- 2 replies
- 3 followers
- Posted By:
- Tobin Millen
- January 22, 2017
About this forum
- 60,713 views
- 378 topics
- 24 followers
Ask questions. Share your expertise. Use this forum to ask or answer questions about the Brightspace developer platform - the Brightspace APIs, LTI, Remote Plugins, SDKs and tools.