Repository navigation
fix(hosted): stop defaulting regression names to refund_limit_regression (#36) - #166
Open
RupeshMaster wants to merge 1 commit into
Open
RupeshMaster wants to merge 1 commit into
RupeshMaster wants to merge 1 commit into
Conversation
Hosted named every saved regression after the refund demo, whatever rule was violated. - API: RegressionSaveRequest.name defaults to discovered_violation. - UI: the campaign and exploit pages suggest <rule id>_regression for the candidate's first violated rule; the exploit page's name field stays editable and falls back to the suggestion when left blank. Closes CodewithJha#36
|
@RupeshMaster is attempting to deploy a commit to the priyanshu's projects Team on Vercel. A member of the Team first needs to authorize it. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #36. Hosted named every saved regression
refund_limit_regression, whatever rule was violated.RegressionSaveRequest.namedefaults todiscovered_violation. No schema change beyond the default string.defaultRegressionName(candidate)inapps/web/src/lib/api.tsreturns<rule id>_regressionfor the candidate's first violated rule, falling back todiscovered_violation.docs/PRODUCTION_READINESS.mdP3-2 rows updated; the ingest test fixture no longer uses the old name.The issue is assigned to @CodewithJha with no activity since September, so I went ahead; if you already have work in progress on it, feel free to close this.
Type of change
Checklist
Fixes #N) or Discussion when applicableuv run pytest tests/unit -q)Test plan
uv run --locked ruff check→ all checks passeduv run pytest tests/unit tests/integration tests/reliability -q→ 848 passed. Run locally on Python 3.12 only (macOS,OPENAI_API_KEYunset); 3.11 is left for CI.examples/openai_support_agent,mutiny --help,mutiny init,mutiny runwithMUTINY_SAMPLE_OFFLINE=1and emptyOPENAI_API_KEY/FEATHERLESS_API_KEY→ violation found, regression saved.npm ci,npm run lint,npx tsc --noEmit,npm test(3 passed, one new) andnpm run build. Run on Node 26, not CI's Node 20.tests/unit/test_package_release.pypassed as part of the unit run;./scripts/verify_release_artifacts.shnot run.Extra, in headless Chromium against a local API and
next devwith a demo campaign:refund_limit_regression(derived from the violated rule), and saving with the field blanked still stores that name;refund_limit_regression;POST /api/candidates/{id}/regressionwith{}storesdiscovered_violation.The demo only violates
refund_limit, so the browser run cannot show a different rule; the new web test covers that (delete_requires_confirm_regression).Notes