Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Bugfix/redaction of symbol profile in activities (#7977)
Thomas Kaulf14d2ce2eba5
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 8b41f04751..b2b3725a97 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- Fixed the sustainable retirement income on the _FIRE_ page for redacted values- Fixed the emergency fund in the portfolio summary for redacted values- Fixed the redaction of `valueInBaseCurrency` in the holdings of ETFs in a restricted view+- Fixed the redaction of `comment`, `scraperConfiguration` and `symbolMapping` in the asset profile relation of the activities in a restricted view- Resolved the data source transformation in the asset profile relation of the activities## 3.75.0 - 2026-09-28diff --git a/apps/api/src/helper/object.helper.spec.ts b/apps/api/src/helper/object.helper.spec.tsindex ca487ed8f7..9776232a0b 100644--- a/apps/api/src/helper/object.helper.spec.ts+++ b/apps/api/src/helper/object.helper.spec.ts@@ -3082,6 +3082,20 @@ describe('redactAttributes', () => {feeInBaseCurrency: 18.2,id: '8c623328-6035-4b5f-b6d5-702cc1c9c56b',quantity: 50,+ // The relation of the database is part of the response next to the+ // asset profile+ SymbolProfile: {+ comment: 'Reviewed by the administrator',+ name: 'Apple Inc',+ scraperConfiguration: {+ headers: { Authorization: 'Bearer TOKEN' },+ mode: 'lazy',+ selector: '.price',+ url: 'https://example.org/get_price'+ },+ symbol: 'AAPL',+ symbolMapping: { YAHOO: 'AAPL' }+ },type: 'BUY',unitPrice: 220.79,value: 11039.5,@@ -3111,6 +3125,13 @@ describe('redactAttributes', () => {feeInBaseCurrency: null,id: '8c623328-6035-4b5f-b6d5-702cc1c9c56b',quantity: null,+ SymbolProfile: {+ comment: null,+ name: 'Apple Inc',+ scraperConfiguration: null,+ symbol: 'AAPL',+ symbolMapping: null+ },type: 'BUY',// A price per unit stays visible, like the average price and the market// price of a holding@@ -3169,6 +3190,18 @@ describe('redactAttributes', () => {currency: 'USD',fee: 19.9,quantity: 50,+ SymbolProfile: {+ comment: 'Reviewed by the administrator',+ name: 'Apple Inc',+ scraperConfiguration: {+ headers: { Authorization: 'Bearer TOKEN' },+ mode: 'lazy',+ selector: '.price',+ url: 'https://example.org/get_price'+ },+ symbol: 'AAPL',+ symbolMapping: { YAHOO: 'AAPL' }+ },type: 'BUY',unitPrice: 220.79,value: 11039.5,@@ -3194,6 +3227,13 @@ describe('redactAttributes', () => {currency: 'USD',fee: null,quantity: null,+ SymbolProfile: {+ comment: null,+ name: 'Apple Inc',+ scraperConfiguration: null,+ symbol: 'AAPL',+ symbolMapping: null+ },type: 'BUY',unitPrice: 220.79,value: null,diff --git a/libs/common/src/lib/config.ts b/libs/common/src/lib/config.tsindex 6ff492f671..5a8aecff36 100644--- a/libs/common/src/lib/config.ts+++ b/libs/common/src/lib/config.ts@@ -138,6 +138,9 @@ export const DEFAULT_REDACTED_PATHS = ['activities[*].feeInAssetProfileCurrency','activities[*].feeInBaseCurrency','activities[*].quantity',+ 'activities[*].SymbolProfile.comment',+ 'activities[*].SymbolProfile.scraperConfiguration',+ 'activities[*].SymbolProfile.symbolMapping','activities[*].value','activities[*].valueInBaseCurrency','assetProfile.comment',@@ -180,6 +183,9 @@ export const DEFAULT_REDACTED_PATHS = ['settings.emergencyFund','settings.projectedTotalAmount','settings.savingsRate',+ 'SymbolProfile.comment',+ 'SymbolProfile.scraperConfiguration',+ 'SymbolProfile.symbolMapping','totalBalanceInBaseCurrency','totalDividendInBaseCurrency','totalInterestInBaseCurrency',