Skip to content

chore: merge master into develop after release 4.1.0 - #295

Merged
HuiJun merged 7 commits into
developfrom
chore/merge-master-after-4-1-0
Nov 19, 2026
Merged

HuiJun merged 7 commits into
developfrom
chore/merge-master-after-4-1-0

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Merges master back into develop after the 4.1.0 release.

The only content change is the version bump to 4.1.0 in gradle.properties and docs/conf.py; every other change on master was already on develop. After this merge the tree of develop is identical to master.

Merge this with a merge commit, not squash or rebase, so that develop contains the release merge commits from master (including the 4.1.0 tag's commit).

Snapshots published from develop become 4.1.0-SNAPSHOT until the next version bump.

Link to Devin session: https://nasa-jpl-demo.devinenterprise.com/sessions/d9f10869eb3d4b268da3834fb1b42689
Open in Devin Desktop: https://nasa-jpl-demo.devinenterprise.com/desktop/session/d9f10869eb3d4b268da3834fb1b42689?variant=devin
Requested by: @HuiJun


Devin Review

dlamoris and others added 7 commits June 5, 2023 10:19
Co-Authored-By: jason.han <hanhuijun@gmail.com>
* Decouples Federated Persistence layer from controller and service layers.
Introduces a unified persistence layer interface with a federated implementation.
Added msosa, view, and oauth modules

* Remove redundant commit save

* CodeQL updates

* More CodeQL changes

* Added timeout to database delete statement

* Removing overarching transactional annotations

* Removed transactional annotations from DefaultPermissionService

* Removed @transactional annotation from modules that are not tasked with persistence implementation

* Fixes for failing crud tests

* Increased request delay for crud tests

* Working on fixing permissions test failures

* increased delay in permissions test

* Fixing problem with bean creation for permissions delegates that was preventing them from getting transaction proxies created

* Fixed artifacts behavior

* extending artifacts test delay to 1000 ms

* Fixing elastic test failures

* Fixing groups test failures

* fix NodePersistence.findById interface argument names

* fix FederatedNodeChangeDomain superclass constructor call

* change CommitPersistence.elementHistory interface so DefaultCommitService doesn't need to pass in commitIds (this is so it's not getting json just to get ids as getting entire commit json is expensive for federated persistence)

* remove redundant groups read from CameoViewService

* remove posted _childViews handling from CameoViewService, this was handling ve structural changes and has been taken out of ve (5+)

* continue if no permission to change project org on project update

* reduce amount of commits gotten to test for new project in DefaultCommitService and CameoCommitService

* add commitId to node get responses in DefaultNodeService and CameoNodeService,

* removed duplicated convertJsonToMap function in DefaultNodeService, moved filter to JsonDomain

* prevent adding change info to commit if element isn't actually being updated

* fix setting initial commit of added element, prefix deleted key with _

* fix processElementDeleted

* use commitDAO interface in FederatedNodeChangeDomain instead of commitPersistence for better performance, change convertJsonToMap to accept collection

* clean up unused things in FederatedNodeChangeDomain

* uncomment child views handling so tests run for now

* if searching by commit id doesn't work, try getting by id directly
this fixes jupyter tests because in jupyter, it's doing a read in the same call as an update - the read now always gets the latest commit - which elastic may not have had time to index and results in an error

* reduce test delay back to 500

* support updating existing ref's json properties, will resurrect if previously deleted, will not allow changing parentRef or parentCommit

* fix updating org name

* prevent project update from updating schema

* fix setting commit id from commitJson id

* sort commits by descending

* check if commitId is latest for gets and pass in null if it is for performance

* remove any _deleted flag in element to be updated

* set returned elements refId to match requested refId

* set refIds for cameo element gets

* allow update even if previous element not found

* handle if element json not found during gets

* remove addChildViews delay

* throw error if project can't hard delete

* update project permissions after changing orgs if needed

* continue with element delete even if json not found

* add more tests for branching behavior

* Added commands for generation of jacoco .xml report

* Changed file path to gather classes

* Fixed scan to depend on build_and_test, moved xml report to scan

* Command to create directory to copy to

* Changed Dockerfile; scan step to attach workspace

* use returned instance from spring data repository save

* fix branch not found behavior when init branch perms

* remove unused things in FederatedPermissionUpdatesResponseBuilder
fix argument in DefaultPermissionService.setProjectInherit

* remove unneeded element delete processing

* users list is available to authenticated users

* tweak commit update in case twc module is used

* commit fail cleanup

* fix commit delete

* in FederatedNodeChangeDomain.primeNodeChangeInfo, add to any existing info instead of reinit data

* only further process transacted elements but keep other existing info from passed in nodeChangeInfo

* fix commit retrieval loop

* add missing set to delete

* stronger comparison

* fix for user creation when logging in via twc, updated twc readme

* add config to optimize for federated persistance behavior

* fix test

* optimize more commit get

* fix return commit id in cameo elements get

* fix based on discussion in dev tagup

* chore: restore the build and move the image to eclipse-temurin 17 JRE

Drop the unused jfrog and bintray Gradle plugins, whose transitive
http-builder 0.7.2 is no longer resolvable, so a clean build configures
again.

Build the image in two stages: compile on eclipse-temurin:17-jdk and run
the boot jar on eclipse-temurin:17-jre as an unprivileged user. The JaCoCo
agent is no longer hardcoded in the entrypoint; CircleCI enables it through
JDK_JAVA_OPTIONS.

