Feature/add url to symbol profile overrides (#1132)

* Add url to symbol profile overrides

* Improve filter by asset class

* Update changelog
pull/1133/head^2
Thomas Kaul 2 years ago committed by GitHub
parent f127e7c61a
commit dbc38e705e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,11 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased
### Added
- Added `url` to the symbol profile overrides model for manual adjustments
### Changed
- Simplified the initialization of the exchange rate service
- Improved the orders query for `assetClass` with symbol profile overrides
- Improved the styling of the benchmarks in the markets overview
### Todo
- Apply data migration (`yarn database:migrate`)
## 1.177.0 - 04.08.2022
### Added

@ -231,7 +231,7 @@ export class OrderService {
},
{
SymbolProfileOverrides: {
is: null
assetClass: null
}
}
]

@ -115,9 +115,16 @@ export class SymbolProfileService {
}
item.name = item.SymbolProfileOverrides?.name ?? item.name;
item.sectors =
(item.SymbolProfileOverrides.sectors as unknown as Sector[]) ??
item.sectors;
if (
(item.SymbolProfileOverrides.sectors as unknown as Sector[])?.length >
0
) {
item.sectors = item.SymbolProfileOverrides
.sectors as unknown as Sector[];
}
item.url = item.SymbolProfileOverrides?.url ?? item.url;
delete item.SymbolProfileOverrides;
}

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "SymbolProfileOverrides" ADD COLUMN "url" TEXT;

@ -136,6 +136,7 @@ model SymbolProfileOverrides {
countries Json?
name String?
sectors Json?
url String?
symbolProfileId String @id
updatedAt DateTime @updatedAt
SymbolProfile SymbolProfile @relation(fields: [symbolProfileId], references: [id])

Loading…
Cancel
Save