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

bugfix: fixed migration. Added migration saving to be more clear #434

Merged
merged 3 commits into from
Jan 20, 2025

Conversation

akorchyn
Copy link
Collaborator

No description provided.

src/config/mod.rs Outdated Show resolved Hide resolved
@dj8yfo
Copy link
Collaborator

dj8yfo commented Jan 6, 2025

i'd add explicit version numbers FROM_# -> TO_# to msg printed

: near --version
Migrating config.toml to the latest version...

There was some loop somewhere some day for migrating config, adding a separate message for each step
1 -> 2, 2 -> 3 may make the process clearer. (if the loop is still there)

@akorchyn
Copy link
Collaborator Author

Fixed

@akorchyn
Copy link
Collaborator Author

@race-of-sloths

@race-of-sloths
Copy link

race-of-sloths commented Jan 13, 2025

@akorchyn Thank you for your contribution! Your pull request is now a part of the Race of Sloths!

Shows inviting banner with latest news.

Shows profile picture for the author of the PR

Current status: executed
Reviewer Score
@PolyProgrammist 3

Your contribution is much appreciated with a final score of 3!
You have received 33 (30 base + 10% lifetime bonus) Sloth points for this contribution

@PolyProgrammist received 25 Sloth Points for reviewing and scoring this pull request.

We would appreciate your feedback or contribution idea that you can submit here

What is the Race of Sloths

Race of Sloths is a friendly competition where you can participate in challenges and compete with other open-source contributors within your normal workflow

For contributors:

  • Tag @race-of-sloths inside your pull requests
  • Wait for the maintainer to review and score your pull request
  • Check out your position in the Leaderboard
  • Keep weekly and monthly streaks to reach higher positions
  • Boast your contributions with a dynamic picture of your Profile

For maintainers:

  • Score pull requests that participate in the Race of Sloths and receive a reward
  • Engage contributors with fair scoring and fast responses so they keep their streaks
  • Promote the Race to the point where the Race starts promoting you
  • Grow the community of your contributors

Feel free to check our website for additional details!

Bot commands
  • For contributors
    • Include a PR: @race-of-sloths include to enter the Race with your PR
  • For maintainers:
    • Invite contributor @race-of-sloths invite to invite the contributor to participate in a race or include it, if it's already a runner.
    • Assign points: @race-of-sloths score [1/2/3/5/8/13] to award points based on your assessment.
    • Reject this PR: @race-of-sloths exclude to send this PR back to the drawing board.
    • Exclude repo: @race-of-sloths pause to stop bot activity in this repo until @race-of-sloths unpause command is called

@PolyProgrammist
Copy link
Collaborator

@race-of-sloths score 4

@race-of-sloths
Copy link

🏆 Score recorded!

It looks like @PolyProgrammist provided a score of 4, but based on our Fibonacci scoring rules, we've adjusted it to 3.

Tip

We accept only the following Fibonacci numbers [0, 1, 2, 3, 5, 8, 13] for scoring

@akorchyn akorchyn merged commit a781f2e into main Jan 20, 2025
11 checks passed
@akorchyn akorchyn deleted the migration-fixes branch January 20, 2025 12:58
@frol frol mentioned this pull request Jan 20, 2025
akorchyn pushed a commit that referenced this pull request Jan 20, 2025
## 🤖 New release
* `near-cli-rs`: 0.17.0 -> 0.18.0 (⚠️ API breaking changes)

### ⚠️ `near-cli-rs` breaking changes

```
--- failure enum_no_repr_variant_discriminant_changed: enum variant had its discriminant change value ---

Description:
The enum's variant had its discriminant value change. This breaks downstream code that used its value via a numeric cast like `as isize`.
        ref: https://doc.rust-lang.org/reference/items/enumerations.html#assigning-discriminant-values
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.38.0/src/lints/enum_no_repr_variant_discriminant_changed.ron

Failed in:
  variant AccountActionsDiscriminants::AddKey 7 -> 8 in /tmp/.tmpU4QdIS/near-cli-rs/src/commands/account/mod.rs:68
  variant AccountActionsDiscriminants::DeleteKeys 8 -> 9 in /tmp/.tmpU4QdIS/near-cli-rs/src/commands/account/mod.rs:73
  variant AccountActionsDiscriminants::ManageStorageDeposit 9 -> 10 in /tmp/.tmpU4QdIS/near-cli-rs/src/commands/account/mod.rs:78
  variant AccountActionsDiscriminants::AddKey 7 -> 8 in /tmp/.tmpU4QdIS/near-cli-rs/src/commands/account/mod.rs:68
  variant AccountActionsDiscriminants::DeleteKeys 8 -> 9 in /tmp/.tmpU4QdIS/near-cli-rs/src/commands/account/mod.rs:73
  variant AccountActionsDiscriminants::ManageStorageDeposit 9 -> 10 in /tmp/.tmpU4QdIS/near-cli-rs/src/commands/account/mod.rs:78

--- failure enum_variant_added: enum variant added on exhaustive enum ---

Description:
A publicly-visible enum without #[non_exhaustive] has a new variant.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#enum-variant-new
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.38.0/src/lints/enum_variant_added.ron

Failed in:
  variant AccountActionsDiscriminants:GetPublicKey in /tmp/.tmpU4QdIS/near-cli-rs/src/commands/account/mod.rs:63
  variant AccountActionsDiscriminants:GetPublicKey in /tmp/.tmpU4QdIS/near-cli-rs/src/commands/account/mod.rs:63
  variant CliAccountActions:GetPublicKey in /tmp/.tmpU4QdIS/near-cli-rs/src/commands/account/mod.rs:24
```

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

##
[0.18.0](v0.17.0...v0.18.0)
- 2025-01-20

### Added

- Added the ability to get a public key for an account (#436)

### Other

- fixed migration. Added migration saving to be more clear (#434)
- handle new rate-limits for querying pools (#433)
- Extended the documentation for building NEAR CLI from the source code
(#430)
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Shipped 🚀
Development

Successfully merging this pull request may close these issues.

4 participants