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

Migrate to 6.1 with retro compatibility #123

Merged
merged 14 commits into from
Jan 20, 2025

Conversation

lh-lilahamel
Copy link
Contributor

@lh-lilahamel lh-lilahamel commented Nov 13, 2024

Waiting on this PR https://github.com/activeviam/activepivot/pull/11696


CI Checklist

  • Enable Integration Checks

@lh-lilahamel lh-lilahamel requested a review from a team as a code owner November 13, 2024 17:03
@lh-lilahamel lh-lilahamel self-assigned this Nov 26, 2024
@lh-lilahamel lh-lilahamel changed the title Migration to 6.1 - WIP Migrate to 6.1 with retro compatibility Dec 5, 2024
Copy link
Collaborator

@OPeyrusse OPeyrusse left a comment

Choose a reason for hiding this comment

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

Some changes to do, with the arrival of starters

pom.xml Outdated
<atoti-server.version>6.0.10</atoti-server.version>
<atoti-ui.version>5.1.13</atoti-ui.version>
<atoti-server.version>6.1.3-SNAPSHOT</atoti-server.version>
<atoti-ui.version>5.2.0-beta</atoti-ui.version>
Copy link
Collaborator

Choose a reason for hiding this comment

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

You should not have to set the UI version anymore. Using the starters, we remove this need

@@ -38,7 +37,7 @@ public class MacSpringBootApp {

/* Before anything else we statically initialize the Quartet FS Registry. */
static {
Registry.setContributionProvider(new ClasspathContributionProvider());
Registry.initialize(Registry.RegistryContributions.builder().build());
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's use a spring event trigger as done in the sandbox

Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's remove this, the starter for UI will handle it for us


@Override
public List<String> getAllowedOrigins() {
return Collections.singletonList(env.getRequiredProperty(ACTIVEUI_ADDRESS));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's expect this not to be set

*/
public AnalysisDatastoreFeeder(final String dumpName) {
public AnalysisDatastoreFeeder(final String dumpName, IInternalDatastore datastore) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's see how to not depend on the internal class

@@ -584,7 +584,7 @@ public boolean equals(Object obj) {

@Override
public String toString() {
return QfsArrays.join(", ", this.fieldNames).toString();
return ArrayUtil.join(", ", this.fieldNames).toString();
Copy link
Collaborator

Choose a reason for hiding this comment

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

We could even use the native java mehtod

@@ -331,7 +334,7 @@ void createApplication(
}

void createMinimalApplication(
final ThrowingLambda.ThrowingBiConsumer<IDatastore, IActivePivotManager> actions) {
final ThrowingLambda.ThrowingBiConsumer<IInternalDatastore, IActivePivotManager> actions) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here: let's see if we can use the public datastore


@BeforeAll
public static void setupRegistry() {
Registry.setContributionProvider(new ClasspathContributionProvider());
Registry.initialize(Registry.RegistryContributions.builder().build());
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's only scan the classes contributed by this project

* @throws Exception in case of error
*/
@Autowired
public void configureGlobal(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not needed normally.

Comment on lines 223 to 226
@Bean
@Order(1)
public SecurityFilterChain activeUiSecurity(final HttpSecurity http, final JwtFilter jwtFilter)
throws Exception {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can now drop these rules

@OPeyrusse OPeyrusse enabled auto-merge (squash) December 12, 2024 16:47
pom.xml Outdated Show resolved Hide resolved
* Move compatibility check to Java

* Remove compatibility-check leftovers in CI

* Use JDK21 on CI and update to 6.1.3

* Update fmt-maven-plugin to the version used in activepivot (which supports Java 21)
@OPeyrusse OPeyrusse merged commit a6779e2 into main Jan 20, 2025
4 of 5 checks passed
@OPeyrusse OPeyrusse deleted the task/PIVOT-10380-upgrade-pivot-server-6.1 branch January 20, 2025 09:58
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.

3 participants