-
Notifications
You must be signed in to change notification settings - Fork 11
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: Improved behavioral consistency between the database services #837
Conversation
) This PR contains a few fixes that where required to make the new compliance tests to pass: - Decimal precision behavior is aligned between the databases when defined - `@cap-js/hana` now properly supports scalar `SELECT` queries in the columns The goal of this PR is to remove as much dependencies as possible now that `cds@8` provides the `cds-test` command. - Removing `jest` by switching to `cds-test` - Removed `jest.config.js` files - Removing `chai` by switching to `cds-test` - Adjust all tests to fit with the `cds-test` `expect` pattern - Removing `HANA` test action - Move `HXE` Github action steps into a reuse file - Added a lock for `HANA` database creation - Added a fallback for `Postgres` during database creation - Removed compliance import tests - Added symbolic link to the compliance test folder --------- Co-authored-by: Daniel Hutzel <daniel.hutzel@sap.com> Co-authored-by: Johannes Vogel <31311694+johannes-vogel@users.noreply.github.com>
the fix was part of #837 → Semantic commit indicates a fix so that this gets mentioned in the changelog this fixes cap/issue#16943
Can you please report this fix to a a version which support cds 7 ? Actually, there are some inconsistencies:
So, when you fix a bug (like in this PR) which involves both dependencies, only project using cds > 8.2 can benefit from the fix. |
I do not see any inconsistencies. Are you running on cds7 + cap-js/hana? If yes, please consider updating the cds version. |
No, we are running with cds7 and |
We do recommend to first upgrade to cds8. You can adopt that and turn off the new odata protocol adapter. With that, there should not be much upgrade effort. Then you can adopt @cap-js/hana and later on the new protocol adapter or vice versa.
There simply was no technical reason to restrict it to cds8 before. |
🤖 I have created a release *beep* *boop* --- <details><summary>db-service: 1.14.0</summary> ## [1.14.0](db-service-v1.13.0...db-service-v1.14.0) (2024-10-15) ### Added * assoc-like calc elements after exists predicate ([#831](#831)) ([05f7d75](05f7d75)) ### Fixed * Improved behavioral consistency between the database services ([#837](#837)) ([b6f7187](b6f7187)) * Treat assoc-like calculated elements as unmanaged assocs ([#830](#830)) ([cbe0df7](cbe0df7)) </details> <details><summary>sqlite: 1.7.4</summary> ## [1.7.4](sqlite-v1.7.3...sqlite-v1.7.4) (2024-10-15) ### Fixed * Improved behavioral consistency between the database services ([#837](#837)) ([b6f7187](b6f7187)) </details> <details><summary>postgres: 1.10.1</summary> ## [1.10.1](postgres-v1.10.0...postgres-v1.10.1) (2024-10-15) ### Fixed * add cds schema for postgres build plugin ([#843](#843)) ([6306d5c](6306d5c)) * Improved behavioral consistency between the database services ([#837](#837)) ([b6f7187](b6f7187)) * null as default value ([#845](#845)) ([0041ec0](0041ec0)) </details> <details><summary>hana: 1.3.1</summary> ## [1.3.1](hana-v1.3.0...hana-v1.3.1) (2024-10-15) ### Fixed * combination of groupby and orderby ([#825](#825)) ([10e0534](10e0534)) * Improved behavioral consistency between the database services ([#837](#837)) ([b6f7187](b6f7187)) * list optimization for `Buffer` values ([#817](#817)) ([3e60de2](3e60de2)) * null as default value ([#845](#845)) ([0041ec0](0041ec0)) </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: Johannes Vogel <johannes.vogel@sap.com>
This PR contains a few fixes that where required to make the new compliance tests to pass:
@cap-js/hana
now properly supports scalarSELECT
queries in the columnsThe goal of this PR is to remove as much dependencies as possible now that
cds@8
provides thecds-test
command.jest
by switching tocds-test
jest.config.js
fileschai
by switching tocds-test
cds-test
expect
patternHANA
test actionHXE
Github action steps into a reuse fileHANA
database creationPostgres
during database creation