Skip to content

The admin app

The admin app is the web interface of tdfs4ds. It lets people ask the store questions, browse and document what it holds, build datasets, follow runs, check the health of a workflow, and administer the store, all from a browser. Nothing is installed on the user's side.

It has one page per task. What each user sees depends on a profile: a business analyst gets a short rail, an administrator gets everything.

Start it

pip install tdfs4ds
python -m tdfs4ds.serve

pip install tdfs4ds runs the whole app, the assistant's panels included. If the assistant's packages are missing from an environment, its panels (chat, query optimization, evaluation, documentation and vector-index steps) are greyed until you run pip install tdfs4ds.

The app opens on http://localhost:8000/. Settings (port, path prefix, connection) are described in API server.

import tdfs4ds
tdfs4ds.launch_app()      # a button: "Open the tdfs4ds app"

The app runs in its own process; the link goes through Jupyter's proxy when there is one. See The admin app from a notebook.

The app starts disconnected if it has no connection settings: the Connect to Teradata page opens and asks for them.

The top bar

Control What it does
Profile Admin, Data engineer, Data scientist or Business analyst. Chooses which entries the rail shows. The browser remembers it.
Theme Light or dark.
Status The jobs running now (index builds, streamed runs) and the connection.
Guide Opens the documentation page of the panel you are on, in the tdfs4ds guide.
(?) page code Python code that does what the current page does, ready to paste in a notebook. It asks for the password with getpass and never writes.

The rail, by task

Section Entries (tabs)
Home Home
Ask Chatbot
Find & understand Feature catalog · Documentation (Objects, Coverage, Attached, Glossary) · Lineage · Overview
Build Dataset builder · Performance (Query optimization, Benchmark, Framework cost, Server-side batches)
Run & monitor Runs (History, Parallel run plan) · Sizing · Health check · Time managers
Govern Store map · Impact study · Migration · Remove objects · Maintenance
Settings Connection · Parameters · Assistant settings (Skills, Evaluation)
Help tdfs4ds guide

Hovering an entry shows what it does. A section collapses by clicking its heading; the browser remembers it, and the section of the page in the URL always opens.

Renamed entries

Overview was the Report, Health check was the Workflow assessment, Store map was the EFS map, and Runs groups the former Execution log and Execution plan. Old bookmarks still work: #doccov, #attached, #parallel, #benchmark and #eval open the right tab. A page outside your profile opens the chat.

The valid-time banner

A strip under the top bar sets the date for the whole app.

  • By default it reads Current state.
  • Choose a date and the strip turns orange: Viewing the feature store as of <date> (UTC) · Back to now.

The date is the valid time of the catalogs: which processes, features and datasets were registered then. Whether an object exists and the physical row counts are always read now.

Follows the date Always shows the current state
Overview, Store map, Feature catalog (process detail and exports too), Runs › History, Lineage, and the chat (as the default valid time of a question that names no date) Documentation, Dataset builder, Performance, Parallel run plan, Health check, Migration, Remove objects, Maintenance, Parameters, Assistant settings

On a page that does not follow the date, the banner says so. The dataset builder always builds now: its own snapshot, as-of or history choice is the dataset's data time, a different thing from the banner date.

Past dates are read-only views

The banner changes what you read, not what you can do. Actions that write still act on the store as it is now.

Which profile sees what

Entry (tab) Business analyst Data scientist Data engineer Admin
Chatbot yes yes yes yes
Feature catalog yes yes yes yes
Documentation › Objects yes yes yes yes
Documentation › Coverage yes yes yes
Documentation › Attached yes yes
Lineage yes yes yes yes
Overview yes yes yes yes
Dataset builder yes yes yes yes
Performance › Benchmark yes yes yes
Performance › Query optimization yes yes
Runs › History yes yes yes
Runs › Parallel run plan yes yes
Health check yes yes yes
Store map yes yes
Migration yes yes
Maintenance yes yes
Remove objects yes yes
Parameters yes
Assistant settings (Skills, Evaluation) yes
tdfs4ds guide yes yes yes yes

Choosing the feature store. The header has a store button for every profile; it shows the current store and "+N" when N read-only stores are attached. It opens a small panel with the feature store (read and write) and an Also read from list of checkboxes for the other stores (the chosen primary is never offered; stores connect would refuse are listed disabled, the reason in their tooltip). Apply sends one request with the primary and the ticked stores, and shows the server's answer, including any read-only store that was rejected; Cancel, Esc or a click outside closes it without a change. With the gateway login page (TDFS4DS_SERVE_AUTH=gateway, each person has a worker of their own) or without a login gate, every profile can switch it: only that person's store changes. With the shared database login gate (TDFS4DS_SERVE_AUTH=database, one process for everybody) the picker is read-only and only an administrator changes the store in Parameters, because the switch would move it for everybody logged in. The rest of Parameters stays admin-only.

TDFS4DS_SERVE_DEFAULT_PROFILE sets the profile new visitors start with (admin by default, so an existing deployment looks the same as before). The older TDFS4DS_SERVE_DEFAULT_VIEW is still read: user means Business analyst.

A profile is not access control, unless the login gate is on

