-
Notifications
You must be signed in to change notification settings - Fork 201
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
refactor(oracle): remove unused code and collapse empty client/cli directory #2050
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThe changes encompass updates to several files within the project, including modifications to workflow configurations, version control rules, documentation, and code structure. Key alterations include the addition of comments in the GitHub workflow file, updates to the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Workflow
participant GitHub
participant Codebase
User->>Workflow: Trigger Workflow
Workflow->>GitHub: Fetch Changes
GitHub->>Codebase: Retrieve Updated Files
Codebase->>Workflow: Return File Changes
Workflow->>User: Notify Completion
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
Warning Review ran into problems🔥 ProblemsError running LanguageTool: LanguageTool error: Unknown error 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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration 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: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (5)
- .github/workflows/gh-issues.yml (1 hunks)
- .gitignore (1 hunks)
- CHANGELOG.md (1 hunks)
- cmd/nibid/cmd/root.go (1 hunks)
- x/oracle/integration/action/price.go (0 hunks)
Files not reviewed due to no reviewable changes (1)
- x/oracle/integration/action/price.go
Files skipped from review due to trivial changes (2)
- .github/workflows/gh-issues.yml
- .gitignore
Additional comments not posted (3)
CHANGELOG.md (3)
153-153
: LGTM: Clear and concise changelog entry.The new entry in the "Unreleased" section accurately describes a refactoring change in the oracle module. It provides enough detail to understand the nature of the change without being overly technical.
Line range hint
1-1166
: Overall, the changelog is well-structured and informative.The CHANGELOG.md file follows best practices:
- It adheres to the Keep a Changelog format.
- It uses Semantic Versioning.
- Changes are categorized into meaningful types (e.g., "Features", "Bug Fixes", "API Breaking").
- Each entry provides a brief description and a link to the relevant pull request.
Some minor suggestions for improvement:
- Consider adding a brief summary of key changes at the beginning of each version release for quick reference.
- Ensure consistency in capitalization and punctuation across entries.
- For major releases, consider adding a "Migration Guide" section if there are breaking changes that require user action.
Line range hint
1-1166
: The CHANGELOG.md is well-maintained and provides valuable project history.This changelog effectively documents the project's evolution, making it easier for users and developers to understand changes between versions. The consistent format and detailed entries demonstrate good project maintenance practices.
Keep up the good work in maintaining this changelog. It's an essential tool for communication with your user base and development team.
@@ -31,7 +31,7 @@ import ( | |||
"github.com/spf13/cobra" | |||
|
|||
"github.com/NibiruChain/nibiru/v2/app" | |||
oraclecli "github.com/NibiruChain/nibiru/v2/x/oracle/client/cli" | |||
oraclecli "github.com/NibiruChain/nibiru/v2/x/oracle/cli" |
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.
💡 Codebase verification
Import Path Inconsistencies Detected
The import path change from github.com/NibiruChain/nibiru/v2/x/oracle/client/cli
to github.com/NibiruChain/nibiru/v2/x/oracle/cli
is incomplete. The following files still reference the old import path and need to be updated:
x/oracle/module.go
x/common/testutil/testnetwork/query.go
x/oracle/cli/gen_pricefeeder_delegation_test.go
Please ensure all references are updated to maintain consistency across the codebase.
Analysis chain
LGTM! Verify consistency across the codebase.
The import path change aligns with the PR objective of collapsing the oracle/client/cli
directory to oracle/cli
. This modification reflects the restructuring of the oracle
module's CLI components.
To ensure consistency across the codebase, please run the following script to check for any remaining references to the old import path:
If the first command returns any results, those files need to be updated. The second command should show consistent usage of the new import path across the codebase.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Check for any remaining references to the old import path
# Test: Search for the old import path. Expect: No results.
rg --type go "github.com/NibiruChain/nibiru/v2/x/oracle/client/cli"
# Test: Confirm the new import path is used consistently. Expect: Consistent usage across the codebase.
rg --type go "github.com/NibiruChain/nibiru/v2/x/oracle/cli"
Length of output: 777
Removes dead code
Collapses oracle/client/cli to oracle/cli
Summary by CodeRabbit
Documentation
Chores
scratch-paper.md
to the.gitignore
to exclude it from version control.Refactor
Code Organization
oraclecli
package to reflect a more direct structure.Removal
price.go
file, which managed oracle price functionalities.