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

fix(cue): get error position using error path #2701

Merged
merged 3 commits into from
Jan 23, 2024

Conversation

GeorgeMac
Copy link
Contributor

This is a PR on #2697

This attempts to walk through the path selector in the error, using it as an index into the source document.
It is an attempt to use the path to find the first found position and use that in the error context.

@GeorgeMac GeorgeMac requested a review from a team as a code owner January 23, 2024 11:14
Copy link

codecov bot commented Jan 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (test-cue-extended@0422bee). Click here to learn what that means.

Additional details and impacted files
@@                 Coverage Diff                  @@
##             test-cue-extended    #2701   +/-   ##
====================================================
  Coverage                     ?   72.98%           
====================================================
  Files                        ?       85           
  Lines                        ?     8366           
  Branches                     ?        0           
====================================================
  Hits                         ?     6106           
  Misses                       ?     1882           
  Partials                     ?      378           

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

Copy link
Collaborator

@markphelps markphelps left a comment

Choose a reason for hiding this comment

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

looks great! idk why they make it so difficult to get to the source error

@markphelps markphelps merged commit 147d967 into test-cue-extended Jan 23, 2024
30 checks passed
@markphelps markphelps deleted the gm/test-cue-extended branch January 23, 2024 12:57
kodiakhq bot pushed a commit that referenced this pull request Jan 23, 2024
* chore: add tests for cue extended

* fix(cue): get error position using error path (#2701)

* fix(cue): get error position using error path

* fix(cue): ensure we start by using the deapest path selector

* test(storage/fs): update case now that errors point more appropriately into data

---------

Co-authored-by: George <me@georgemac.com>
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