Skip to content

feat: Variable splitting: 1) Use jsonpath-ng.ext; 2) Cache parse result; 3) upgrade jsonpath-ng to 1.8.0.#4908

Merged
shaohuzhang1 merged 11 commits into1Panel-dev:v2from
wangliang181230:upgrade_jsonpath-ng_to_1.8.0
Mar 27, 2026
Merged

feat: Variable splitting: 1) Use jsonpath-ng.ext; 2) Cache parse result; 3) upgrade jsonpath-ng to 1.8.0.#4908
shaohuzhang1 merged 11 commits into1Panel-dev:v2from
wangliang181230:upgrade_jsonpath-ng_to_1.8.0

Conversation

@wangliang181230
Copy link
Copy Markdown
Contributor

@wangliang181230 wangliang181230 commented Mar 19, 2026

What this PR does / why we need it?

  1. feat: Variable splitting use jsonpath-ng.ext
    新特性:变量拆分 使用 jsonpath-ng 的扩展功能。
  2. 使用 MemCache 缓存 JSONPath 的解析结果,避免性能损耗。
    图片
  3. upgrade: jsonpath-ng to 1.8.0
  4. 提示信息中,添加 jsonpath-ng 的使用说明页面链接,供使用参考

fixes #4961

Summary of your change

  1. 更新内容:
    变量拆分 节点 可以使用 jsonpath-ng 的扩展函数功能了,详情见 https://pypi.org/project/jsonpath-ng/1.8.0/#extensions
    1.8.0版本增加了两个新的扩展功能:keysstr()

  2. 截图:

    1. 配置截图:
    图片 图片
    1. 执行结果图:
    图片 图片
    1. 提示链接截图:
    图片

Please indicate you've done the following:

  • Made sure tests are passing and test coverage is added if needed.
  • Made sure commit message follow the rule of Conventional Commits specification.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed.

@f2c-ci-robot
Copy link
Copy Markdown

f2c-ci-robot bot commented Mar 19, 2026

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@f2c-ci-robot
Copy link
Copy Markdown

f2c-ci-robot bot commented Mar 19, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@wangliang181230 wangliang181230 changed the title feat: Variable splitting use jsonpath-ng.ext and upgrade jsonpath-ng to 1.8.0 feat: Variable splitting use jsonpath-ng.ext and upgrade jsonpath-ng to 1.8.0 Mar 19, 2026
@wangliang181230 wangliang181230 changed the title feat: Variable splitting use jsonpath-ng.ext and upgrade jsonpath-ng to 1.8.0 feat: Variable splitting: 1) Use jsonpath-ng.ext; 2) Cache parse result; 3) upgrade jsonpath-ng to 1.8.0. Mar 27, 2026
@shaohuzhang1 shaohuzhang1 merged commit fe7e42c into 1Panel-dev:v2 Mar 27, 2026
1 of 2 checks passed
@wangliang181230 wangliang181230 deleted the upgrade_jsonpath-ng_to_1.8.0 branch March 27, 2026 08:23
wangliang181230 added a commit to wangliang181230/MaxKB that referenced this pull request Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] 变量拆分:1)无法使用 jsonpath-ng 的 扩展功能;2)未缓存JSONPath的解析结果导致CPU和时间损耗

2 participants