Display entity names during AttributeValidation errors, not just entid
#253
Labels
No labels
A-build
A-cli
A-core
A-design
A-edn
A-ffi
A-query
A-sdk
A-sdk-android
A-sdk-ios
A-sync
A-transact
A-views
A-vocab
P-Android
P-desktop
P-iOS
bug
correctness
dependencies
dev-ergonomics
discussion
documentation
duplicate
enhancement
enquiry
good first bug
good first issue
help wanted
hygiene
in progress
invalid
question
ready
size
speed
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: greg/mentat#253
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
During attribute validation, it's helpful to see actual entity names in the error message, and not just their
entid
.So, instead of ...
BadSchemaAssertion(":db/fulltext true without :db/index true for entid: 65537")
... it'd be nice to bail out with ...
BadSchemaAssertion(":db/fulltext true without :db/index true for :page/title (entid: 65537)")
... or just drop
entid
entirely, as it's not providing useful information when debugging a vocabulary:BadSchemaAssertion(":db/fulltext true without :db/index true for :page/title")