You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: check for valid schema before querying by constrained field (#75)
**Description**
This PR fixes#74. If querying (modusDB.Get) for a struct's constrained
field before the schema contained that type, the worker would panic (the
bug contains that trace). This change ensures the schema contains the
type before launching the query. Note that querying by uid does not
suffer from this issue as the discovery of the tablets (groups) are not
involved in the query.
Also added tests (as well as expanding existing unit tests) and changed
the api file to use errors.New instead of the fmt package as no
formatting was being applied.
**Checklist**
- [x] Code compiles correctly and linting passes locally
- [ ] For all _code_ changes, an entry added to the `CHANGELOG.md` file
describing and linking to
this PR
- [x] Tests added for new functionality, or regression tests for bug
fixes added as applicable
---------
Co-authored-by: Ryan Fox-Tyler <[email protected]>
0 commit comments