feat(pagination): total count, Link headers, exact sort/pagination against NGSI-L - #163
Merged
Conversation
Mortega5
marked this pull request as draft
July 8, 2026 10:15
Collaborator
Author
|
depends on NGSI-LD PR |
Mortega5
marked this pull request as ready for review
July 22, 2026 07:40
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
force-pushed
the
feat/pagination-fields
branch
from
July 27, 2026 08:20
7764873 to
78af613
Compare
|
The following api specs are unavailable, please check if there are updates required.
|
Collaborator
Author
|
depends on ngsi-ld update |
Mortega5
force-pushed
the
feat/pagination-fields
branch
from
July 27, 2026 09:19
78af613 to
0afbbdd
Compare
|
The following api specs are unavailable, please check if there are updates required.
|
1 similar comment
|
The following api specs are unavailable, please check if there are updates required.
|
Mortega5
force-pushed
the
feat/pagination-fields
branch
from
July 27, 2026 11:29
8f0dc62 to
14e773e
Compare
|
The following api specs are unavailable, please check if there are updates required.
|
wistefan
approved these changes
Jul 28, 2026
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).