Skip to content

v0.21.0

Choose a tag to compare

@github-actions github-actions released this 17 Nov 07:33
· 111 commits to main since this release

Breaking changes

  • Weeks start on Monday on every database. Before, MySQL, BigQuery and other databases whose own week starts on Sunday grouped weeks Sunday to Saturday, while this week covered Monday to Sunday. Weekly numbers on those databases shift. To keep Sunday weeks, set query.default.input.weekStartDay: sunday in .anfra/config.yml. (#146 @datbth)
  • .anfra/config.yml is read strictly. A key or value anfra doesn't know now fails every query with repo_settings_invalid, naming the line and the key meant. Before, it was ignored. Fix or remove the key. (#146 @datbth)

New features

  • Query cache: a query run again soon is answered from a local cache instead of the warehouse, so reloading a data app or repeating an agent's query is faster and costs nothing. Turn it on per project (query.default.cache.duration: 5m in .anfra/config.yml), per data app (createApp({ query: { default: { cache: { duration: '5m' } } } })), or per query (--cache.duration). Inspect shows each query's hit or miss and age. anfra cache status and anfra cache clean manage it. (#145 #146 #140 @datbth)
  • Change a data app while it runs: chart and dashboard builders can now edit or remove queries, filters, date drills and their links with update() and remove(). Several edits run together at the next app.execute(). (#141 @nkhdo)
  • Project-wide week start and time zone: set query.default.input.weekStartDay and query.default.input.timezone in .anfra/config.yml, and lock them with query.locked_defaults. A data app sets its own with createApp({ weekStartDay }); one CLI query with --input.week-start-day. (#146 @datbth)
  • anfra logs: read the project's log, narrowed by --level, --event and --since, or follow it with -f. The new anfra-read-logs skill teaches your agent to use it. (#145 @datbth)

Improvements and changes

  • Refresh replaces Reload in anfra serve. It runs every query again and keeps the reader's filters, selection and sort; Reload dropped them. A data app can rerun one query with query.execute({ force }). (#137 @nkhdo)
  • Data apps look finished on the first try: the anfra-build-data-app skill now plans the page first, builds it in the anfra look (KPI row, controls in the header, delta pills), and checks it before handing over. (#132 @hungdofyi)
  • Sign in by region: anfra auth login lists anfra.ai's regions. United States is open; Europe, Asia Pacific and Middle East show as upcoming. (#138 @dthongvl)
  • Pivot queries can be paged: set pageSize and load more grid rows with fetchMore(). (#145 @datbth)
  • anfra init writes .anfra/config.yml with every setting at its default. (#146 @datbth)
  • CLI flags set nested fields, such as --input.pagination.page-size, and match ignoring case, _ and -. --page-size, --page and --timezone still work, but are deprecated. (#140 @datbth)
  • Running the sidecars yourself? The query cache needs a third one, canal-lake, shipped in the new anfra-canal image. Without it, leave the cache off. Setup (#145 @datbth)

Fixes

  • Pressing Esc at a CLI picker showed an internal error. It now says "Canceled." (#138 @dthongvl)
  • anfra ingest crashed at the end in the default output format. (#139 @datbth)
  • In a data app, fetchMore() before app.execute() made the next app.execute() skip a query with a filter change. (#137 @nkhdo)

Others

Contributors