-
-
Notifications
You must be signed in to change notification settings - Fork 43
Support for @odata.draft.enabled #30
Comments
When switching to the edit mode of an existing entity the lib/pg/execute.js#L84 is executed:
The value of cqn.INSERT.into that is: 'BeershopAdminService.Breweries_drafts' is not found in the model.definitions. It returns an undefined. So maybe adding a check here can provide a first workaround. |
Quite some progress with draft support today. The read doesn't cause an exit anymore. PR #50 containes the adjustments I've made so far. @mikezaschka do you see a way that we can create the fields in table BeershopService_TypeChecksWithDraft_drafts respecting CASE? See my comment here. |
I've tested the create and change with draft in the pg-beershop. Seems to work so far. |
In the branch gregorwolf:feature/draft-support I've added a new entity in the service which I've annotated with @odata.draft.enabled unfortuantely already the first simple READ / GET request to the entity fails with this error:
The generated SQL is:
Looks like the "active AS " which is added to every column must be removed. Also the space betwen i.e. "active" .ID must be removed. "active".ID should work.
The generated SQL for sqlite is:
The text was updated successfully, but these errors were encountered: