[FEATURE] Add JSON Datasource and Json Query plugin - #770
Open
adrianSepiol wants to merge 6 commits into
Open
adrianSepiol wants to merge 6 commits into
adrianSepiol wants to merge 6 commits into
Conversation
6 tasks
adrianSepiol
force-pushed
the
feature/json-datasource-plugin
branch
5 times, most recently
from
September 1, 2026 11:43
db4e2ff to
c31bb11
Compare
adrianSepiol
marked this pull request as ready for review
September 1, 2026 13:12
adrianSepiol
requested review from
a team,
AntoineThebaud and
Nexucis
as code owners
September 1, 2026 13:12
adrianSepiol
force-pushed
the
feature/json-datasource-plugin
branch
from
September 15, 2026 11:03
c31bb11 to
1f946ba
Compare
jgbernalp
reviewed
Sep 15, 2026
|
|
||
| export function buildJsonTableData(queryResults: Array<PanelData<JsonData>>): Array<Record<string, unknown>> { | ||
| return queryResults.flatMap((r: PanelData<JsonData>) => { | ||
| return toItemArray(r.data).map(({ data }) => { |
Contributor
jgbernalp
reviewed
Sep 15, 2026
|
|
||
| function toItemArray<T>(data: T): T[] { | ||
| if (Array.isArray(data)) return data; | ||
| if (data !== null) return [data]; |
Contributor
There was a problem hiding this comment.
Suggested change
| if (data !== null) return [data]; | |
| if (data !== null && data !== undefined) return [data]; |
adrianSepiol
force-pushed
the
feature/json-datasource-plugin
branch
2 times, most recently
from
September 16, 2026 11:30
20eef75 to
1baf8d9
Compare
jgbernalp
reviewed
Sep 16, 2026
jgbernalp
reviewed
Sep 16, 2026
jgbernalp
reviewed
Sep 16, 2026
Signed-off-by: Adrian Sepiół <a.sepiol@sap.com>
Signed-off-by: Adrian Sepiół <a.sepiol@sap.com>
Signed-off-by: Adrian Sepiół <a.sepiol@sap.com>
Signed-off-by: Adrian Sepiół <a.sepiol@sap.com>
Signed-off-by: Adrian Sepiół <a.sepiol@sap.com>
adrianSepiol
force-pushed
the
feature/json-datasource-plugin
branch
from
September 17, 2026 10:31
1baf8d9 to
2451fba
Compare
Signed-off-by: Adrian Sepiół <a.sepiol@sap.com>
jgbernalp
approved these changes
Sep 17, 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.

Related issue: perses/perses#3284
Depends on:
Description
Adds json datasource and query plugin. It allows to query any endpoint that returns json and optionally parse output with jsonata. This MVP allows for:
Limitations:
Screenshots
Datasource editor:
Query plugin for GET:
Query Plugin for POST:

Query with request params:

Query with body:

Error for empty response:
Checklist
[<catalog_entry>] <commit message>naming convention using one of thefollowing
catalog_entryvalues:FEATURE,ENHANCEMENT,BUGFIX,BREAKINGCHANGE,DOC,IGNORE.UI Changes