Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
51eb98d
Implemented open ai client for image analysis
adrian-carneiro-imatia Sep 3, 2025
ccdefe6
Resolve comments
adrian-carneiro-imatia Sep 3, 2025
c84b995
Remove enum
adrian-carneiro-imatia Sep 3, 2025
4769c47
Remove parameters from client
adrian-carneiro-imatia Sep 3, 2025
ce27579
Missing from last commit
adrian-carneiro-imatia Sep 3, 2025
8a44eb5
New develop version → 5.14.0-SNAPSHOT
supportontimize Sep 11, 2025
5c19ad5
Merge branch 'develop' into feature/openai-image-analyzer
adrian-carneiro-imatia Sep 15, 2025
a93ae7d
Multiple changes
adrian-carneiro-imatia Sep 15, 2025
bd95a4b
Merge pull request #199 from ontimize/sync/5.13.0
pmkirsten Sep 15, 2025
69420cc
add missing dependency
adrian-carneiro-imatia Sep 15, 2025
79347d3
fix typo
adrian-carneiro-imatia Sep 15, 2025
49db1a9
merge develop
pmkirsten Sep 15, 2025
175b9c3
new temporal version
pmkirsten Sep 15, 2025
6dd8bea
missing imports
adrian-carneiro-imatia Sep 15, 2025
969a4ba
SonarQube
pmkirsten Sep 16, 2025
472c482
Merge pull request #200 from ontimize/feature/recover-sonarcloud-analyze
pmkirsten Sep 16, 2025
f520637
Fix variable names for clarity in Log4j2LoggerHelper
pmkirsten Sep 16, 2025
9127841
Refactor Log4j2LoggerHelper for clarity and consistency
pmkirsten Sep 16, 2025
f522d03
Enhance Log4j2LoggerHelper with improved Javadoc and type safety
pmkirsten Sep 16, 2025
cfffad5
Enhance Log4j2LoggerHelper with null checks and type safety improvements
pmkirsten Sep 17, 2025
1b4bd83
Add info to CHANGELOG.md
pmkirsten Sep 17, 2025
1708fe1
Add spaces to follow conventions
pmkirsten Sep 17, 2025
3d6f07f
Add info about suppress warning
pmkirsten Sep 17, 2025
08014d7
Merge pull request #201 from ontimize/feature/sonar-fixes
pmkirsten Sep 17, 2025
dc4a743
Add suppression warning for false positive in getLogFileContent method
pmkirsten Sep 17, 2025
76c0d5f
Enhance getLogFileContent method with detailed Javadoc and suppress r…
pmkirsten Sep 17, 2025
57df9e5
Merge branch 'develop' into feature/sonar-fixes
pmkirsten Sep 17, 2025
44645e5
Enhance getLogFileContent method with detailed Javadoc and suppress r…
pmkirsten Sep 17, 2025
f07698c
Merge remote-tracking branch 'origin/feature/sonar-fixes' into featur…
pmkirsten Sep 17, 2025
affad1e
Refactor string concatenation in XMLClientUtilities for improved read…
pmkirsten Sep 17, 2025
20c80bc
Replace the type specification in this constructor call with the diam…
pmkirsten Sep 17, 2025
0580ea0
Replace the type specification in this constructor call with the diam…
pmkirsten Sep 17, 2025
485483e
Refactor query method calls to improve parameter order and enhance re…
pmkirsten Sep 17, 2025
84b7359
Refactor SQL placeholder replacement logic into a dedicated method fo…
pmkirsten Sep 17, 2025
a54858c
Refactor parameter order in JdbcTemplate query mock for avoid potenti…
pmkirsten Sep 17, 2025
e26c09e
Update CHANGELOG.md
pmkirsten Sep 17, 2025
9bbe609
Merge pull request #202 from ontimize/feature/sonar-fixes
pmkirsten Sep 17, 2025
0602bdc
Refactor property loading to use a stream for improved readability
pmkirsten Sep 17, 2025
c24be6e
Update CHANGELOG.md
pmkirsten Sep 17, 2025
07a1060
Merge branch 'develop' into feature/sonar-fixes
pmkirsten Sep 17, 2025
1073434
Refactor property loading to use a stream for improved readability an…
pmkirsten Sep 17, 2025
da01118
Merge remote-tracking branch 'origin/feature/sonar-fixes' into featur…
pmkirsten Sep 17, 2025
e47ef6b
Update CHANGELOG.md
pmkirsten Sep 17, 2025
88bb466
Add validation for table name in getGeneratedKeys simulation. Remove …
pmkirsten Sep 18, 2025
d99f671
Refactor key generation validation to improve error handling and ensu…
pmkirsten Sep 18, 2025
b5a763f
Improve error handling in key generation validation by throwing a mor…
pmkirsten Sep 18, 2025
8e9f951
Refactor key generation logic to ensure table name is validated befor…
pmkirsten Sep 18, 2025
bed47f3
Refactor table name retrieval in key generation logic to improve read…
pmkirsten Sep 18, 2025
3e1a5ad
Refactor method parameters for improved readability and consistency
pmkirsten Sep 18, 2025
7c9613b
Refactor key query handling in OntimizeJdbcDaoSupport for improved re…
pmkirsten Sep 18, 2025
417c484
Refactor key retrieval logic in OntimizeJdbcDaoSupport for separation…
pmkirsten Sep 18, 2025
071dcdd
Change visibility of methods
pmkirsten Sep 18, 2025
8bb4b51
Reformat code
pmkirsten Sep 18, 2025
0ab6c98
Use "isEmpty()" to check whether a "String" is empty or not.
pmkirsten Sep 18, 2025
d0b770c
Use built-in functions to format log messages
pmkirsten Sep 18, 2025
5137682
Change return type of applyTransformations method to List<Object>
pmkirsten Sep 18, 2025
b971bef
Set ia-analyzer version
pmkirsten Sep 18, 2025
d7c6241
Refactor reader creation logic into a separate method
pmkirsten Sep 18, 2025
0243f0b
Refactor query setup logic into a separate method to reduce cognitive…
pmkirsten Sep 19, 2025
2199e93
Refactor set parameter values into a separate method to reduce cognit…
pmkirsten Sep 19, 2025
4b1e475
Refactor applyTransformations into a separate method to reduce cognit…
pmkirsten Sep 19, 2025
00b72de
Refactor composeQuerySql into a separate method to reduce cognitive c…
pmkirsten Sep 19, 2025
b0de81b
Refactor getValidAttributes into a separate method to reduce cognitiv…
pmkirsten Sep 19, 2025
d5c64cd
Merge pull request #203 from ontimize/feature/sonar-fixes
pmkirsten Sep 19, 2025
691c4cf
Refactor getBeanForName to simplify service retrieval logic, because …
pmkirsten Sep 19, 2025
cd56e05
Refactor SharePreferencesBeanDefinitionParser to add null check for i…
pmkirsten Sep 19, 2025
a097db9
Update CHANGELOG.md
pmkirsten Sep 19, 2025
fa69231
Refactor ApplicationContextUtils to remove unnecessary null check for…
pmkirsten Oct 6, 2025
963b4a8
Refactor getServiceBean to handle exceptions and improve readability.…
pmkirsten Oct 6, 2025
ef1168f
Merge pull request #204 from ontimize/feature/sonar-fixes
pmkirsten Oct 8, 2025
f5cd19e
Change prompts
adrian-carneiro-imatia Oct 17, 2025
d8363e2
Fix json scheme annotations, fix analyzeimage
adrian-carneiro-imatia Oct 22, 2025
1d83e8d
fix sonarqube
adrian-carneiro-imatia Oct 23, 2025
572b860
prevent chatgpt from adding schema
adrian-carneiro-imatia Oct 27, 2025
612e83a
Merge branch 'develop' into feature/openai-image-analyzer
pmkirsten Nov 3, 2025
312503a
Translate validation messages
pmkirsten Nov 3, 2025
6e796bc
Merge pull request #194 from ontimize/feature/openai-image-analyzer
pmkirsten Nov 3, 2025
59df494
New release → 5.14.0
supportontimize Nov 3, 2025
f424d22
Update CHANGELOG.md
pmkirsten Nov 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 11 additions & 22 deletions .github/workflows/sonar-build.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
name: Analyze project with Sonar Cloud
name: SonarQube
on:
push:
branches:
- master
- main
- develop
pull_request:
types: [opened, synchronize, reopened]
jobs:
Analyze-project-with-Sonar-Cloud:
name: Analyze project with Sonar Cloud
build:
name: Build and analyze
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 11
- name: Cache SonarCloud packages
java-version: 17
distribution: 'temurin' # Alternative distribution options are available.
- name: Cache SonarQube packages
uses: actions/cache@v4
with:
path: ~/.sonar/cache
Expand All @@ -31,18 +31,7 @@ jobs:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -B -Pjacoco verify
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Sonar
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=ontimize_ontimize-jee -Dsonar.coverage.jacoco.xmlReportPaths="$GITHUB_WORKSPACE/ontimize-jee-jacoco/target/site/jacoco-aggregate/jacoco.xml"
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_EE }}
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=ontimize_ontimize-jee
27 changes: 26 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,30 @@
<!-- ### Security 🛡️-->

