feat(pagination): total count, Link headers, exact sort/pagination against NGSI-L#163
Draft
Mortega5 wants to merge 7 commits into
Draft
feat(pagination): total count, Link headers, exact sort/pagination against NGSI-L#163Mortega5 wants to merge 7 commits into
Mortega5 wants to merge 7 commits into
Conversation
Adds GeneralProperties.countHeader, auto-configured per broker profile
(NGSILD-Results-Count for Scorpio, Fiware-Total-Count for Orion-LD) across
all modules' application-{scorpio,orion-ld}.yaml. TmForumRepository.findEntities
now returns a PagedResult (items + offset/limit/totalCount) instead of a plain
list, so PaginationFilter can add X-Total-Count, compute next/last exactly
instead of the phase 1 heuristic, and return 206 Partial Content when the page
is genuinely partial - all degrading gracefully to phase 1 behavior when the
header isn't configured or the broker doesn't send it.
…r query Resource, ResourceSpecification (resource-inventory, resource-catalog, software-management) previously fanned out one query per NGSI-LD sub-type and merged results client-side, which corrupted X-Total-Count and offset/limit pagination since each fan-out call overwrote the shared request attributes. Query all registered types in one broker call instead, mapping each returned entity to its concrete domain class via findEntitiesPolymorphic/listPolymorphic.
Mortega5
marked this pull request as draft
July 8, 2026 10:15
Collaborator
Author
|
depends on NGSI-LD PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
sortquery param (sort=name,-billDate) into NGSI-LD'sorderBysyntax (orderBy=name,billDate;desc).