-
Notifications
You must be signed in to change notification settings - Fork 340
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
feat(registry): metapp in registry support configuration in array format #625
feat(registry): metapp in registry support configuration in array format #625
Conversation
WalkthroughThe update introduces a Changes
Poem
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 (
|
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: 2
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- packages/register/src/common.js (1 hunks)
- packages/register/src/entryHash.js (2 hunks)
Additional comments not posted (2)
packages/register/src/entryHash.js (1)
83-84
: Ensure correctness ofpreprocessRegistry
function.The call to
preprocessRegistry
appears correct. However, verify thatpreprocessRegistry
processes the registry data as expected.packages/register/src/common.js (1)
145-167
: Ensure correctness ofpreprocessRegistry
function.The
preprocessRegistry
function preprocesses the registry data to handle array formats. Verify that it processes the data as expected.
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: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- packages/register/test/preprocessRegistry.test.js (1 hunks)
Additional comments not posted (5)
packages/register/test/preprocessRegistry.test.js (5)
5-17
: Test case approved: Normal configuration without array formatThe test case correctly verifies that
preprocessRegistry
handles a normal configuration without array format.
19-32
: Test case approved: Transform array format configuration for single entryThe test case correctly verifies that
preprocessRegistry
transforms an array format configuration for a single entry.
34-50
: Test case approved: Transform array format configuration for multiple entriesThe test case correctly verifies that
preprocessRegistry
transforms an array format configuration for multiple entries.
52-62
: Test case approved: Do not transform invalid array formatsThe test case correctly verifies that
preprocessRegistry
does not transform invalid array formats.
64-74
: Test case approved: Handle empty arraysThe test case correctly verifies that
preprocessRegistry
handles empty arrays.
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 (2)
- packages/register/src/common.js (1 hunks)
- packages/register/test/preprocessRegistry.test.js (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- packages/register/test/preprocessRegistry.test.js
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: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- packages/register/src/common.js (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- packages/register/src/common.js
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: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- packages/register/src/common.js (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- packages/register/src/common.js
…to refactor/registry-extension
…mat (opentiny#625) * refactor: metapp in registry support configuration in array format * feat: add unit tests for preprocessRegistry function * feat: remove array format configuration for single entry * fix: remove redundant condition * fix: add check array condition
English | 简体中文
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Background and solution
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit
New Features
Tests