Replace the minio/minio compose image, which is gone from Docker Hub, with
cgr.dev/chainguard/minio, and bring the CodeQL workflow to JDK 17 and
current action versions.

Co-Authored-By: jason.han <hanhuijun@gmail.com>

* chore: use Apache-2.0 S3Mock as the compose S3 service instead of MinIO

Co-Authored-By: jason.han <hanhuijun@gmail.com>

* chore: keep S3Mock objects across a restart of the compose service

Co-Authored-By: jason.han <hanhuijun@gmail.com>

* chore: patch-level dependency bumps within Spring Boot 2.7

Co-Authored-By: jason.han <hanhuijun@gmail.com>

* feat: support Elasticsearch 9 and OpenSearch 3 through the shared REST API

Replace the Elasticsearch 7 high-level client with the low-level REST
client and JSON request bodies, so one code path serves both servers
and the backend is chosen by elasticsearch.host/port alone.

Drop the unused Elasticsearch dependency from twc, add a compose
override for OpenSearch and run the search collections against it in CI.

Co-Authored-By: jason.han <hanhuijun@gmail.com>

* ci: trigger CircleCI through the GitHub App pipeline

Co-Authored-By: jason.han <hanhuijun@gmail.com>

* ci: use the sonarcloud orb 4.0.0, whose scanner bundles its own JRE

SonarQube Cloud now rejects analysis from Java 17, which is what the
2.0.0 orb's scanner picked up from the executor.

Co-Authored-By: jason.han <hanhuijun@gmail.com>

* ci: check out a full clone so the SonarQube scan can blame files

The GitHub App pipeline defaults to a blobless clone, and the scan job
reads history from the persisted workspace without git credentials.

Co-Authored-By: jason.han <hanhuijun@gmail.com>

* test: repair the twc and crud unit tests that fail on develop

TwcPermissionUtilsTest passed a Mockito mock of HttpHeaders to the
ResponseEntity constructor. Spring Framework 5.3 reads the mock's null
backing map there and throws 'MultiValueMap must not be null'; a real
HttpHeaders instance is used instead.

DefaultCommitServiceTest still stubbed the CommitPersistence calls that
DefaultCommitService stopped making: getElementCommits now calls
elementHistory(projectId, refId, elementId) and isProjectNew calls
findByProjectAndRefAndTimestampAndLimit(projectId, "master", null, 1).

Co-Authored-By: jason.han <hanhuijun@gmail.com>

* Migrate to Spring Boot 3.5, Gradle 8, Jakarta EE, Hibernate 6 and AWS SDK v2

Co-Authored-By: jason.han <hanhuijun@gmail.com>

* Close the S3 client when bucket initialization fails

Co-Authored-By: jason.han <hanhuijun@gmail.com>

* Add script and operator guide for migrating Elasticsearch 7 indices

Copies the MMS indices of an Elasticsearch 7 deployment into Elasticsearch 9
or OpenSearch 3, creating each target index with the shipped mapping, and
verifies the result by document count or content.

Co-Authored-By: jason.han <hanhuijun@gmail.com>

* Fail on partial shard answers and size bulk requests in bytes

Co-Authored-By: jason.han <hanhuijun@gmail.com>

* Register the ElementVersion schema referenced by Commit in the OpenAPI document

Co-Authored-By: jason.han <hanhuijun@gmail.com>

* fix: accept the wildcard CORS origin when credentials are allowed

Co-Authored-By: jason.han <hanhuijun@gmail.com>

* Make SpringDocRequestBuilder static and build the default AWS credentials provider

Co-Authored-By: jason.han <hanhuijun@gmail.com>

* ci: publish to Maven Central through the Central Portal

oss.sonatype.org no longer accepts uploads. Releases are staged locally,
zipped by the centralBundle task and uploaded through the Central
Publisher API; snapshots go to the Central Portal snapshot repository.
Credentials and the signing key come from the 'Maven Central' context.

Co-Authored-By: jason.han <hanhuijun@gmail.com>

* chore: update versions for release 4.1.0

Co-Authored-By: jason.han <hanhuijun@gmail.com>

* fix: webhook project scoping, OAuth request state, no-op transactions, view child posts and delete events

- Webhook lookups return the owning project, so a posted id that belongs to
  another project is refused; the persistence layer refuses it as well.
- OAuthProcessor keeps the parsed token grants in a local variable instead of
  a field shared by all requests.
- FederatedNodePersistence.commitChanges opens its transaction only when there
  is something to save, so a write that changes nothing leaves none open.
- DefaultNodeService.createOrUpdate iterates a copy of the updated map, since
  view services add generated elements to it while processing.
- DefaultNodeService.delete publishes the commit event like createOrUpdate.

Co-Authored-By: jason.han <hanhuijun@gmail.com>

---------

Co-authored-by: Ward Schweitzer <ward.a.schweitzer@boeing.com>
Co-authored-by: Jason Han <jason.han@jpl.nasa.gov>
Co-authored-by: Doris Lam <dlam@jpl.nasa.gov>
Co-authored-by: Kari Cordes <kari_cordes@yahoo.com>
Co-authored-by: dlamoris <dlamoris@gmail.com>
Co-authored-by: Enquier <enquier@users.noreply.github.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: jason.han <hanhuijun@gmail.com>

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@HuiJun
HuiJun merged commit c6e8e02 into develop Nov 19, 2026
4 checks passed
@devin-ai-integration
devin-ai-integration Bot deleted the chore/merge-master-after-4-1-0 branch November 20, 2026 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants