Giter Club home page Giter Club logo

Comments (4)

gregorwolf avatar gregorwolf commented on June 15, 2024

Hi @austinkloske22,
would be great if you can create a test case that can be replicated with our beer shop example data. For a quick start you could create a pull request with a sample REST client request added to the folder:

tests/assets/cap-proj/rest-client-test

Thanks
Gregor

from cds-pg.

gregorwolf avatar gregorwolf commented on June 15, 2024

Hi @austinkloske22,
please check my branch https://github.com/gregorwolf/cds-pg/tree/column-reference-ambiguous-246. I'm not able to replicate your issue. Please add your sample request that does show your issue in our data model.

from cds-pg.

austinkloske22 avatar austinkloske22 commented on June 15, 2024

@gregorwolf I apologize I've not been active on git and missed that you followed up on my issue. I will attempt to replicate the issue this week.

One challenge for me is that I froze my project(s) on older npm release because of the trouble I had building & deploying with newer cds-dbm releases. My project w/ column reference "id" is ambiguous issue is on releases:

"@sap/cds": "5.3.2",
"cds-dbm": "0.0.24",
"cds-pg": "0.0.41"

What releases should I be using and as a cds-pg community how do we know what versions match @sap/cds releases? Perhaps my issue doesn't even exists when using the latest sap/cds release.

What release levels do you want me to replicate on? pg-beershop does not deploy to docker on the current repos version levels. I see there haven't been a new cds-dbm release on npm for 6 months.

image

from cds-pg.

austinkloske22 avatar austinkloske22 commented on June 15, 2024

@gregorwolf - this issue has been resolved in one of the newer releases. In order to deploy pg-beershop and create the DB, I needed to lower the npm releases to:

"@sap/cds": "5.3.2",
"cds-dbm": "0.0.24",
"cds-pg": "0.0.41"

able to replicate:
http://localhost:4004/beershop/Breweries(0465e9ca-6255-4f5c-b8ba-7439531f8d28)?$expand=beers($filter=ID%20eq%2008d5b3fb-549c-4be7-9ac8-e039d75823e7)

image

http://localhost:4004/beershop/Breweries(0465e9ca-6255-4f5c-b8ba-7439531f8d28)?$expand=beers($filter=abv%20eq%200)

image

After created / deploying, I'm able to update the cds / dbm, pg releases to newer releases the error does not occur. I need to get my cds, dbm, cds-pg versions updated. I'll close this issue.

"@sap/cds": "5.7.3",
"cds-dbm": "0.0.27",
"cds-pg": "0.1.16"

http://localhost:4004/beershop/Breweries(0465e9ca-6255-4f5c-b8ba-7439531f8d28)?$expand=beers($filter=ID%20eq%2008d5b3fb-549c-4be7-9ac8-e039d75823e7)

image

from cds-pg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.