-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
add get yaml #307
base: master
Are you sure you want to change the base?
add get yaml #307
Conversation
WalkthroughThe changes introduce methods in Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Config
participant YAMLGenerator
participant PropertyParser
Client->>Config: Call GetYaml()
Config->>PropertyParser: Parse properties
PropertyParser-->>Config: Return parsed properties as map
Config->>YAMLGenerator: Generate YAML from map
YAMLGenerator-->>Config: Return YAML
Config-->>Client: Return YAML
Poem
Tip Early access features
Note:
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
感谢您提出Pull Request,我会尽快Review。我会在1-2日内进行查看或者回复,如果遇到节假日可能会处理较慢,敬请谅解。 |
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.
Actionable comments posted: 3
Pull Request Test Coverage Report for Build 8844714119Details
💛 - Coveralls |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Can anyone review this pr? |
@weihubeats would you please help to add some unit tests for this new feature? |
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.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- storage/repository_test.go (1 hunks)
Additional comments not posted (2)
storage/repository_test.go (2)
335-345
: LGTM!The test for
propertiesToMap
is well-structured and covers the expected functionality.
347-364
: LGTM!The test for
parseValue
is well-structured and covers various data types.
add unit tests completed |
Upon reviewing feature request #306, it appears that the original intention was to support these namespaces in YAML format rather than transforming properties into YAML format, e.g. For reference, a similar feature has been implemented in the Java SDK as demonstrated below: Config config = ConfigService.getConfig("application.yml");
String someKey = "someKeyFromYmlNamespace";
String someDefaultValue = "someDefaultValueForTheKey";
String value = config.getProperty(someKey, someDefaultValue); |
这个还没合并吗?急需要用T_T |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
#306
Summary by CodeRabbit
New Features
Tests