informatics-isi-edu / ermrestjs

ERMrest client library in JavaScript
Apache License 2.0
4 stars 3 forks source link

Consider adding an annotation to switch to entity api #935

Open RFSH opened 2 years ago

RFSH commented 2 years ago

The current read function used for fetching data in chaise switches between entity and attributegroup. Given that the implementation details are hidden from data modelers, we might want to consider adding a way to force the entity API.

The following is why we're using attributegroup:

So if,

Then we will switch to entity.

In my opinion, if we want to add a new annotation, we would have to honor it even if there are dynamic ACLs or visible all-outbounds. This way data modelers only need to set one annotation without worrying about other things. Although, this can cause degraded UX since we cannot support dynamic ACL or show data for all-outbounds anymore and it might be even more confusing.

P.S. This requires more thought. I created this issue to document the conversation in slack.