-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: upgrade to spring 6 #18314
Merged
Merged
chore: upgrade to spring 6 #18314
Changes from 130 commits
Commits
Show all changes
138 commits
Select commit
Hold shift + click to select a range
ddd2212
chore: upgrade spring 6
vietnguyen 06ae723
replace httpclient with httpclient5
vietnguyen d26ca83
fix: setReadTimeOut is removed
vietnguyen 6f82f4b
fix use jakarta adapter for ActiveMQ lib
vietnguyen 4fc1622
fix HttpStatusCode
vietnguyen a3347ce
upgrade spring-security to 6.3.1
vietnguyen 32c3511
upgrade jakarta-persistence-api 3.2.0
vietnguyen a4ee47a
replace hibernate-types with hypersistence-utils
vietnguyen d12f9ec
Fix CommonsMultipartFile
vietnguyen bb9b437
fix micrometer-hibernate
vietnguyen 6c8b9e7
exclude hibernate-core dependency
vietnguyen c161d97
fix jasperreport jakarta
vietnguyen 68a43d3
upgrade tomcat-embed-core to 10.1.28
vietnguyen 62f54b8
upgrade jetty to 12.0.12
vietnguyen d2ed972
minor fix
vietnguyen f0b1f3c
Add DhisPersistenceUnitManager and DhisPersistenceUnitInfo
vietnguyen 6db1a6d
fix programruleaction.notificationtemplateid type in database
vietnguyen df14a7c
fix spring security conflicts
vietnguyen 192aba4
fix prometheus conflicts
vietnguyen 6b758f5
remove redundant class
vietnguyen 66e47f2
merge from master
vietnguyen 94c21c2
merge from master
vietnguyen b9600cd
merge from master
vietnguyen 78fd272
Merge branch 'master' into viet-spring-6
vietnguyen 7452f48
remove redundant hibernate config
vietnguyen 829dac8
fix HttpUtils
vietnguyen d11489c
fix maven dependency issues
vietnguyen 793d472
fix maven dependency issues
vietnguyen 77b6fd3
fix BulkSmsGatewayTest
vietnguyen 4e5fb2c
merge from master
vietnguyen 8f8f936
Merge remote-tracking branch 'origin/master' into viet-spring-6
vietnguyen cd9fe59
fix TrackedEntityAttributeStoreTest
vietnguyen 0171d58
revert javax package fix
vietnguyen 458c92a
fix cors config for spring security 6
vietnguyen 98936eb
merge from master
vietnguyen 2fa27d9
merge from master
vietnguyen 5d02c82
clear cache
vietnguyen 4dc6f6d
Merge remote-tracking branch 'origin/master' into viet-spring-6
vietnguyen bcad1ef
fix setUseTrailingSlashMatch issue
vietnguyen b5d2b77
merge from master
vietnguyen aac4163
Merge remote-tracking branch 'origin/master' into viet-spring-6
vietnguyen 4c16f7a
fix CustomRequestMappingHandlerMapping
vietnguyen cba4b37
fix ContentNegotiationManager in test
vietnguyen 165107e
fix: hibernate configs
vietnguyen 6c19034
fix messageSender test
vietnguyen db575bc
merge from masterwq
vietnguyen 649c7b9
merge from master
vietnguyen cc4401c
fix HibernateApiTrackedEntityAuditStorewq
vietnguyen 50fd97f
fix messageSender in test config
vietnguyen 6b63a29
merge from master
vietnguyen c62b7a3
merge from master
vietnguyen 3029402
Merge remote-tracking branch 'origin/master' into viet-spring-6
vietnguyen 11b3a5a
fix dataSource bean config
vietnguyen e1b452c
Merge remote-tracking branch 'origin/master' into viet-spring-6
vietnguyen c118366
replace @EnableMethodSecurity
vietnguyen 5e52317
fix messageSender bean wiring
vietnguyen 879bcce
fix flyway migration
vietnguyen 553e59d
fix emailMessageSender wiring
vietnguyen c80874f
fix emailMessageSender in test
vietnguyen b8a37e4
fix DataApprovalControllerTest
vietnguyen 859553c
fix MessageSender bean autowire issue
vietnguyen bbce4af
Merge branch 'master' into viet-spring-6
vietnguyen ac55820
fix merge conflicts
vietnguyen 9fc4224
fix code formats
vietnguyen 7822293
fix maven dependency issue
vietnguyen dc48a60
fix merge conflicts
vietnguyen 847bf43
fix maven dependency
vietnguyen 56ff8a2
Merge remote-tracking branch 'origin/master' into viet-spring-6
vietnguyen e0e6c6a
fix tracker tests
vietnguyen 1449452
fix NodeService bean injection
vietnguyen 2f2930f
code format
vietnguyen df8b01f
code format
vietnguyen 53e0528
Disable test testDeleteWithException
vietnguyen 169a3fb
Merge remote-tracking branch 'origin/master' into viet-spring-6
vietnguyen 483b3ad
fix test
vietnguyen b1807ee
Merge remote-tracking branch 'origin/master' into viet-spring-6
vietnguyen f44a7cf
revert debug log
vietnguyen aa828a9
Merge branch 'master' of github.com:dhis2/dhis2-core into viet-spring-6
netroms fbfa326
fix: fix ecache issue with DataDimensionTypeUserType
netroms 3077573
Merge remote-tracking branch 'origin/viet-spring-6' into viet-spring-6
netroms 6e847a9
Merge remote-tracking branch 'origin/master' into viet-spring-6
vietnguyen 0c5a5aa
fix jakarta in TrailingSlashInterceptor
vietnguyen ca15ac2
Merge remote-tracking branch 'origin/viet-spring-6' into viet-spring-6
vietnguyen 71da0db
fix: remove usage of requires_new
netroms 93b67fe
Change tomcat version
enricocolasante fd25d8a
fix test
vietnguyen 883f56c
Merge remote-tracking branch 'origin/viet-spring-6' into viet-spring-6
vietnguyen 3b5dd64
fix: revert remove usage of requires_new, except for jobs
netroms 847ce1f
fix HttpStatusCode
vietnguyen e8b3eb2
Merge remote-tracking branch 'origin/viet-spring-6' into viet-spring-6
vietnguyen e88c4d6
fix deps
vietnguyen 3469eab
fix job update status
vietnguyen f49a7a1
Merge remote-tracking branch 'origin/master' into viet-spring-6
vietnguyen a56ed5b
code format
vietnguyen 0af49c1
fix systemSettings api content-type
vietnguyen aa91b1b
code format
vietnguyen ae43ff3
code format
vietnguyen 98deb11
code format
vietnguyen a60cb39
chore: Fix file resource multipart upload test
david-mackessy 3ae5768
merge master
david-mackessy 5f5fc5a
chore: fix formatting
david-mackessy 4606f5a
fix: wrong charset in content-type headers
netroms 3f7cdb6
Merge branch 'master' of github.com:dhis2/dhis2-core into viet-spring-6
netroms 88a8a87
fix: remove merge artifacts
netroms 4005df1
fix: merge artifacts
netroms 2999325
Merge branch 'master' of github.com:dhis2/dhis2-core into viet-spring-6
netroms 710be95
fix: fake message sender refactorings
netroms 28ddc8c
Merge remote-tracking branch 'origin/master' into viet-spring-6
vietnguyen 2c00821
code format
vietnguyen fb2466c
fix sonarcloud issue
vietnguyen 46d8446
fix sonarcloud issue
vietnguyen b08423f
Merge branch 'master' of github.com:dhis2/dhis2-core into viet-spring-6
netroms 4cee535
Merge branch 'master' of github.com:dhis2/dhis2-core into viet-spring-6
netroms a007887
chore: adjust sms related
netroms 538b096
fix: adjust sms test
netroms f6a9c62
Merge branch 'master' into viet-spring-6
vietnguyen 89ece4f
Merge branch 'master' of github.com:dhis2/dhis2-core into viet-spring-6
netroms 8206f41
fix: adjust sms test
netroms 1e0b0f0
add jobSchedulerService.createThenExecute method
vietnguyen 5b7feb8
code format
vietnguyen 5ae71b2
remove entityManager.getReference in HibernateIdentifiableObjectStore
vietnguyen 8f83b18
fix sonar issues
vietnguyen 9aae708
Merge remote-tracking branch 'origin/master' into viet-spring-6
vietnguyen 9ea41a9
fix merge conflicts
vietnguyen 48b95a0
code format
vietnguyen ffd5229
fix DhisCorsFilter
vietnguyen 0006a14
remove interface FakeMessageSender
vietnguyen d8d95ae
fix DhisCorsProcessor
vietnguyen 78767b6
revert build.sh
vietnguyen db26043
Merge branch 'master' into viet-spring-6
jbee 046c728
temp amend jenkins dev file for pipeline test
david-mackessy f6573ef
update docker build image to use tomcat 10 to test pipeline
david-mackessy 07e3edf
Merge branch 'master' into viet-spring-6
david-mackessy c7c4718
update root pom to tomcat 10 to test pipeline
david-mackessy c2dae53
update jenkins dev to tomcat 10 to test pipeline
david-mackessy 0e32bd9
uncomment code in jenkins dev file after testing
david-mackessy cc6ca79
merge master
david-mackessy 675a262
format
david-mackessy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
Empty file.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -175,6 +175,8 @@ public interface JobConfigurationStore extends GenericDimensionalObjectStore<Job | |
*/ | ||
boolean tryRevertNow(@Nonnull String jobId); | ||
|
||
boolean executeNow(@Nonnull String jobId); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should not exist as there is already a method with that exact task (we look at that later) |
||
|
||
/** | ||
* A successful update means the DB state flipped from {@link JobStatus#SCHEDULED} to {@link | ||
* JobStatus#RUNNING}. | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wondering what these new default methods are for? are they used anywhere?
should a MessageSender just send messages, or get messages as well? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i've seen it used in the FakeMessageSender while looking through the rest of the PR. This seems like a code smell if it's only used for tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is currently a workaround for fixing the issue of overriding a bean in test environment. As
@Qualifer
doesn't work for that purpose. I can give an explanation in next week meeting.Basically in test we have
FakeMessageSender
SmsMessageSender
andEmailMessageSender
.We want the
FakeMessageSender
to override bothSmsMessageSender
andEmailMessageSender
.But
FakeMessageSender
has specific methodsgetAllMessages()
, which then can't be casted back to the others messageSenders.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Spring 5 you can override a bean by declaring same bean name.
But in spring 6, it doesn't work anymore. Need to implement same interface.