You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases, ExtJS automatically generates URLs that contain a reference to a foreign key with _id instead of the entity name.
For example,
In Ext, If you have a Person model that contains a collection of Appointments, the Appointments collection can be loaded on demand if not initially loaded inline with the Person record such as in the following example: Person.promiseToLoad(12345).then(person => person.appointments().load())
ExtJS automatically generates a request with the following filter parameter: [{"property":"person_id","value":12345,"exactMatch":true}]
LinkRest responds with the following exception (and partial stack): c.n.l.r.LinkRestException: Invalid path 'person_id' for 'Appointment' at c.n.l.r.runtime.parser.cache.EntityPathCache.lastPathComponent(EntityPathCache.java:150) at c.n.l.r.runtime.parser.cache.EntityPathCache.getPathDescriptor(EntityPathCache.java:65) at c.n.l.r.runtime.parser.cache.PathCache.getPathDescriptor(PathCache.java:23) at c.n.l.r.runtime.adapter.sencha.SenchaFilterProcessor.process(SenchaFilterProcessor.java:126) at c.n.l.r.runtime.adapter.sencha.SenchaRequestParser.parseFilter(SenchaRequestParser.java:53) at c.n.l.r.runtime.adapter.sencha.SenchaRequestParser.parseSelect(SenchaRequestParser.java:43) at c.n.l.r.runtime.processor.select.ParseSelectRequestStage.doExecute(ParseSelectRequestStage.java:37) at c.n.l.r.runtime.processor.select.ParseSelectRequestStage.doExecute(ParseSelectRequestStage.java:16) at c.n.l.r.processor.BaseLinearProcessingStage.execute(BaseLinearProcessingStage.java:20) at c.n.l.r.processor.ChainProcessor.execute(ChainProcessor.java:18) at c.n.l.r.processor.ChainProcessor.execute(ChainProcessor.java:22) at c.n.l.r.runtime.DefaultSelectBuilder.get(DefaultSelectBuilder.java:204) at c.n.l.r.SelectBuilder.select(SelectBuilder.java:181)
At least within the Sencha adapter, I think LinkRest should be able to consume these automatically generated ExtJS requests.
The text was updated successfully, but these errors were encountered:
In some cases, ExtJS automatically generates URLs that contain a reference to a foreign key with _id instead of the entity name.
For example,
In Ext, If you have a Person model that contains a collection of Appointments, the Appointments collection can be loaded on demand if not initially loaded inline with the Person record such as in the following example:
Person.promiseToLoad(12345).then(person => person.appointments().load())
ExtJS automatically generates a request with the following filter parameter:
[{"property":"person_id","value":12345,"exactMatch":true}]
LinkRest responds with the following exception (and partial stack):
c.n.l.r.LinkRestException: Invalid path 'person_id' for 'Appointment' at c.n.l.r.runtime.parser.cache.EntityPathCache.lastPathComponent(EntityPathCache.java:150) at c.n.l.r.runtime.parser.cache.EntityPathCache.getPathDescriptor(EntityPathCache.java:65) at c.n.l.r.runtime.parser.cache.PathCache.getPathDescriptor(PathCache.java:23) at c.n.l.r.runtime.adapter.sencha.SenchaFilterProcessor.process(SenchaFilterProcessor.java:126) at c.n.l.r.runtime.adapter.sencha.SenchaRequestParser.parseFilter(SenchaRequestParser.java:53) at c.n.l.r.runtime.adapter.sencha.SenchaRequestParser.parseSelect(SenchaRequestParser.java:43) at c.n.l.r.runtime.processor.select.ParseSelectRequestStage.doExecute(ParseSelectRequestStage.java:37) at c.n.l.r.runtime.processor.select.ParseSelectRequestStage.doExecute(ParseSelectRequestStage.java:16) at c.n.l.r.processor.BaseLinearProcessingStage.execute(BaseLinearProcessingStage.java:20) at c.n.l.r.processor.ChainProcessor.execute(ChainProcessor.java:18) at c.n.l.r.processor.ChainProcessor.execute(ChainProcessor.java:22) at c.n.l.r.runtime.DefaultSelectBuilder.get(DefaultSelectBuilder.java:204) at c.n.l.r.SelectBuilder.select(SelectBuilder.java:181)
At least within the Sencha adapter, I think LinkRest should be able to consume these automatically generated ExtJS requests.
The text was updated successfully, but these errors were encountered: