-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: use path expressions on new dbs #133
base: main
Are you sure you want to change the base?
Conversation
|
||
### Fixed | ||
|
||
- Rewrite subselects to use path expressions on @cap-js databases |
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.
- Rewrite subselects to use path expressions on @cap-js databases | |
- Use path expressions instead of manually constructed semi joins on @cap-js databases |
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "@cap-js/audit-logging", | |||
"version": "0.8.2", | |||
"version": "0.8.3", |
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.
0.9.0
@@ -246,7 +333,12 @@ const addDataSubjectForDetailsEntity = (row, log, req, entity, model) => { | |||
const map = _getDataSubjectsMap(req) | |||
if (map.has(role)) log.data_subject.id = map.get(role) | |||
// REVISIT by downward lookups row might already contain ID - some potential to optimize | |||
else map.set(role, _getDataSubjectIdQuery(dataSubjectInfo, row, model)) | |||
else { | |||
module.exports._getDataSubjectIdQuery ??= cds.env.requires.db?.impl?.startsWith('@cap-js/') |
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.
explicit feature flag!
No description provided.