Skip to content

Bring GitBook docs in line with 6.8.0 - #3434

Merged
bcb37 merged 6 commits into
release/6.8from
docs/updates-for-6-8
Dec 2, 2026
Merged

bcb37 merged 6 commits into
release/6.8from
docs/updates-for-6-8

Conversation

@bcb37

@bcb37 bcb37 commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

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

  • Thompson Sampling:
    • Documents the scaling factor (α) and the per-condition priors, which can only be edited while the experiment is Inactive.
    • Adds the restrictions: no Within-Subjects, no switching to or from Thompson Sampling when editing, excluded from /batch-assign.
    • Describes the Reward Feedback and Posterior Distribution Replay cards.
  • Experiment guide:
    • Factorial is marked "Coming soon", start requirements are corrected, the stopped state is called Completed, and Pause Behavior uses the current labels.
    • Include/exclude behaviour (exclusion wins over inclusion, Global Exclude, App Context changes clear lists) and the export options are now in the main guide.
  • Glossary: current state names; adds Thompson Sampling, Prior, Reward, Segment, Feature Flag and Within-subjects.
  • Feature flags and segments: documents exposures and Global Excludes, and updates the list flow.
  • Experiment import example: a single 6.8.0 example JSON, including scalingFactor.
  • Removed pages: "Inclusion and Exclusion" and "Exporting Experiment Data and Design", which were redundant. Their content was folded into the experiment guide.
  • Screenshots: refreshed the Thompson Sampling parameters, reward feedback, Add Experiment, segment list and feature flag include list screenshots.

Installation / developer guide

  • Quick-starts: Node comes from .nvmrc (26.10.0), Docker commands use docker 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).
  • Env var reference: the CONTROLLERS example now includes *Controller.v*.ts, without which /api/v6 doesn't load. Removed two frontend toggles that no longer exist.
  • Troubleshooting: fixed pages that used legacy paths, make setup or AUTH_CHECK.
  • Contributing: references Jenkins (not a GitHub Action), release/6.8-style branch names, the Husky checks and the CLIENT_API_COVERAGE.md rule.
  • Deleted: the orphaned .gitbook/includes snippets and the unused v5 openapi.json.
  • Root README: fixed the quick-start link.

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: site is required, status is an enum, adds uniquifier/clientError, and experimentId moves under assignedCondition.
    • assign: context is required, an empty array is a valid response, adds assignedFactor.
    • log: the required fields are marked correctly and the response is a flat array of log rows.
    • useraliases: the response field is aliases.
    • reward: a 500 is possible with awaitResult=true.
    • clearDB: the correct path, /v6/clearDB.
  • Spec snapshot: regenerated upgrade-api-6.8-spec.json with swagger-jsdoc using 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.
  • API page:
    • The openapi-operation blocks load the spec from release/6.8 instead of the deleted test/6-8-gitbook branch.
    • Removed /clearDB from the page and added a short intro on the /api prefix, the User-Id header and auth.
  • api-authorization.md: correct env var names (CLIENT_API_KEY, GOOGLE_AUTH_TOKEN_REQUIRED, ADMIN_USERS), the Bearer header, the headers table, and POST /api/setting.
  • caching.md, metrics.md: rewritten or corrected to match the current endpoints and responses.

Data architecture

  • New diagram: upgrade-6.8-erd.png is generated from the backend's TypeORM entity metadata: 46 tables and 57 foreign keys, grouped by area. It replaces the UpGrade 5.0 ERD.
  • Legacy tables: the page notes three tables that the migrations create and never drop, but that no code uses: explicit_group_exclusion, explicit_individual_exclusion and flag_variation.

Also

  • Root and backend CLAUDE.md: corrected the compose command, the /v6/reward awaitResult behaviour and the migration:generate usage.

After merge

  • Refresh the upgrade-api-6-8 OpenAPI spec in GitBook. The API page reads it from release/6.8, which will serve the regenerated spec once this merges.
  • Once 6.8.0 is tagged, consider pointing the spec URL at the tag so the 6.8 page stays fixed to that release.

Not verified

  • The Jenkins release pipeline's actual name. The docs say "the Jenkins release pipeline".
  • Two install details: that Postgres.app creates a postgres role by default, and the Ubuntu package name docker-compose-v2.
  • The /log response example in metrics.md, which was derived from the code rather than captured from a running backend.

🤖 Generated with Claude Code

bcb37 and others added 6 commits November 30, 2026 15:52
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>
@bcb37
bcb37 merged commit a6b57a1 into release/6.8 Dec 2, 2026
7 checks passed
@bcb37
bcb37 deleted the docs/updates-for-6-8 branch December 2, 2026 19:03
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.

2 participants