Skip to content

Add the ability to use local optimization_config#275

Draft
mu-hun wants to merge 5 commits intomasterfrom
local_optimization_config
Draft

Add the ability to use local optimization_config#275
mu-hun wants to merge 5 commits intomasterfrom
local_optimization_config

Conversation

@mu-hun
Copy link
Copy Markdown
Member

@mu-hun mu-hun commented Apr 3, 2026

Allow loading optimization percentages and filter stats from a local directory instead of downloading them from remote URLs.

This is enabled by providing a directory path via the new setLocalOptimizationConfigDir function, which helps in environments where local configuration files are preferred over network requests.

mu-hun added 4 commits April 7, 2026 15:00
Allow loading optimization percentages and filter stats from a local directory instead of downloading them from remote URLs.
This is enabled by providing a directory path via the new `setLocalOptimizationConfigDir` function, which helps in environments where local configuration files are preferred over network requests.
The `percent.json` endpoint does not require an API key for access,
so the `key` query parameter has been removed from `OPTIMIZATION_PERCENT_URL`.

The key remains in `getOptimizationStatsUrl`, as `stats.json` requires
authentication.
Match FilterRegistry's dependency versions to resolve Yarn 4 portal:
link failures caused by sub-dependency version conflicts in the
parent project.
Use a nested `filters/{filterId}/stats.json` path

A flat `{filterId}_stats.json` file is my typo
@mu-hun mu-hun force-pushed the local_optimization_config branch 2 times, most recently from e6c8f8e to 21cfd8e Compare April 7, 2026 09:21
GitHub shorthand installation does not trigger a build step,
so dist/ must be present in the branch directly.

This is a temporary measure for the PR review period.
dist/ should be removed from the branch before merging,
and the version should be published to npm instead.
@mu-hun mu-hun force-pushed the local_optimization_config branch from 21cfd8e to 09e1aea Compare April 7, 2026 09:29
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.

1 participant