Add versioned metric graph authority, owned browser evidence, paginated and all-tab traversal, deterministic sampling policies, and analyst-facing run inspection. Provision the DEV/PREPROD/PROD Superset, Gitea and million-row ClickHouse lab; retain reproducible lifecycle evidence and explicit incomplete-traversal limits.
36 lines
1.5 KiB
Python
36 lines
1.5 KiB
Python
#!/usr/bin/env python3
|
|
# #region Tooling.FullFlowFixtureDefinition [C:2] [TYPE Module] [SEMANTICS test,fixture,reference,filter]
|
|
# @BRIEF Write the public deterministic North-region fixture used by the isolated verifier.
|
|
# @TEST_INVARIANT Expected revenue is hardcoded from the seeded 90-row sales fixture, not production computation.
|
|
# @INVARIANT This file contains no credentials and targets only isolated Compose origins.
|
|
import argparse
|
|
import json
|
|
from pathlib import Path
|
|
from urllib.parse import urlencode
|
|
|
|
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument("--output", type=Path, default=Path("/tmp/full-flow-fixture.json"))
|
|
parser.add_argument("--dashboard-id", type=int, default=1)
|
|
args = parser.parse_args()
|
|
if args.dashboard_id < 1:
|
|
parser.error("dashboard-id must be positive")
|
|
state = {"NATIVE_FILTER-REGION": {
|
|
"id": "NATIVE_FILTER-REGION",
|
|
"extraFormData": {"filters": [{"col": "region", "op": "IN", "val": ["North"]}]},
|
|
"filterState": {"value": ["North"], "label": "North"},
|
|
}}
|
|
fixture = {
|
|
"backend_url": "http://127.0.0.1:18103",
|
|
"dashboard_id": args.dashboard_id,
|
|
"metric": "total_revenue",
|
|
"expected_value": "16350",
|
|
"catalog_repo": "admin/baseline-catalogs",
|
|
"catalog_branch": "main",
|
|
"reference_url": "http://superset-preprod:8088/superset/dashboard/sales/?" +
|
|
urlencode({"native_filters": json.dumps(state)}),
|
|
}
|
|
args.output.write_text(json.dumps(fixture, indent=2) + "\n")
|
|
print("Public fixture written to " + str(args.output))
|
|
# #endregion Tooling.FullFlowFixtureDefinition
|