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

Remove rawNames from extractInputs and extractSchemaInputs #1820

Merged
merged 3 commits into from
Apr 1, 2024

Conversation

iwahbe
Copy link
Member

@iwahbe iwahbe commented Apr 1, 2024

Follow-up to #1812.

  • 6d6bb4f removes an unused parameter.
  • 26fc890 refactors extractInputsObject out of extractInputs, creating an explicit code path for objects.
  • 12618d5 removes an unused parameter.

This area is under test in the bridge, making it relatively safe to refactor.

`rawNames` is used to represent the distinction between traversing a Map and a Object. As
implemented, it is never correct to respect. The property should never be inherited
between functions, since the encoding of `T` does not depend on if `T` is found in
`Object<Field: T>` or `Map<T>`.

- It is already ignored in `extractSchemaInputs`.
This is a pure refactor of an area already under test. This refactor clarifies the
distinction between a map and an object in `extractInputs`.
The value was no longer used, so is safe to remove.
@iwahbe iwahbe self-assigned this Apr 1, 2024
Copy link

codecov bot commented Apr 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.20%. Comparing base (b9afd77) to head (12618d5).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1820      +/-   ##
==========================================
- Coverage   60.73%   60.20%   -0.54%     
==========================================
  Files         303      310       +7     
  Lines       42393    42781     +388     
==========================================
+ Hits        25749    25755       +6     
- Misses      15171    15552     +381     
- Partials     1473     1474       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@VenelinMartinov VenelinMartinov left a comment

Choose a reason for hiding this comment

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

lgtm

@iwahbe iwahbe merged commit ba3fcc6 into master Apr 1, 2024
9 checks passed
@iwahbe iwahbe deleted the iwahbe/remove-rawnames branch April 1, 2024 18:21
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.

None yet

2 participants