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

fix(QTDI-763) issue to enable Tacokit #945

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

yyin-talend
Copy link
Collaborator

@yyin-talend yyin-talend commented Nov 7, 2024

Parent - https://qlik-dev.atlassian.net/browse/QTDI-763
Task - https://qlik-dev.atlassian.net/browse/QTDI-835

Requirements

  • Any code change adding any logic MUST be tested through a unit test executed with the default build
  • Any API addition MUST be done with a documentation update if relevant

Why this PR is needed?

What does this PR adds (design/code thoughts)?

@yyin-talend yyin-talend requested a review from undx November 7, 2024 12:12

This comment has been minimized.

Copy link
Member

@undx undx left a comment

Choose a reason for hiding this comment

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

Could you add a test for that method?

@@ -79,7 +80,13 @@ private Path fromStudioConfiguration() {
// check if we are in the studio process if so just grab the studio config
final String m2Repo = System.getProperty(STUDIO_MVN_REPOSITORY);
if (!"global".equals(m2Repo)) {
return handler.get(Paths.get(System.getProperty("osgi.configuration.area", ""), M2_REPOSITORY).toString());
String osgi = System.getProperty("osgi.configuration.area", "");
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
String osgi = System.getProperty("osgi.configuration.area", "");
final String osgi = System.getProperty("osgi.configuration.area", "");

This comment has been minimized.

Copy link

sonar-eks bot commented Nov 13, 2024

Passed

Analysis Details

0 Issues

  • Bug 0 Bugs
  • Vulnerability 0 Vulnerabilities
  • Code Smell 0 Code Smells

Coverage and Duplications

  • Coverage 90.00% Coverage (54.90% Estimated after merge)
  • Duplications 0.00% Duplicated Code (1.30% Estimated after merge)

Project ID: org.talend.sdk.component:component-runtime

View in SonarQube

Copy link
Member

@undx undx left a comment

Choose a reason for hiding this comment

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

LGTM
In my opinion, in the UT, you should check returned value to be sure it used studio osgi location...

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.

2 participants