Comments (10)
@ConfigurationProperties(value = "kestra.tasks")
@Getter
public class TaskGlobalDefaultConfiguration {
List<TaskDefault> defaults;
}
Is better expressed as:
@ConfigurationProperties(value = "kestra.tasks.defaults", list=true)
public class TaskDefault {
private final String type;
@Builder.Default
private final boolean forced = false;
@MapFormat(transformation = MapFormat.MapTransformation.NESTED, keyFormat = StringConvention.RAW)
private final Map<String, Object> values;
}
Then inject List<TaskDefault>
.
Also ideally git rid of Lombok 🤢🤮
from kestra.
I couldn't find any other solution than a custom TypeConverter, but seems to work
from kestra.
Hello ! After hours of digging I found an edge case in Micronaut which leads to such behaviour. I openned an issue. Meanwhile, adding at least a third UPPERCASE letter before the "_" should solve the issue (ABC_VALUE for eg.)
from kestra.
@brian-mulier-p I appreciate the effort!
from kestra.
where is the source for the configuration properties definition of this?
from kestra.
generally if you want to raw keys you need to do this https://github.com/micronaut-projects/micronaut-sql/blob/1dd793b4f4f3bf85c729a355c1773f5df3efa2fe/hibernate-jpa/src/main/java/io/micronaut/configuration/hibernate/jpa/JpaConfiguration.java#L139
from kestra.
Hello ! Thank's for the help. I think I tried that already. I can try again tomorrow to make sure but basically it looks like the MapFormat annotation isn't taken care of when it goes through such hierarchy (List with Something having a Map inside)
from kestra.
Nvm I didn't try that exact example, that's because we're mixing objects from our YAML declaration with POJO for our global configuration. It's done to create a heavy relation between those but it brings some complexity around configuring annotation. I didn't try the list=true since the lower class (TaskDefault) isn't necessarily a list :'(
from kestra.
Btw I tried your sample but list = true seems not to exist 🤔
from kestra.
Sorry it should be @EachProperty
from kestra.
Related Issues (20)
- Empty Inputs not NULL after typing in them/removing characters HOT 5
- Accessing optional inputs should return null rather than resulting in an error HOT 3
- Loading of tutorial must be a server command
- Unable to use GKE for KubernetesTaskRunner
- Rename VariableCondition to ExpressionCondition or just Condition/Expression
- Left sidebar is not refreshing the current state of files
- Adjust kestra_namespace Terraform resource to reflect renaming task defaults to plugin defaults
- Enhancements to the `WaitFor` — change iterationCount to start with 0 and fix the Return task
- Process Runner plugin is not clickable in the Plugins UI page
- Some plugins are still missing logos - Singer, Openpgp HOT 1
- Github push plugin issue with file replacement of file name in inputFiles HOT 1
- Support for SQL server as backend HOT 1
- Impossible to save new flow creation
- Off-Centered Elements in the Demo Instance HOT 2
- Provide a way to access flow and namespace states
- Revert the color of dark plugin icons in the UI HOT 2
- Extend the Execute modal with "Schedule for later" option + extend the Subflow task with a `scheduledDate` argument
- Autocompletion doesn't work for nested tasks
- Ensure that all cloud-based Batch task runners have sensible defaults in a configurable `completionCheckInterval` HOT 1
- Redesign the main dashboard to be more welcoming and informative
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kestra.