Skip to content

refactor: remove v1_enabled compatibility surface - #215

Draft
saurya wants to merge 3 commits into
remove-frontend-v1-gatesfrom
remove-v1-enabled-compatibility
Draft

refactor: remove v1_enabled compatibility surface#215
saurya wants to merge 3 commits into
remove-frontend-v1-gatesfrom
remove-v1-enabled-compatibility

Conversation

@saurya

@saurya saurya commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

HUMAN:

  • A human has tested these changes.

AGENT:
OpenHands


Why

After all conversation behavior moved to V1, v1_enabled remained as an inactive compatibility surface across settings, organization APIs, persistence models, frontend types, and Slack conversation records. Keeping it implied a supported V0 mode that no longer exists.

Summary

  • Remove DEFAULT_V1_ENABLED and all runtime defaulting/propagation.
  • Remove v1_enabled from settings and organization API/frontend models.
  • Remove the unused Slack conversation flag.
  • Add migration 150 to drop the three obsolete database columns.
  • Remove flag-specific fixtures, mocks, and tests.
  • Preserve historical migrations 083, 086, and 089 unchanged.

No false/null backfill is included; the obsolete columns are dropped directly.

Issue Number

N/A

How to Test

  • cd frontend && npm test -- __tests__/components/features/home/new-conversation.test.tsx __tests__/components/features/home/task-card.test.tsx __tests__/components/modals/skills/skill-modal.test.tsx __tests__/hooks/mutation/use-create-conversation.test.tsx __tests__/hooks/query/use-organizations.test.tsx __tests__/routes/app-settings.test.tsx __tests__/routes/llm-settings.test.tsx src/routes/device-verify.test.tsx
  • cd frontend && npm run lint
  • cd frontend && npm run build
  • pre-commit run --config ./dev_config/python/.pre-commit-config.yaml
  • Python syntax compilation and migration upgrade/downgrade operation assertions passed.

The affected backend pytest suites could not start in the current environment because the enterprise-only python-keycloak dependency is not installed. Repository pre-commit, Ruff, MyPy, frontend tests, lint, and build all passed.

Video/Screenshots

Not included; this removes inactive compatibility fields without changing rendered layout.

Type

  • Bug fix
  • Feature
  • Refactor
  • Breaking change
  • Docs / chore

Notes

Stacked on #214, which is stacked on #213. Audit item 3 (data backfill) is intentionally excluded.

This PR was created by an AI agent (OpenHands) on behalf of the user.


Enterprise server image for this PR:

ghcr.io/openhands/enterprise-server:sha-6c75036

Co-authored-by: openhands <openhands@all-hands.dev>
@github-actions

Copy link
Copy Markdown

⚠️ This PR contains migrations. Please synchronize before merging to prevent conflicts.

@saurya saurya changed the title Remove v1_enabled compatibility surface refactor: remove v1_enabled compatibility surface Aug 20, 2026
@github-actions github-actions Bot added the type: refactor Code refactoring label Aug 20, 2026
@github-actions

github-actions Bot commented Aug 20, 2026

Copy link
Copy Markdown

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  enterprise/integrations/slack
  slack_view.py 210
  enterprise/server/routes
  org_models.py
  enterprise/storage
  org.py
  org_store.py 119-121
  saas_settings_store.py 429-430
  slack_conversation.py
  user_settings.py
  user_store.py 131-132, 349-352, 1177-1179
  openhands/app_server/settings
  file_settings_store.py 38-42
  settings_models.py
Project Total  

This report was generated by python-coverage-comment-action

openhands-agent and others added 2 commits August 25, 2026 00:53
Co-authored-by: openhands <openhands@all-hands.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: refactor Code refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants