Skip to content

Conversation

@yanrongzhen
Copy link
Contributor

Fixes #4590 #4567 .

PLAIN_TEXT("sampleText"),
MARKDOWN("sampleMarkdown");
PLAIN_TEXT("text", "sampleText"),
MARKDOWN("markdown", "sampleMarkdown");
Copy link
Member

Choose a reason for hiding this comment

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

When users want to use sinks like DingTalk or WeCom that require specific attribute values, is there a way for them to easily and clearly know which text to choose as the configuration or which attribute values can be configured? Add comments to this class and field? Or use an MD document for instructions on how to use it?

The same issue applies to specific property names defined by ConnectRecordExtensionKeys.

当用户想要使用像DingTalk或WeCom这类需要特定属性值的sink时,有没有办法让用户比较容易、比较明确地知道他们应该选择哪个文本作为配置,或者是很清楚地知道可以配置哪些属性值?在该类和字段上加注释?还是用md文档做使用说明?
对于ConnectRecordExtensionKeys定义的特定的属性名称,也是同样的问题。

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it is necessary to write the usage method in the md document, so that users can quickly understand how to use the connector.

我认为有必要将使用方式写在md文档中,以便用户能够快速了解​​如何使用。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This issue is duplicated with #4601. I will provide a PR to fix this issue in #4601 .

eventmesh.workflow.name=EVENTMESH-workflow
eventmesh.connector.dingtalkTemplateType=sampleText
eventmesh.connector.dingtalkTemplateType=text
eventmesh.connector.wecomTemplateType=text
Copy link
Contributor

@hhuang1231 hhuang1231 Dec 1, 2023

Choose a reason for hiding this comment

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

Is it possible to explicitly inform the user whether the value written by the user is correct after parsing these extended fields in the configuration file?

是否可以在解析完配置文件中这些扩展字段后,显式的告知用户编写的value是否正确?

Copy link
Contributor Author

@yanrongzhen yanrongzhen Dec 7, 2023

Choose a reason for hiding this comment

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

When a user-written value is not valid, an exception will be thrown by DingDingMessageTemplateType#of.

@codecov
Copy link

codecov bot commented Dec 1, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (5998926) 16.79% compared to head (82e7d05) 16.81%.

Files Patch % Lines
...dingtalk/sink/connector/DingDingSinkConnector.java 50.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #4591      +/-   ##
============================================
+ Coverage     16.79%   16.81%   +0.01%     
- Complexity     1677     1680       +3     
============================================
  Files           782      782              
  Lines         29317    29321       +4     
  Branches       2532     2532              
============================================
+ Hits           4924     4930       +6     
+ Misses        23933    23932       -1     
+ Partials        460      459       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pandaapo pandaapo added this to the 1.10 milestone Dec 5, 2023
@pandaapo pandaapo changed the title [ISSUE#4590] WeCom/DingTalk connector extension supports spring environment variab… [ISSUE#4590] WeCom/DingTalk connector extension supports spring environment variables Dec 5, 2023
Copy link
Member

@mxsm mxsm left a comment

Choose a reason for hiding this comment

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

LGTM

@mxsm mxsm merged commit a170a79 into apache:master Dec 7, 2023
Pil0tXia added a commit to Pil0tXia/eventmesh that referenced this pull request Dec 16, 2023
Pil0tXia added a commit to Pil0tXia/eventmesh that referenced this pull request Dec 16, 2023
pandaapo pushed a commit that referenced this pull request Dec 17, 2023
* Unify 'LiteMessage' to 'EventMeshMessage'

* Sync connectors doc

* Format RabbitMQ & 企业微信

* Format Slack & 钉钉

* Format HTTP & MongoDB

* Unify 'EventMesh Runtime'

* Unify 'EventMesh'

* Fix translation #4664 (comment)

* Explain additional attributes #4591 (comment)

* Append: Unify remaining 'EventMesh'

* Beautify meshAddress

* Add and correct attributes
xuhongjia pushed a commit to Deckers-Ohana/eventmesh that referenced this pull request Mar 13, 2025
xuhongjia pushed a commit to Deckers-Ohana/eventmesh that referenced this pull request Mar 13, 2025
…ache#4668)

* Unify 'LiteMessage' to 'EventMeshMessage'

* Sync connectors doc

* Format RabbitMQ & 企业微信

* Format Slack & 钉钉

* Format HTTP & MongoDB

* Unify 'EventMesh Runtime'

* Unify 'EventMesh'

* Fix translation apache#4664 (comment)

* Explain additional attributes apache#4591 (comment)

* Append: Unify remaining 'EventMesh'

* Beautify meshAddress

* Add and correct attributes
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.

[Enhancement] WeCom/DingTalk connector extension supports spring environment variables.

5 participants