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

Properly handle expand_alias failures #530

Merged
merged 2 commits into from
Dec 29, 2023
Merged

Conversation

scohen
Copy link
Collaborator

@scohen scohen commented Dec 28, 2023

I initially assumed that the cases where expand_alias would fail would be rare, so I did a hard match on {:ok, alias}. I was wrong, the cases are much more common, and this is causing irritation for people trying to use indexing. This change logs the cases where expand_alias fails, and skips the entries, which should give better developer experience and should also allow us to see what's causing the failures.

I initially assumed that the cases where `expand_alias` would fail
would be rare, so I did a hard match on `{:ok, alias}`. I was wrong,
the cases are much more common, and this is causing irritation for
people trying to use indexing. This change logs the cases where
expand_alias fails, and skips the entries, which should give better
developer experience and should also allow us to see what's causing
the failures.
@scohen scohen force-pushed the handle-expand-alias-failures branch from 875e336 to 58012fc Compare December 28, 2023 19:09
@scohen
Copy link
Collaborator Author

scohen commented Dec 29, 2023

@zachallaun @scottming I'm going to merge this, it's causing people issues.

@scohen scohen merged commit dc85552 into main Dec 29, 2023
7 checks passed
@scohen scohen deleted the handle-expand-alias-failures branch December 29, 2023 19:07
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.

1 participant