Skip to content

Storing Custom-Plugin (Non-SCL) Resources #609

Open
stiliyan-v wants to merge 51 commits intomainfrom
feature/594_plugins-custom-resources
Open

Storing Custom-Plugin (Non-SCL) Resources #609
stiliyan-v wants to merge 51 commits intomainfrom
feature/594_plugins-custom-resources

Conversation

@stiliyan-v
Copy link
Copy Markdown

@stiliyan-v stiliyan-v commented Mar 16, 2026

@stiliyan-v stiliyan-v requested a review from a team as a code owner March 16, 2026 10:03
@stiliyan-v stiliyan-v added the enhancement New feature or request label Mar 16, 2026
@stiliyan-v stiliyan-v force-pushed the feature/594_plugins-custom-resources branch 7 times, most recently from 3897c0b to d0bd21d Compare March 17, 2026 12:52
@berke-akkaya berke-akkaya force-pushed the feature/594_plugins-custom-resources branch from 7b6f2c8 to 9b6274a Compare March 18, 2026 12:51
Comment thread api/plugins-custom-resources.yaml Outdated
Comment thread app/src/main/resources/application.properties Outdated
@clepski
Copy link
Copy Markdown
Contributor

clepski commented Mar 20, 2026

This PR adds several new dependencies and ways of building APIs, like using panache for entities and how endpoints are build. I am not against changing things for the better, but this amount of change requires some discussion and approval of the community.

Let's take this to the next compas community meeting for discussion.

// SPDX-License-Identifier: Apache-2.0
package org.lfenergy.compas.scl.data.service;

public record UploadRequest(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Auf dieser Ebene müsste der Namen falsch, sein. Was passiert wenn das nicht über einen Http-Request rein kommt?

Comment thread app/src/main/resources/application.properties
Comment thread app/pom.xml
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

do we still need the repository-postgresql package in case of using panache?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

We store our panache entity class in this package.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

panache entity classes are not postgresql related, needs to be moved to repository module

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@stiliyan-v this one I mentioned right before

quarkus.datasource.password = ${POSTGRESQL_PASSWORD:compas}

# Hibernate ORM configuration (schema managed by Flyway)
quarkus.hibernate-orm.database.generation = none
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can't this just been added to application.properties so that its valid for all profiles? Same for line 28:30?
Same for prod profile


@Entity
@Table(name = "plugins_custom_resource")
public class PluginsCustomResource extends PanacheEntityBase {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this class really postgresql relevant? Basically with Panache we split up the Database implementation with the model. We might want to move this to sub-module repository.
Only "repository-postgresql/src/main/resources/org/lfenergy/compas/scl/data/repository/postgresql/db/migration/V1_7__create_plugins_custom_resource.sql" should be DB dependent.

@stiliyan-v stiliyan-v force-pushed the feature/594_plugins-custom-resources branch 2 times, most recently from e97f972 to 7526c0b Compare March 30, 2026 13:29
david-monichi and others added 11 commits March 30, 2026 15:32
Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
      Flyway migration for plugins_custom_resource table

Signed-off-by: Berke Akkaya <berke.akkaya@bearingpoint.com>
Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
…points

Signed-off-by: Berke Akkaya <berke.akkaya@bearingpoint.com>
stiliyan-v and others added 12 commits March 30, 2026 15:38
Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
…rm config in application.properties

Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
Signed-off-by: Berke Akkaya <berke.akkaya@bearingpoint.com>
Signed-off-by: Berke Akkaya <berke.akkaya@bearingpoint.com>
Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
@stiliyan-v stiliyan-v force-pushed the feature/594_plugins-custom-resources branch from 7526c0b to e0e4ccd Compare March 30, 2026 13:42
Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
@stiliyan-v stiliyan-v force-pushed the feature/594_plugins-custom-resources branch from ba59dda to aee9622 Compare March 31, 2026 07:31
Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
@stiliyan-v stiliyan-v force-pushed the feature/594_plugins-custom-resources branch from aee9622 to 0afc97d Compare March 31, 2026 08:40
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

just to be sure, this file is postgresql related, therefore here ok

import java.util.Date;
import java.util.UUID;
import jakarta.validation.constraints.*;
import jakarta.validation.Valid;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
@stiliyan-v stiliyan-v closed this Apr 14, 2026
@stiliyan-v stiliyan-v reopened this Apr 14, 2026
david-monichi
david-monichi previously approved these changes Apr 15, 2026
@clepski
Copy link
Copy Markdown
Contributor

clepski commented Apr 15, 2026

Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
@sonarqubecloud
Copy link
Copy Markdown

@stiliyan-v stiliyan-v requested a review from clepski April 15, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extend scl-data-service with custom plugins resources endpoints

4 participants