Add "hidden" flag to TradingPosition records that should be hidden in the UI #1041
Labels
enhancement
New feature or request
priority: P2
Default priority. An issue might not yet be fixed in the next release.
size: S
A small task that can be completed in less than a day
Goal
As a strategy admin, I want to be able to hide specific positions from non-admin users on
frontend
, in order to prevent them from being confused by erroneous data.Background
See tradingstrategy-ai/frontend#812
As a short-term work around, positions are bing hidden in
frontend
by addinghiddenPositions
array to thefrontend
strategy configuration (found instrategies.json
on prod). This is not a scalable solution and is problematic b/c the strategy configuration is not defined in a single, consistent location.Note the question under How to flag position as hidden? in the ticket description. This ticket assumes we are going with the recommendation in that section. If there is a better approach, update the ticket accordingly.
Acceptance criteria
state.portfolio.[status]_positions
) include a newflags
property.flags
property includes a list of values, taken from an enumeration of valid position flagshidden
hidden
flag.The text was updated successfully, but these errors were encountered: