Display entity names during AttributeValidation errors, not just entid #253

Open
opened 2020-08-06 16:57:23 +00:00 by gburd · 0 comments
gburd commented 2020-08-06 16:57:23 +00:00 (Migrated from github.com)

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")

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")`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: greg/mentat#253
No description provided.