-
Notifications
You must be signed in to change notification settings - Fork 14
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
fix: consider leafs with filter in ref
#440
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ref
patricebender
approved these changes
Feb 5, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please send me a log which shows what goes wrong? Want to investigate :) The fix seems obvious though, thanks!
Merged
patricebender
added a commit
that referenced
this pull request
Feb 5, 2024
🤖 I have created a release *beep* *boop* --- <details><summary>db-service: 1.6.1</summary> ## [1.6.1](db-service-v1.6.0...db-service-v1.6.1) (2024-02-05) ### Fixed * URGENT: fix bug with missing ref.id || ref ([#440](#440)) ([3e2ef24](3e2ef24)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: Patrice Bender <[email protected]>
👍 → that was this failing test here: Summary of all failing tests
FAIL tests/_runtime/cds-services/__tests__/integration/with-ql/api/ql.test.js (72.14 s)
● UPDATE › sub select with path
TypeError: str.lastIndexOf is not a function
2107 | */
2108 | function getLastStringSegment(str) {
> 2109 | const index = str.lastIndexOf('.')
| ^
2110 | return index != -1 ? str.substring(index + 1) : str
2111 | }
2112 |
at lastIndexOf (../cds-dbs/db-service/lib/cqn4sql.js:2109:21)
at getLastStringSegment (../cds-dbs/db-service/lib/cqn4sql.js:920:9)
at assignUniqueSubqueryAlias (../cds-dbs/db-service/lib/cqn4sql.js:914:49)
at transformSubquery (../cds-dbs/db-service/lib/cqn4sql.js:1368:22)
at getTransformedTokenStream (../cds-dbs/db-service/lib/cqn4sql.js:64:31)
at SQLiteService.cqn4sql (../cds-dbs/db-service/lib/SQLService.js:349:12)
at SQLiteService.cqn4sql (../cds-dbs/db-service/lib/SQLService.js:325:18)
at SQLiteService.cqn2sql [as onSELECT] (../cds-dbs/db-service/lib/SQLService.js:118:39)
at call (lib/srv/srv-dispatch.js:79:36)
at SQLiteService.handle (lib/srv/srv-dispatch.js:83:6)
at SQLiteService.handle [as dispatch] (lib/srv/srv-dispatch.js:45:15)
at SQLiteService.dispatch (lib/srv/srv-tx.js:207:15)
at ApplicationService.<anonymous> (tests/_runtime/cds-services/__tests__/integration/with-ql/api/ql.test.js:118:7)
at next (lib/srv/srv-dispatch.js:79:17)
at ApplicationService.handle (lib/srv/srv-dispatch.js:77:10)
at libx/_runtime/cds-services/adapter/odata-v4/handlers/action.js:53:16
● UPDATE › sub select with path
thrown: "Exceeded timeout of 66666 ms for a test.
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."
355 | })
356 |
> 357 | test('sub select with path', async () => {
| ^
358 | const res = await request(app).post(`/bookshop-ql/subSelectWithPath`).send({}).expect(200)
359 | expect(res.body.value).toBe(1)
360 | })
at test (tests/_runtime/cds-services/__tests__/integration/with-ql/api/ql.test.js:357:3)
at Object.describe (tests/_runtime/cds-services/__tests__/integration/with-ql/api/ql.test.js:11:1)
Test Suites: 1 failed, 7 skipped, 299 passed, 300 of 307 total
Tests: 1 failed, 270 skipped, 4 todo, 5311 passed, 5586 total
Snapshots: 0 total
Time: 181.721 s
npm ERR! Lifecycle script `test` failed with error:
npm ERR! Error: command failed
npm ERR! in workspace: @sap/cds@7.7.0
npm ERR! at location: /__w/cds/cds/dev/cds
Error: Process completed with exit code 1. |
Merged
This was referenced Jan 28, 2025
Closed
Closed
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
→ looks like some our pipelines are blocked by that