By default a profile chooses which pages are shown. It does not restrict anything: anyone can switch profile, and every request uses the app's one database connection. What a person can read or change is decided by that connection's rights in the database. With the login gate (TDFS4DS_SERVE_AUTH=database) each person logs on with their own database account, their profile is capped by their database roles (TDFS4DS_ADMIN, TDFS4DS_ENGINEER, TDFS4DS_SCIENTIST), the selector offers only the profiles up to that cap, and the server enforces it (a request above it is refused with 403). Queries still run as the app's service user. See Security.

  • Home is the first page. It shows what matters for your profile, now:
Profile Home cards
Business analyst suggested questions, feature search, recently documented features
Data scientist features without documentation, datasets, shortcuts to the dataset builder and Benchmark
Data engineer runs needing attention (failed, interrupted, stale), the last health check, what the store holds
Admin configuration check, database, maintenance, what the store holds

Each card loads on its own and the page appears at once. A card that cannot be read says why. - The search box in the top bar (/ to focus) finds pages and tabs by name, and features, processes and datasets by name or description. A result opens the object. - Object names are links. Click a feature, process, dataset or view name, in any page, to open it in the Feature catalog, Lineage, Documentation or Runs. The menu offers only what your profile and the configuration allow. Impact (process, dataset, view and table; Admin, Data engineer and Data scientist) opens a side drawer that studies what a change would do. See Impact. - A writes badge marks every button that changes the store (documentation edits, attach and detach, maintenance runs, create or remove a dataset, approve an optimised query, run a migration…). Everything else only reads.

Connection and configuration checks (since 0.3.7.4)

The app watches its own state, so a problem shows before someone runs into it.

  • The database is checked every 60 seconds. The check is a SELECT 1 on a connection of its own; the connection the pages use is never touched. The status bar shows the result with a dot:
Dot Meaning
Green connected, with the latency
Red connection lost since 10:42, or the logon was refused
Orange not checked (no TDFS4DS_TD_* credentials to check with)
  • When the connection comes back, the app reconnects by itself, but only when no job is running. A reconnect replaces the connection the running pages use. Reconnect in the status bar does it at once, and is refused while a job runs.
  • The configuration check runs by itself.
  • At start and after each connection, all checks run.
  • Every 6 hours, the checks that call no model and use no database session run again.
  • The status bar shows Configuration: ok or Configuration: N problems, with the time. Click it to open the check under Settings → Parameters.
  • What the configuration cannot do is shown, not hidden. A page or button that needs something missing stays visible, greyed with a lock. Its tooltip gives the reason and the setting to fix, and opening the page says the same instead of failing.
Missing Disabled
Database connection every page that reads the store; Connect and Parameters stay open
Instruct model Chatbot, Query optimization, Evaluation, Document actions (Documentation, Maintenance)
Embedding model / vector index index builds and refreshes
MCP server the chat's MCP tools option

When the capability comes back, the page works again without a reload.

Setting Default Meaning
TDFS4DS_SERVE_HEALTH_INTERVAL 60 seconds between database checks; 0 turns them off
TDFS4DS_SERVE_CONFIG_CHECK_HOURS 6 hours between the periodic configuration checks; 0 turns them off
TDFS4DS_SERVE_SESSION_TTL not set minutes of inactivity after which credentials typed on the Connect page are forgotten
TDFS4DS_SERVE_SESSION_MAX not set absolute lifetime in minutes of a Connect-page session
TDFS4DS_SERVE_CONNECT_PAGE on off refuses the Connect page
TDFS4DS_TD_REQUEST_TIMEOUT not set seconds after which a request fails instead of waiting on a lost connection

Where to go next

  • By profile: the typical path of each profile through the app.
  • Panels: what each page shows, what it writes, and whether it follows the date.
  • Design & operate: the practices the Data engineer pages support.

When the database is far away

Every page of the app reads the database, and each read is a round trip. On a link with a high latency (a VDI, a VPN) the number of round trips decides how long a page takes, not the size of the data.

  • The status bar tells you what is running. Any request that lasts more than a second appears at the bottom with the name of the page, the seconds elapsed and the current step ("Overview report - 12 s - reading the lineage graph"). Click it for the list. After a page has loaded, the bar keeps its cost for a minute: "Overview report: 3 s, 5 statements". The "Loading..." placeholders count the seconds too.
  • The server no longer freezes while a page loads. The status bar and the other pages answer during a long read.
  • The Overview report reads the database in 2 or 3 grouped requests (about 5 statements on a store with a few processes, where it used to send about 620). The Health check is not computed by the report: the report shows the last result with its age, or a Run the health check button that runs it with visible progress. The last report is shown at once while a new one loads.
  • Repeat visits read ahead. A page remembers the statements it sent last time (statement text only, kept in ~/.tdfs4ds/cache/learned_reads) and sends them again in a few grouped requests before it needs them. The first visit of a page is the slowest one; the next ones need a handful of round trips (the Health check 160 then 15 statements, the time managers 26 then 2, documentation coverage 57 then 3, on a trial system). TDFS4DS_LEARNED_READS=off switches it off.
  • Each response carries its own cost: the headers X-TDFS4DS-Statements and X-TDFS4DS-DB-Seconds, and a Server-Timing header. A request slower than 3 seconds is written to the server log: slow request GET /ui/dashboard/report 41.2 s, 96 statements, database 38.9 s.