Skip to content
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

Upgrading to Spring Boot 3 #568

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kinow
Copy link
Member

@kinow kinow commented Sep 26, 2023

Description

Upgrading to Spring Boot 3

Motivation and Context

#566 (comment)

Closes #576

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@@ -1,4 +1,4 @@
version: '3.9'
version: '3.2'
Copy link
Member Author

Choose a reason for hiding this comment

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

To be reverted

@@ -19,7 +19,7 @@

package org.commonwl.view.cwl;

import javax.validation.ValidationException;
import jakarta.validation.ValidationException;
Copy link
Member Author

Choose a reason for hiding this comment

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

Note: Iacopo might have to test a deploy of this version, to make sure the server is using jakarta and not javax too.


@TypeDefs({@TypeDef(name = "json", typeClass = JsonBinaryType.class)})
Copy link
Member Author

Choose a reason for hiding this comment

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

Not needed with Hibernate 6.

@@ -2,16 +2,17 @@

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.hypersistence.utils.hibernate.type.json.JsonBinaryType;
Copy link
Member Author

Choose a reason for hiding this comment

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

They renamed the package hibernate-entity-60, to this hypersistence.

@@ -14,7 +14,7 @@
* issues with serialization.
*/
public interface QueuedWorkflowRepository
extends JpaRepository<QueuedWorkflow, String>, QueuedWorkflowRepositoryCustom {
extends CrudRepository<QueuedWorkflow, String>, QueuedWorkflowRepositoryCustom {
Copy link
Member Author

Choose a reason for hiding this comment

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

JpaRepository now doesn't have the save method, so using this CrudRepository that contains the four ops.

@@ -214,7 +214,7 @@ public ModelAndView getWorkflow(
* @param branch The branch of the repository
* @return The workflow view with the workflow as a model
*/
@GetMapping(value = "/workflows/**/*.git/{branch}/**")
@GetMapping(value = "/workflows/*/*.git/{branch}/**")
Copy link
Member Author

Choose a reason for hiding this comment

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

This needs to be well tested.

Now Spring Web doesn't allow any content after the /**. I found an issue or blog that suggested to test with /*/bla instead. Trying to get the tests and build to pass in order to verify it in the browser.

@@ -9,7 +9,7 @@
class="ch.qos.logback.core.ConsoleAppender">
<layout class="ch.qos.logback.classic.PatternLayout">
<Pattern>
%black(%d{ISO8601}) %highlight(%-5level) [%blue(%t)] %yellow(%C{1.}): %msg%n%throwable
%black(%d{ISO8601}) %highlight(%-5level) [%blue(%t)] %yellow(%C{1}): %msg%n%throwable
Copy link
Member Author

Choose a reason for hiding this comment

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

Was getting a NumberFormatException for 1., during the logback startup. This was the only place where I found the 1.. Changing it the build didn't fail in the same place, but will have to confirm what was the 1., and if the 1 alone will act the same way.

@kinow kinow changed the title WIP Upgrading to Spring Boot 3 Oct 12, 2023
@kinow
Copy link
Member Author

kinow commented Oct 12, 2023

Fixed one broken test today, three more to go. Two I know the reason, but not the solution. The other we had during the migration mongo->postgres, so I just need to find the notes about how to debug that one (need to look at the query executed during the unit test...)

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.

None yet

1 participant