Skip to content

Conversation

@patricebender
Copy link
Member

@patricebender patricebender commented Sep 22, 2025

With this change:

  • associations/compositions in @cds.search are additive
  • all other elements override the default search elements
    • i.e. also paths with length > 1 like books.title override the default search elements
  • virtual elements are always ignored and hence do not override defaults search elements

closes #1347

With this change:

- associations/compositions in @cds.search are additive
- all other elements override the default search elements
  - i.e. also paths with length > 1 like `books.title` override the default search elements
- virtual elements are _always_ ignored and hence do not override defaults search elements
})
})

describe('include / exclude logic', () => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please review the newly added tests

@patricebender patricebender marked this pull request as ready for review September 22, 2025 11:52
@sjvans sjvans added the next release pr to be checked for next release label Sep 30, 2025
@sjvans sjvans enabled auto-merge (squash) September 30, 2025 08:12
@sjvans sjvans merged commit ea931cb into main Sep 30, 2025
6 checks passed
@sjvans sjvans deleted the patrice/search branch September 30, 2025 08:19
@cap-bots cap-bots mentioned this pull request Sep 30, 2025
patricebender added a commit that referenced this pull request Sep 30, 2025
🤖 I have created a release *beep* *boop*
---


<details><summary>db-service: 2.5.0</summary>

##
[2.5.0](db-service-v2.4.0...db-service-v2.5.0)
(2025-09-30)


### Added

* make hana server version accessible to sub classes
([#1263](#1263))
([a3ccc3e](a3ccc3e))
* sets default to hana cloud if server version cannot be detected
([a3ccc3e](a3ccc3e))


### Fixed

* **`@cds.search`:** no duplicates for search along `to-many` paths
([#1341](#1341))
([5c5f4fb](5c5f4fb))
* associations in `[@cds](https://github.com/cds).search` are additive
([#1355](#1355))
([ea931cb](ea931cb))
* set proper element link for path into fk
([#1344](#1344))
([9f365d3](9f365d3))
</details>

<details><summary>sqlite: 2.0.3</summary>

##
[2.0.3](sqlite-v2.0.2...sqlite-v2.0.3)
(2025-09-30)


### Fixed

* associations in `[@cds](https://github.com/cds).search` are additive
([#1355](#1355))
([ea931cb](ea931cb))
</details>

<details><summary>hana: 2.3.0</summary>

##
[2.3.0](hana-v2.2.0...hana-v2.3.0)
(2025-09-30)


### Added

* add support for SAP HANA Tenant Management Service v2
([#1356](#1356))
([b4bd9f2](b4bd9f2))
* make hana server version accessible to sub classes
([#1263](#1263))
([a3ccc3e](a3ccc3e))
* sets default to hana cloud if server version cannot be detected
([a3ccc3e](a3ccc3e))
* sort selected columns & expands before formatting sql
([#1330](#1330))
([d81b0bf](d81b0bf))


### Fixed

* updated fuzzy search syntax to include now require search mode 'text'
([#1333](#1333))
([1946665](1946665))
</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 <patrice.bender@sap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

next release pr to be checked for next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@cds.search associations must be additive

3 participants