Skip to content

chore(deps): bump org.hisp.dhis:json-tree from 1.8.1 to 1.9.4 in /dhis-2/dhis-test-e2e#23946

Merged
github-actions[bot] merged 4 commits into
2.41from
dependabot-maven-dhis-2-dhis-test-e2e-2.41-org.hisp.dhis-json-tree-1.9.4
May 31, 2026
Merged

chore(deps): bump org.hisp.dhis:json-tree from 1.8.1 to 1.9.4 in /dhis-2/dhis-test-e2e#23946
github-actions[bot] merged 4 commits into
2.41from
dependabot-maven-dhis-2-dhis-test-e2e-2.41-org.hisp.dhis-json-tree-1.9.4

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 19, 2026

Copy link
Copy Markdown
Contributor

Bumps org.hisp.dhis:json-tree from 1.8.1 to 1.9.4.

Release notes

Sourced from org.hisp.dhis:json-tree's releases.

v1.9.4

See #99

v1.9.3

Improvment

@Validation(type=-...) is considered for JsonObject.properties adjusting the Property.jsonType() and Property.types() accordingly if present.

See #97

v1.9.2

[!Important] Please use 1.9.2 instead of older 1.9 versions due to the issues found

For details see #95

v1.9.1

Some adjustments and corrections for 1.9.0 found during first use.

See #91 for details.

[!Important] 1.9.0 should no longer be used as it has known bugs.

v1.9.0

[!Important] Some issues were identified shortly after the release which are fixed in version 1.9.1. Please do not use 1.9.0

Big overhaul of API for better performance as well as richer "mapping" to Java records.

For more details see PRs

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [org.hisp.dhis:json-tree](https://github.com/dhis2/json-tree) from 1.8.1 to 1.9.4.
- [Release notes](https://github.com/dhis2/json-tree/releases)
- [Changelog](https://github.com/dhis2/json-tree/blob/main/CHANGELOG.md)
- [Commits](dhis2/json-tree@v1.8.1...v1.9.4)

---
updated-dependencies:
- dependency-name: org.hisp.dhis:json-tree
  dependency-version: 1.9.4
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels May 19, 2026
json-tree 1.9.x removed JsonTypedAccess; the default global accessors are
now applied by the single-arg JsonMixed.of(content). Drop the obsolete
JsonTypedAccess.GLOBAL argument and import so dhis-test-e2e compiles at 1.9.4.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@stian-sandvold

Copy link
Copy Markdown
Contributor

Added a small commit on top of the dependabot bump: the pom-only bump doesn't compile against json-tree 1.9.x because JsonTypedAccess was removed. ApiResponse.getBodyAsJsonValue() used JsonMixed.of(raw.asString(), JsonTypedAccess.GLOBAL); in 1.9.x the single-arg JsonMixed.of(content) applies the default global accessors, so the second argument (and its import) just go away — behaviour-preserving, matches how the main module already uses JsonMixed.of on master.

Verified mvn test-compile on dhis-test-e2e at 1.9.4 is green with this change. Needs a human review since it's no longer a pure dependabot diff.

stian-sandvold and others added 2 commits May 31, 2026 09:06
Two 1.9.x behaviour changes broke api-test after the compile-only fix:

1. RelationshipsTests: JsonNode.getDeclaration() now returns Text (a
   CharSequence), not String. postAndGetJobReport(Object,..) hands it to
   REST-assured .body(), which sends a String raw but JSON-serializes any
   other object — so the Text became a malformed body and the expected
   E4015 'already exists' warning never returned. Call .toString().

2. UserActions.addRoleToUser: json-tree 1.9.x rejects a property segment
   applied to an array node, so getArray("userRoles.id") now throws
   (ARRAY node .userRoles does not support #get(.id)). Map the ids across
   the userRoles array instead. Surfaced via UserAssignmentFilterTests,
   which exists only on 2.41.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@github-actions
github-actions Bot merged commit 69a9eb9 into 2.41 May 31, 2026
14 checks passed
@github-actions
github-actions Bot deleted the dependabot-maven-dhis-2-dhis-test-e2e-2.41-org.hisp.dhis-json-tree-1.9.4 branch May 31, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file java Pull requests that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant