Repository navigation
Bring GitBook docs in line with 6.8.0 - #3434
Merged
Merged
Conversation
Frontend guides: document Thompson Sampling scaling factor, restrictions, priors and reward/replay cards; fix experiment start requirements, state names (Completed), Factorial availability, export menu, inclusion lists, glossary, feature flag exposures, segment global excludes, and the experiment import example. Installation: Node from .nvmrc (26.10.0), docker compose with singleContainerApp-docker-compose.yml, repo-root-relative steps, optional Google auth, CONTROLLERS example, removed dead frontend toggles, updated troubleshooting and contributing pages; delete orphaned includes. API reference: drop /clearDB, add /api + header intro, fix auth env var names and headers, rewrite caching endpoint docs, fix metrics examples, note stale ERD; delete unused v5 openapi.json. Fix root README quick-start link. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n usage Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Swagger JSDoc in ExperimentClientController.v6.ts had drifted from the
validators and return values. Documentation-only; no runtime change.
- init: arbitrary group/workingGroup records, both optional, unknown
fields rejected; no 404 (works for new users)
- groupmembership/workinggroup: real {id, group} / {id, workingGroup}
responses
- mark: site required, status enum, uniquifier/clientError,
assignedCondition.id/experimentId; real stored-record response
- assign: context required, empty array allowed, assignedFactor
- log: valid required placement, string|number attributes, flat
log-row response
- useraliases: required response field is aliases
- reward: 500 possible with awaitResult=true
- clearDB: real /v6/clearDB path, admin demo utility, 200 message
when demo mode is off
- 400/404 descriptions say what triggers them
Regenerated gitbook/.gitbook/assets/upgrade-api-6.8-spec.json with
swagger-jsdoc using the backend's loader config.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Delete "Inclusion and Exclusion" and "Exporting Experiment Data and Design" pages (out of date and redundant), their SUMMARY entries and their screenshots; repoint the links that referenced them - Replace the segment and feature flag list screenshots with list-users.png and ff-include-users.png - Retake the Thompson Sampling parameters and reward feedback screenshots Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Experiment guide: exclude lists override include lists, Global Exclude applies to every experiment in the app context, and changing the App Context clears lists and metrics (content from the removed Inclusion and Exclusion page) - Experiment guide: new "Exporting experiment data and design" section (content from the removed export page) - API page: openapi-operation links now load the spec from release/6.8 instead of the deleted test/6-8-gitbook branch Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… screenshot - New upgrade-6.8-erd.png generated from the backend's TypeORM entity metadata (46 tables, 57 foreign keys, grouped by domain); replaces the UpGrade 5.0 ERD on the Data Architecture page - Data Architecture page describes the groups and notation, and notes the three legacy tables migrations create but no code uses - Experiment guide uses add-experiment.png in place of image (35).png, which still showed the old ts_configurable algorithm description Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
danoswaltCL
approved these changes
Dec 2, 2026
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
An audit of the GitBook docs (
gitbook/) against the 6.8.0 code found several pages that were out of date. This PR fixes them, corrects the v6 client API swagger comments and regenerates the spec snapshot from them, and replaces the 5.0 data model diagram.User guides
/batch-assign.scalingFactor.Installation / developer guide
.nvmrc(26.10.0), Docker commands usedocker compose -f singleContainerApp-docker-compose.yml, steps are run from the repo root, and Google sign-in is marked optional (GOOGLE_AUTH_TOKEN_REQUIRED=false).CONTROLLERSexample now includes*Controller.v*.ts, without which/api/v6doesn't load. Removed two frontend toggles that no longer exist.make setuporAUTH_CHECK.release/6.8-style branch names, the Husky checks and theCLIENT_API_COVERAGE.mdrule..gitbook/includessnippets and the unused v5openapi.json.API reference
ExperimentClientController.v6.ts: the swagger comments now match the validators and return values. Comments only; no runtime change.init: any group keys are accepted, both fields are optional, and it never returns 404.groupmembership/workinggroup: the real response shapes.mark:siteis required,statusis an enum, addsuniquifier/clientError, andexperimentIdmoves underassignedCondition.assign:contextis required, an empty array is a valid response, addsassignedFactor.log: the required fields are marked correctly and the response is a flat array of log rows.useraliases: the response field isaliases.reward: a 500 is possible withawaitResult=true.clearDB: the correct path,/v6/clearDB.upgrade-api-6.8-spec.jsonwithswagger-jsdocusing the backend's loader config. The regeneration reproduced the previous snapshot byte-for-byte before these edits, so the diff only contains the comment changes.openapi-operationblocks load the spec fromrelease/6.8instead of the deletedtest/6-8-gitbookbranch./clearDBfrom the page and added a short intro on the/apiprefix, theUser-Idheader and auth.api-authorization.md: correct env var names (CLIENT_API_KEY,GOOGLE_AUTH_TOKEN_REQUIRED,ADMIN_USERS), theBearerheader, the headers table, andPOST /api/setting.caching.md,metrics.md: rewritten or corrected to match the current endpoints and responses.Data architecture
upgrade-6.8-erd.pngis generated from the backend's TypeORM entity metadata: 46 tables and 57 foreign keys, grouped by area. It replaces the UpGrade 5.0 ERD.explicit_group_exclusion,explicit_individual_exclusionandflag_variation.Also
CLAUDE.md: corrected the compose command, the/v6/rewardawaitResultbehaviour and themigration:generateusage.After merge
upgrade-api-6-8OpenAPI spec in GitBook. The API page reads it fromrelease/6.8, which will serve the regenerated spec once this merges.Not verified
postgresrole by default, and the Ubuntu package namedocker-compose-v2./logresponse example inmetrics.md, which was derived from the code rather than captured from a running backend.🤖 Generated with Claude Code