Browse Source
			
			
			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
					
					3 years ago
					
						
							committed by
							
								
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 5 changed files with 
23 additions and 
4 deletions
			 
			
		 
		
			
				- 
					
					
					 
					CHANGELOG.md
				
 
			
				- 
					
					
					 
					apps/api/src/app/order/order.service.ts
				
 
			
				- 
					
					
					 
					apps/api/src/services/symbol-profile.service.ts
				
 
			
				- 
					
					
					 
					prisma/migrations/20220808181846_added_url_to_symbol_profile_overrides/migration.sql
				
 
			
				- 
					
					
					 
					prisma/schema.prisma
				
 
			
		
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
					@ -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]) | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |