mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
Currently, each Interest activity creates a new Symbol Profile. This may leave the DB cluttered with multiple single-activity Symbols (see #3381), causing a slowness in portfolio snapshot computation and some difficulty in parsing all symbols in Admin Control > Market Data page. This is a proposal to keep a single Symbol Profile for each unique name used for an Interest-typed activity. Test Plan: 1. Create an Interest activity named "AAAA" 2. Create another Interest activity named "AAAA" 3. Verify in Market Data that only one Symbol Profile exists for both interest activities 4. Delete the first "AAAA" Interest activity 5. Verify the other activity still exists 6. Verify the "AAAA" Symbol Profile still exists 7. Delete the second "AAAA" Interest activity 8. Verify the "AAAA" Symbol Profile got deleted 9. Create an Interest activity named "BBBB" 10. Create another Interest activity named "BBBB" 11. Update one of the activities to be named "CCCC" 12. Verify one "BBBB" and one "CCCC" activities exist 12. Verify in Market Data that there are two Symbol Profiles, one for "BBBB" and one for "CCCC" 13. Rename Symbol Profile "CCCC" to "DDDD" from the Market Data page 14. Verifify the activity in Activities page shows up as "DDDD" nowpull/3899/head
1 changed files with 59 additions and 3 deletions
Loading…
Reference in new issue