You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1ff49a0
Browse filesBrowse the repository at this point in the historyBrowse files
feat(ui): build what changed from Overview and Lineage, and show held-back nodes in the plan (#1464)
* feat(ui): build what changed from Overview and Lineage, and show held-back nodes in the plan
* fix(ui): word --changed runs by their own reason and refresh held-back nodes by the named job only
nodes: [node('fact_orders','changed','SQL changed: refunded payments now net out of order revenue',{columns: [{name: 'net_revenue',op: 'changed',detail: 'expression changed'}]})],
['Held back',['fct_revenue: job finance_daily','rpt_pnl: job finance_daily','summary: reads fct_revenue, which is held back']],
141
+
['Unchanged',['stg_customers: skipped by --changed']]
142
+
]);
143
+
expect(changedPolicyLine(reach.changed!)).toBe('Counting: definition (source data not counted) · reach: job');
144
+
expect(changedPolicyLine({ ...reach.changed!,counts: ['definition','source_data'],reach: 'all'})).toBe('Counting: definition, source data · reach: all');
145
+
expect(planSentence(reach)).toBe(
146
+
'4 models build: stg_orders changed since its last build and the other 3 models read a change upstream. 3 models wait for their job\'s own run. 1 unchanged node is skipped by --changed.'
147
+
);
148
+
});
149
+
150
+
it('names the models that run under --changed for their own reason, not as reading a change',()=>{
// A group's schedule says nothing about a job whose own trigger is paused; the plan names the group itself when it matters.
172
+
expect(jobRefreshText('finance_daily',[trigger('finance_daily','paused','2026-01-01T05:00:00Z'),trigger('nightly','running','2026-01-01T02:00:00Z')],now)).toBe('job finance_daily is paused');
173
+
expect(jobRefreshText('nightly',[trigger('nightly','running','2026-01-01T02:00:00Z'),trigger('nightly','running','2026-01-01T05:00:00Z')],now)).toBe('job nightly · next run in 2h');
174
+
expect(jobRefreshText('finance_daily',[trigger('finance_daily','paused',null),trigger('finance_daily','running',null,'sensor')],now)).toBe('job finance_daily · when its sensor fires');
175
+
// A running schedule with no next run, such as a finished calendar, is not a sensor.
0 commit comments