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

Entity Centre: narrow error reporting about whole entity exclusion #2237

Open
jhou-pro opened this issue Apr 17, 2024 · 0 comments
Open

Entity Centre: narrow error reporting about whole entity exclusion #2237

jhou-pro opened this issue Apr 17, 2024 · 0 comments

Comments

@jhou-pro
Copy link
Contributor

Description

There are several situations where whole entity type is "excluded" from Domain Trees and thus can't be used in Entity Centres [and Web API queries]. In this case we get confusing unspecific error like the following:

Could not [un]check already 'excluded' property [entryDate] in type [SynRotableNote$$TgEntity_CB1E62745D28952F8D7C33D404F2A7BAD68BDDB466D1E7D8447FE37F7A2FC0A0].

This error shows that first property, added to Entity Centre result-set, is excluded. It would be better to indicate that whole SynRotableNote$$TgEntity_... entity type is "excluded" and why.

There are several reasons now why the type may be "excluded" fully:

  1. entity type has abstract modifier
  2. entity type does not have @KeyType annotation (there are compile time check on this now, however)
  3. entity type has @DenyIntrospection annotation

Expected outcome

Narrower error reporting for Entity Centre runtime errors due to @DenyIntrospection annotation on a type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Configurable Entity Centres
  
Awaiting triage
Development

No branches or pull requests

1 participant