fix: remove unused promotion readiness dependency

This commit is contained in:
WuYongJie 2026-09-07 11:55:06 +08:00
parent f9e44a8376
commit 0a0b139e60
3 changed files with 2 additions and 3 deletions

View File

@ -49,7 +49,7 @@ return [
'operations_replica.rpt.fys_TrademarkInfo' => ['role' => 'dimension', 'target_store' => 'mariadb', 'consumer' => '商标资料'],
'operations_replica.rpt.jst_sku' => ['role' => 'dimension', 'target_store' => 'mariadb', 'consumer' => '商品资料/售后费用'],
'operations_replica.rpt.jst_warehouseInfo' => ['role' => 'dimension', 'target_store' => 'mariadb', 'consumer' => '售后费用'],
'operations_replica.rpt.jst_shopInfo' => ['role' => 'dimension', 'target_store' => 'mariadb', 'consumer' => '推广费用'],
'operations_replica.rpt.jst_shopInfo' => ['role' => 'dimension', 'target_store' => 'mariadb', 'consumer' => '预留聚水潭店铺维表'],
// Large analytical facts move to ClickHouse after a MariaDB backfill.
'operations_replica.rpt.jst_Orders' => [

View File

@ -19,7 +19,6 @@ class OrderDataMirrorRepository
private const PROMOTION_DATASETS = [
'operations_replica.rpt.ads_itemid_sales_cost_ratio_v2_di',
'operations_replica.rpt.jst_shopInfo',
];
private readonly ConnectionInterface $connection;

View File

@ -107,7 +107,7 @@ class OrderDataMirrorRepositoryTest extends TestCase
$datasets = app(BusinessMirrorDatasetRegistry::class);
$mirror = Mockery::mock(GenericBusinessMirrorRepository::class);
$mirror->shouldReceive('connection')->andReturn(DB::connection('business_mirror'));
$mirror->shouldReceive('ready')->twice()->andReturnTrue();
$mirror->shouldReceive('ready')->once()->andReturnTrue();
$this->assertTrue((new OrderDataMirrorRepository($datasets, $mirror))->promotionReady());
}