Skip to content

Fixes and improvements - #428

Open
Chenglong Wang (Chenglong-MS) wants to merge 151 commits into
mainfrom
dev
Open

Chenglong Wang (Chenglong-MS) wants to merge 151 commits into
mainfrom
dev

Conversation

@Chenglong-MS

Copy link
Copy Markdown
Collaborator

This pull request introduces several improvements and refinements to the Data Formulator agent and context handling, focusing on clearer terminology, enhanced connector and skill management, and dependency updates. The most important changes are summarized below.

Agent and Context Terminology Improvements:

  • All references to "primary table(s)" and "other available tables" have been replaced with "primary analysis inputs" and "other analysis inputs" throughout agent summaries, context, and system prompts for greater clarity and consistency. The [AVAILABLE TABLES] section is now [ANALYSIS INPUT TABLES]. [1] [2] [3] [4] [5] [6]

Connector Availability and Summary Enhancements:

  • The connector summary block now displays all currently loadable connectors, including those not yet cached, and distinguishes between connected/disconnected sources and catalog availability. Disconnected sources are hidden from the agent, and error handling/logging is improved. [1] [2] [3]

Skill Preloading and System Prompt Improvements:

  • The agent now preloads the "data-loading" skill when no analysis input tables are present, exposing its tools and actions immediately. System prompts include all preloaded skills with clear banners. Skill state is properly rehydrated from both loaded and preloaded markers in the trajectory. [1] [2] [3] [4] [5]

Dependency Updates:

  • Several frontend dependencies have been updated for security and compatibility, including vite, dompurify, echarts, js-yaml, and new resolutions for postcss, esbuild, and tmp. [1] [2] [3]

Documentation Cleanup:

  • The obsolete docs/desktop-portable.md file has been removed.
  • The old model evaluation plan in loops/model-evaluation/plan.md has been deleted.

Add orcarouter to the built-in providers so Data Formulator users can
connect the OrcaRouter AI gateway from the model picker and via
ORCAROUTER_* environment variables, mirroring the existing ollama/openai
wiring. The client routes through LiteLLM's openai provider against the
OrcaRouter base URL, preserving the orcarouter/ model namespace.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…ovider

feat: add OrcaRouter as a built-in model provider
Adds full Hindi translations for all 10 i18n domain files, following
the translation guide's rules (chart type identifiers, encoding channel
keys, and other computation-bound values stay in English). Registers
hi in the locale index/i18next resources and language switcher labels,
and documents AVAILABLE_LANGUAGES=en,zh,hi as opt-in in .env.template.

Relates to #337.
folderPathPlaceholder illustrates filesystem path syntax; translating
the segment words broke the example and was inconsistent with how
every other path/URL placeholder in the app is left untranslated.
Add Hindi (hi) locale for frontend i18n
list_tables and fetch_data_as_arrow already build _jail on demand. ls and get_metadata did not, so on an instance that has not run test_connection they evaluate None / str and raise TypeError, which their own except ValueError handlers do not catch.

Adds the same two-line guard the siblings use, bringing all four _jail callers to one pattern.
The wrapper embeds user-supplied code, so on a system whose preferred
encoding is not UTF-8 (cp1252 on Windows) writing it raised
UnicodeEncodeError for any non-ASCII character, and silently transcoded
the rest -- the container reads run.py as UTF-8 either way.

Matches the explicit encoding already used elsewhere in the package,
e.g. reasoning_log.py and analyst/skills/__init__.py.
The constant table listed DEFAULT_ROW_LIMIT_EPHEMERAL in dfSlice.tsx.
That identifier does not exist anywhere in the repository, and there is
no separate ephemeral row limit in the frontend.
…hemeral-row

docs(dev-guides): drop the nonexistent DEFAULT_ROW_LIMIT_EPHEMERAL row
fix(sandbox): write the docker wrapper script as utf-8
Comment thread tests/eval/tool_packs/run.py Fixed
- ConfinedDir.resolve confines with normpath/realpath + startswith (same checks, recognised by CodeQL)
- Rename the MCP server config variable named `oauth` (read as a credential by CodeQL)
- OpenRouter callback page uses the stored flow id; workflow name regex anchored and length-capped
- Sandbox allowWrite validation uses os.path; workflow list hides OSError text (server file paths)
- generateUUID: drop Math.random fallback and fix NaN digits in the getRandomValues path

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Adds a built-in semantic loader for Google Search Console, modeled on the
Cube connector: one connection per property, Search Analytics dimensions
and measures as columns, structured queries compiled to one
searchAnalytics.query call. Auth uses application default credentials or
a service account file with the read-only webmasters.readonly scope.

Refs #156.
Adds a 7-day Dependabot cooldown for GitHub Actions. Based on #476.

Co-authored-by: Dan Fiedler <danfiedler-msft@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
feat: add Google Search Console data loader
…-max-flags

docs(development): add the scratch size flags to the CLI Flags Reference
site_url is now optional. Left empty, the connection lists every
property the identity can read (sites.list, unverified ones excluded);
set, it still pins one property. test_connection fails when no property
is readable. The generic loader test now accepts IDENTITY_PARAMS in place
of a required param, since an account-level source is identified by its
credentials. Guide Scope paragraph updated in all locales.

Follow-up to #521.
Comment thread src/app/htmlApp/dfAppRuntime.js Fixed
if origin in _discovery_cache:
return _discovery_cache[origin]
try:
response = requests.get(origin + _API_PATH, timeout=10, allow_redirects=False)
document.getElementById("copy").addEventListener("click", function (event) {{ copy(event.currentTarget); }});
}})();
</script></body></html>"""
response = Response(page, mimetype="text/html")
Comment thread py-src/data_formulator/shares.py Fixed
Comment thread py-src/data_formulator/shares.py Fixed
…e previews

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
DEFAULT_LOOK in looks.ts replaces the hard-coded 'soft' fallbacks (theme, app
runtime, settings reset). There is no per-deployment default.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…data folders

- Demos differ only in their data: profile `sources` lists deployment
  connectors ({connector: id}) and bundled data folders ({folder, name});
  a demo offers only those (no example datasets, no user connections or
  linked folders). full_app and the limited-demo mode are removed.
- Each demo is its own scope: sessions, workflows, schedules and personal
  connections are kept apart from the standard app's; profiles choose models
  and workflows. "Open in Data Formulator" copies a session into the app.
- Shared demo build steps in sites/builder.py; dataset tables are recorded
  as loaded from the demo's source and refresh from it. UNESCO and NeurIPS
  write data folders (sites/data_folder.py).
- New Power Apps demo (Dataverse); admin connectors can auto_connect.
- DF_DEMOS chooses the demos a server offers; DF_DEFAULT_MODEL picks the
  first-listed model.
- Landing: sources line under the chat, example session reopen dialog,
  centred logo lockup; demo SVG/JSX files ship in the package.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…nt-level

feat(search-console): account-level connection
DataConnector previously passed only the access token when resolving
service credentials from TokenStore. A cached loader could therefore
lose access when its token expired, even though the session still held
a valid refresh token.

Add TokenStore.get_loader_credentials() to return the access token with
its matching refresh token for the same service. DataConnector passes
these credentials to the loader so it can use its existing refresh logic.

Add a Superset regression test that reads the same dataset before and
after access-token expiry and verifies that the cached loader refreshes
once and continues reading without reconnecting.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.