-
Notifications
You must be signed in to change notification settings - Fork 251
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
refactor: remove ConnectorVersionProvider #1470
refactor: remove ConnectorVersionProvider #1470
Conversation
c6f4522
to
8412fbf
Compare
Codecov Report
@@ Coverage Diff @@
## main #1470 +/- ##
=======================================
Coverage 67.16% 67.16%
=======================================
Files 717 716 -1
Lines 15978 15972 -6
Branches 1057 1057
=======================================
- Hits 10731 10728 -3
+ Misses 4773 4770 -3
Partials 474 474
Continue to review full report at Codecov.
|
Can we rename this to EdcVersion since this can be used by all EDC runtimes and not just the connector? |
Sure |
8412fbf
to
1a67b35
Compare
|
||
// TODO move to edc-spi | ||
public interface ConnectorVersionProvider { | ||
public interface EdcVersion { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need all these interfaces and impls for a simple version string?
How about we let the ConnectorServiceImpl
either use a hard-coded version string (0.0.1-SNAPSHOT
) instead of the ConnectorVersionProvider
, and we delete the ConnectorVersionProvider
and the EdcVersion
?
In the future we could improve this:
- create a gradle task that updates this hard-coded value before compile/build
- create a gradle task that generates a separate version file during build, which is then parsed by the
ConnectorServiceImpl
. That file would have to be shipped together with EDC code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@paullatzelsperger Changed as proposed
1a67b35
to
56ddb00
Compare
56ddb00
to
12e621f
Compare
12e621f
to
44469b4
Compare
44469b4
to
2c9ada1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What this PR changes/adds
Renames and moves
ConnectorVersionProvider
interface and impl from ids spi to core spi.Why it does that
Resolve TODO. The software version is not an IDS specific property.
Further notes
Is
spi.system.version
the right location, or is there a better one?Linked Issue(s)
Closes #1466
Checklist
no-changelog
)