Loading...
Searching...
No Matches
stagedata.test.4.sas File Reference

testing the derived-variable submit guards (MPE_DERIVED post edit hook) More...

Go to the source code of this file.

Detailed Description

Backend validations should abort when:

  1. an active row's VAR_DEPS names an inactive (active=0) row of the same table - the engine reads only active rows, so the dependency can never resolve at run time
  2. a row is staged with active=0 while a surviving active row depends on it
  3. a staged row breaks a field rule of the shared scan (core's mp_derivedvarcheck), or carries an ACTIVE value the EDIT screen's picker cannot produce

They should NOT abort when:

  1. a new active row is added to a table that also holds an inactive row - the inactive row is not part of the dependency graph, so it cannot create a cycle or a stale reference
  2. a delete-marked RLS rule naming a derived variable is submitted - the rule is being removed, so its variables are not validated
  3. a delete and re-add of the same variable is submitted together - the re-added active row resolves the dependency
  4. an inactive row is set active again while another active row depends on it - the re-activation is what makes the dependency resolvable

The staged loads are aborted by the post edit hook. The assertion fetches the sasjsAbort object that mp_abort writes to the webout before the hook aborts.

SAS Macros

Definition in file stagedata.test.4.sas.