## [Unreleased]
## [5.14.0] - 2025-11-03
### Added ✔️
- **OpenAI Client**

An OpenAI client has been implemented with a method to process images. This method accepts a parameter of type ProcessRequest<T>, which contains the following:
- The image file to be processed.
- An optional prompt to provide additional instructions (the default behavior is to analyze the image and return it in a specific format).
- The number of retries for the request.
- The output class type (T) expected as a result.

The client is initialized via a constructor that receives an OpenAiClientConfig object. This configuration object includes:
- The user's API key.
- The model to be used.
- The maximum number of tokens allowed per request.
- The temperature setting (which controls how creative the responses should be).
### Changed
- **ApplicationContextUtils**: Simplified the getBeanForName method for more streamlined service retrieval.
- **DefaultDaoExtensionHelper**: Improved property placeholder handling with Java streams for type safety and clarity, addressing SonarQube findings.
- **Log4j2LoggerHelper**: Clarified variable names, added null checks, enhanced type safety, and improved Javadoc documentation.
- **LogbackLoggerHelper**: Improved Javadoc documentation and suppress false positives on Sonar.
- **OntimizeJdbcDaoSupport**: Refactored SQL placeholder and property handling, introduced a helper method, corrected key retrieval logic, and improved type safety using Java streams to resolve SonarQube issues.
- **OntimizeJdbcDaoSupportTest**: Updated mocks to match the modified method signatures.
- **SharePreferencesBeanDefinitionParser**: Added null check and refactored engine parsing logic for safer and clearer configuration handling.
- **XMLClientUtilities**: Refactored string concatenation to use StringBuilder for improved readability and performance.
## [5.13.0] - 2025-09-11
### Added ✔️
* **OntimizeJdbcDaoSupport**: Created executeSQLStatement() to use DDL statements. #175
Expand Down Expand Up @@ -67,7 +91,8 @@
* **POM**: Sorted pom alphabetically and sorted, extracted version to properties and put all dependencies into dependency manager.
* **Sonar**: Fix some sonar code smells.

