Feature/add url to symbol profile overrides (#1132)
* Add url to symbol profile overrides * Improve filter by asset class * Update changelog
This commit is contained in:
parent
f127e7c61a
commit
dbc38e705e
@ -7,11 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Added `url` to the symbol profile overrides model for manual adjustments
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Simplified the initialization of the exchange rate service
|
- 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
|
- Improved the styling of the benchmarks in the markets overview
|
||||||
|
|
||||||
|
### Todo
|
||||||
|
|
||||||
|
- Apply data migration (`yarn database:migrate`)
|
||||||
|
|
||||||
## 1.177.0 - 04.08.2022
|
## 1.177.0 - 04.08.2022
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@ -231,7 +231,7 @@ export class OrderService {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
SymbolProfileOverrides: {
|
SymbolProfileOverrides: {
|
||||||
is: null
|
assetClass: null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -115,9 +115,16 @@ export class SymbolProfileService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
item.name = item.SymbolProfileOverrides?.name ?? item.name;
|
item.name = item.SymbolProfileOverrides?.name ?? item.name;
|
||||||
item.sectors =
|
|
||||||
(item.SymbolProfileOverrides.sectors as unknown as Sector[]) ??
|
if (
|
||||||
item.sectors;
|
(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;
|
delete item.SymbolProfileOverrides;
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,2 @@
|
|||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "SymbolProfileOverrides" ADD COLUMN "url" TEXT;
|
@ -136,6 +136,7 @@ model SymbolProfileOverrides {
|
|||||||
countries Json?
|
countries Json?
|
||||||
name String?
|
name String?
|
||||||
sectors Json?
|
sectors Json?
|
||||||
|
url String?
|
||||||
symbolProfileId String @id
|
symbolProfileId String @id
|
||||||
updatedAt DateTime @updatedAt
|
updatedAt DateTime @updatedAt
|
||||||
SymbolProfile SymbolProfile @relation(fields: [symbolProfileId], references: [id])
|
SymbolProfile SymbolProfile @relation(fields: [symbolProfileId], references: [id])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user