Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Agnul97
Copy link
Contributor

@Agnul97 Agnul97 commented Oct 9, 2023

Brief description of the PR.
I noticed that there were a problems in the project related to the liquibase scripts for the foreign keys (namely, the ones inside the "extra" module):

The way of including those liquibase scripts through the configuration of the assembly descriptors:
Screenshot 2023-10-09 at 14 49 59
was wrong because, in order to have in the final container the scripts to run, the right "output directory" should be var/opt/jetty/webapps/root/WEB-INF/lib (the classpath) and not the one present on the screen. This wrong configuration led to the missing of FKs liquibase scripts in some containers (for example, the rest-API container)

Description of the solution adopted
For some containers, for example, the console, the FK scripts were imported not through the configuration of the XML descriptor but with a dependency on the FK module, included inside the POM file of the "web application" module, like this:
Screenshot 2023-10-09 at 15 09 19
To solve the problem, I decided to uniform this way of importing the scripts in the other containers...also, I think that this is the simpler way to include in the classpath the scripts

@codecov
Copy link

codecov bot commented Oct 9, 2023

Codecov Report

Merging #3884 (de2298e) into develop (2d519a7) will not change coverage.
The diff coverage is n/a.

❗ Current head de2298e differs from pull request most recent head f600bbb. Consider uploading reports for the commit f600bbb to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##             develop    #3884   +/-   ##
==========================================
  Coverage      20.58%   20.58%           
  Complexity         6        6           
==========================================
  Files           1936     1936           
  Lines          41534    41534           
  Branches        3945     3945           
==========================================
  Hits            8549     8549           
  Misses         32588    32588           
  Partials         397      397           

@Agnul97 Agnul97 force-pushed the fix-liquibaseFksDependencies branch from 05e9120 to f600bbb Compare October 13, 2023 12:52
@Coduz Coduz added the Bug This is a bug or an unexpected behaviour. Fix it! label Oct 30, 2023
@Coduz Coduz merged commit 30c0262 into eclipse-kapua:develop Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug This is a bug or an unexpected behaviour. Fix it!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants