-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature/remove functionality level #649
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #649 +/- ##
===========================================
- Coverage 92.51% 92.46% -0.06%
===========================================
Files 129 127 -2
Lines 3889 3889
Branches 635 623 -12
===========================================
- Hits 3598 3596 -2
- Misses 291 293 +2 ☔ View full report in Codecov by Sentry. |
The built script currently still has the In time the Additionally, |
Great stuff! Before I review the PR (phew), some questions:
|
Yes, (limited) tests so far "just work". Functionality (no pun intended) is provided by https://github.com/viash-io/viash/pull/649/files#diff-08d6fbd855a302a8c8a679e2d4e5612616e059a9a14020da75697415e974c04cR223
Not yet explicitly (but I believe there is still an external script that is fetched and that is currently still in the old format). It's on my TODO list. (shouldn't take too much time 🤞 )
👍
👍
👍 |
773f014
to
a7b3797
Compare
Tweak wording of the deprecation message as not being removed but deprecated
src/main/resources/io/viash/helpers/bashutils/ViashDockerFuns.sh
Outdated
Show resolved
Hide resolved
src/main/scala/io/viash/Main.scala
Outdated
namespace = appliedConfig.config.functionality.namespace, | ||
functionalityName = appliedConfig.config.functionality.name | ||
namespace = appliedConfig.config.namespace, | ||
componentName = appliedConfig.config.name |
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.
could be renamed to simply name
, or not?
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.
Sure!
@@ -56,13 +56,13 @@ object ViashNamespace extends Logging { | |||
targetDir: String, | |||
runnerId: String, | |||
namespace: Option[String], | |||
functionalityName: String | |||
componentName: String |
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.
Same -- see above!
|
||
import io.viash.helpers.data_structures._ | ||
import io.viash.functionality.arguments.Argument | ||
// import io.viash.helpers.data_structures._ |
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.
can this be removed?
val buildInfo = conf.apply("info") | ||
val conf1 = buildInfo.map{ bi => | ||
conf.remove("info").add("build_info", bi) | ||
}.getOrElse(conf) |
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 move info
to build_info
? The config shouldn't contain a info
field at this stage yet, right?
...Or are we using this function to read in .config.vsh.yaml
files as well? 👀
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.
It is indeed meant to have some sort of compatibility with (old) .config.vsh.yaml
files. I wanted to prevent poluting & mixing .functionality.info
with the build info under .info
. Unlikely to happen often, but it was easy to write too.
Also, the code should be scheduled to be dropped in the future, so any extra complexity here shoud be temporary.
("functionalityName" -> c.name), | ||
("functionalityNamespace" -> c.namespace.getOrElse("")) |
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.
Do these keys need to be renamed?
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.
good catch! I was checking whether you were paying attention! >.>
Co-authored-by: Robrecht Cannoodt <[email protected]>
Describe your changes
Remove the
functionality
layer from the config and move all fields to the top layer.Related issue(s)
Closes #500
Type of Change
Checklist
Requirements:
Tests:
Documentation:
Test Environment