Skip to content

Fix: check_handle should apply the whitespace trimming and collapsing#2363

Merged
wilwade merged 3 commits intomainfrom
bug/check-handle-rpc-whitespace
Apr 29, 2025
Merged

Fix: check_handle should apply the whitespace trimming and collapsing#2363
wilwade merged 3 commits intomainfrom
bug/check-handle-rpc-whitespace

Conversation

@wilwade
Copy link
Collaborator

@wilwade wilwade commented Apr 28, 2025

Goal

The goal of this PR is to update the check_handle Runtime RPC to correctly use the whitespace trim and collapse

Closes #2362

Discussion

  • I thought about updating how this gets the value to be more aligned, but in the end the simple fix won out.

Checklist

  • Unit Tests added?
  • Spec version incremented?

@wilwade wilwade requested review from a team, JoeCap08055, aramikm, claireclark1, enddynayn, mattheworris and shannonwells and removed request for a team April 28, 2025 13:32
@codecov
Copy link

codecov bot commented Apr 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
pallets/handles/src/lib.rs 94.77% <100.00%> (+0.03%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions github-actions bot added the metadata-changed Metadata has changed since the latest full release label Apr 28, 2025
Copy link
Collaborator

@mattheworris mattheworris left a comment

Choose a reason for hiding this comment

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

🚢 it!

@github-actions github-actions bot removed the metadata-changed Metadata has changed since the latest full release label Apr 28, 2025
@github-actions github-actions bot added the metadata-changed Metadata has changed since the latest full release label Apr 28, 2025
Copy link
Collaborator

@aramikm aramikm left a comment

Choose a reason for hiding this comment

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

Looks good! I'm just surprised that we are not using the same functions to do the same checks or transformations in the first place.

Copy link
Collaborator

@shannonwells shannonwells left a comment

Choose a reason for hiding this comment

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

looks LGTM to me

@wilwade wilwade merged commit 81d38f7 into main Apr 29, 2025
31 checks passed
@wilwade wilwade deleted the bug/check-handle-rpc-whitespace branch April 29, 2025 16:37
Copy link
Collaborator

@enddynayn enddynayn left a comment

Choose a reason for hiding this comment

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

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

metadata-changed Metadata has changed since the latest full release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: check_handle runtime RPC was not applying the trim_and_collapse_whitespace function

5 participants