Develop a Parser.simplify method
oodamien opened this issue · 0 comments
oodamien commented
Only for the stream feature -
Description:
The dslText is the DSL with all the parameters sent in the last deploy/update. He reflects all the states.
The originalDslText is the DSL of the stream creation (= first DSL).
On SCDF UI, this 2 properties are used.
Problem:
- Hard for a user to have a vision of a stream (read between parameters).
- The DSL Text is most of the time truncate in the UI
How to reproduce:
- Create a stream
file | log
- Deploy
file | log
(do not specify parameter) - Navigate to the stream page, you should see something like that:
time --spring.cloud.stream.kafka.streams.binder.zkNodes=zookeeper:2181 --spring.cloud.stream.kafka.binder.zkNodes=zookeeper:2181 --spring.cloud.stream.kafka.streams.binder.brokers=PLAINTEXT://kafka-broker:9092 --spring.cloud.stream.kafka.binder.brokers=PLAINTEXT://kafka-broker:9092 | transform --spring.cloud.stream.kafka.streams.binder.zkNodes=zookeeper:2181 --foo=bar --spring.cloud.stream.kafka.binder.zkNodes=zookeeper:2181 --spring.cloud.stream.kafka.streams.binder.brokers=PLAINTEXT://kafka-broker:9092 --spring.cloud.stream.kafka.binder.brokers=PLAINTEXT://kafka-broker:9092 | log --spring.cloud.stream.kafka.streams.binder.zkNodes=zookeeper:2181 --foo=bar --spring.cloud.stream.kafka.binder.zkNodes=zookeeper:2181 --spring.cloud.stream.kafka.streams.binder.brokers=PLAINTEXT://kafka-broker:9092 --spring.cloud.stream.kafka.binder.brokers=PLAINTEXT://kafka-broker:9092
Solution:
Create a method which return the stream with just the apps and names
Ex: f1: file | l1:log