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[serve]"
python -m tdfs4ds.serve

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.
(?) 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)
Ask Chatbot
Find & understand Feature catalog · Documentation (Objects, Coverage, Attached) · Lineage · Overview
Build Dataset builder · Performance (Query optimization, Benchmark)
Run & monitor Runs (History, Parallel run plan) · Health check
Govern Store map · Migration · Remove objects · Maintenance
Settings 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
Parameters yes
Assistant settings (Skills, Evaluation) yes
tdfs4ds guide yes yes yes yes

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

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. To keep people out of a page, give the app a connection that cannot do what the page does, or do not expose the app to them.

  • 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_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.