Skip to content
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/sync dev with v1.8.0 #359

Merged
merged 5 commits into from
Nov 14, 2024
Merged

Feat/sync dev with v1.8.0 #359

merged 5 commits into from
Nov 14, 2024

Conversation

PavelInjective
Copy link
Contributor

@PavelInjective PavelInjective commented Nov 14, 2024

PR to sync the dev branch with the changes introduced in master for the v1.8.0 release

Summary by CodeRabbit

  • New Features

    • Updated the SDK to retrieve market information from chain endpoints, enhancing data handling.
    • Removed legacy deprecated markets and tokens initialization for improved performance.
  • Bug Fixes

    • Corrected links and adjusted logic for file paths and gas cost references.
  • Documentation

    • Changelog updated to reflect changes and improvements across multiple releases, including new functionalities and fixes.
  • Chores

    • Version number updated to "1.9.0-pre" in the project configuration file.

Copy link
Contributor

coderabbitai bot commented Nov 14, 2024

Walkthrough

The pull request introduces updates for version 1.8.0 of the SDK, primarily altering the market initialization process in the AsyncClient to source market data from chain endpoints instead of Indexer endpoints. It also removes deprecated market and token initializations that relied on INI files, along with the INI files themselves. Additionally, the pyproject.toml file is updated to reflect a new pre-release version, 1.9.0-pre, without changes to dependencies or configurations.

Changes

File Change Summary
CHANGELOG.md Updated to reflect the release of version 1.8.0, detailing market initialization changes and removals of legacy systems.
pyproject.toml Version number updated from "1.8.0-pre" to "1.9.0-pre"; no changes to dependencies or configurations.

Possibly related PRs

Poem

In the code where markets play,
A new path found, we pave the way.
From INI files, we bid goodbye,
Chain endpoints now reach for the sky.
With version bumps, our journey's bright,
Hopping forward, coding with delight! 🐰✨


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?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Collaborator

@aarmoa aarmoa left a comment

Choose a reason for hiding this comment

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

The PR looks good to me

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

🧹 Outside diff range and nitpick comments (2)
pyproject.toml (1)

Line range hint 19-22: Remove INI files from package includes

The AI summary indicates that INI-based initializations have been deprecated and removed, but the package still includes "*.ini" files. This could lead to confusion and packaging of non-existent files.

Apply this diff to remove the INI files inclusion:

include = [
    { path = "pyinjective/proto/**/*.py" },
-    { path = "*.ini" },
]
CHANGELOG.md (1)

Line range hint 5-11: Consider marking breaking changes and adding migration guide.

The changes in v1.8.0 appear to be breaking changes that could affect SDK users:

  1. Market initialization now uses chain endpoints instead of Indexer endpoints
  2. Removal of legacy INI files for market/token initialization

Consider:

  1. Adding a "BREAKING CHANGES" section to clearly highlight these changes
  2. Including a migration guide to help users transition from INI files to the new chain-based initialization

Example format:

 ## [1.8.0] - 2024-11-14
+### BREAKING CHANGES
+- Market initialization in AsyncClient now uses chain endpoints instead of Indexer endpoints
+- Removed legacy INI files for market/token initialization. See migration guide below.
+
+### Migration Guide
+If you were using INI files for market/token initialization:
+1. Update to use chain-based initialization: <example code>
+2. Remove references to INI files: <steps>
+
 ### Changed
 - The markets initialization in AsyncClient has been modified to get markets information from the chain endpoints instead of the Indexer endpoints

 ### Removed
 - Removed the legacy deprecated markets and tokens initialization using the denoms INI files in the SDK. Removed also the INI files from the SDK
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 1764dd9 and dc8d00f.

📒 Files selected for processing (2)
  • CHANGELOG.md (1 hunks)
  • pyproject.toml (1 hunks)

@@ -2,7 +2,7 @@

All notable changes to this project will be documented in this file.

## [1.8.0] - 9999-99-99
## [1.8.0] - 2024-11-14
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Codebase verification

Version numbers are inconsistent between files

The version numbers don't match across the codebase:

  • pyproject.toml: version = "1.9.0-pre"
  • CHANGELOG.md: [1.8.0]

Please ensure version numbers are aligned:

  • Either update CHANGELOG.md to reflect the pre-release version 1.9.0-pre
  • Or update pyproject.toml to match the release version 1.8.0
🔗 Analysis chain

Version number inconsistency detected.

The changelog shows version 1.8.0, but according to the AI summary, pyproject.toml has been updated to version 1.9.0-pre. This inconsistency could cause confusion about which version is being released.

Please verify and align the version numbers across:

  1. CHANGELOG.md
  2. pyproject.toml
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check version numbers across files
echo "Version in pyproject.toml:"
cat pyproject.toml | grep -A1 '\[tool\.poetry\]' | grep version

echo -e "\nVersion in CHANGELOG.md:"
head -n 10 CHANGELOG.md | grep '\[.*\]'

Length of output: 259


Script:

#!/bin/bash
# Let's try a different approach to find the version in pyproject.toml
# Using rg for better pattern matching
rg "version\s*=\s*['\"].*['\"]" pyproject.toml

# Also check setup.py and setup.cfg if they exist
fd "setup\.(py|cfg)$" -x rg "version\s*=\s*['\"].*['\"]" {}

Length of output: 142

@PavelInjective PavelInjective merged commit cd67089 into dev Nov 14, 2024
12 checks passed
@aarmoa aarmoa deleted the feat/sync_dev_with_v1_8_0 branch November 14, 2024 14:23
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.

2 participants