[unreleased]: https://github.com/ontimize/ontimize-jee/compare/5.13.0...HEAD
[unreleased]: https://github.com/ontimize/ontimize-jee/compare/5.14.0...HEAD
[5.14.0]: https://github.com/ontimize/ontimize-jee/compare/5.13.0...5.14.0
[5.13.0]: https://github.com/ontimize/ontimize-jee/compare/5.12.1...5.13.0
[5.12.1]: https://github.com/ontimize/ontimize-jee/compare/5.12.0...5.12.1
[5.12.0]: https://github.com/ontimize/ontimize-jee/compare/5.11.0...5.12.0
Expand Down
2 changes: 1 addition & 1 deletion ontimize-jee-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.ontimize.jee</groupId>
<artifactId>ontimize-jee</artifactId>
<version>5.13.0</version>
<version>5.14.0</version>
</parent>

<artifactId>ontimize-jee-common</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ private static StringBuffer dom2StringInternal(Node node) {
if (namedNodeAttributes != null) {
for (int i = 0; i < namedNodeAttributes.getLength(); i++) {
Node n = namedNodeAttributes.item(i);
sbAttributes.append(n.getNodeName() + "=\"" + n.getNodeValue() + "\" ");
sbAttributes.append(n.getNodeName()).append("=\"").append(n.getNodeValue()).append("\" ");
}
}
if (node.getNodeType() == Node.ELEMENT_NODE) {
Expand Down
2 changes: 1 addition & 1 deletion ontimize-jee-server-jdbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.ontimize.jee</groupId>
<artifactId>ontimize-jee</artifactId>
<version>5.13.0</version>
<version>5.14.0</version>
</parent>
<artifactId>ontimize-jee-server-jdbc</artifactId>

Expand Down
Loading