Skip to content

Add database-level feature gate via application.yaml (INSERT_MERGE) - #430

Merged
em3s merged 7 commits into
mainfrom
feat/issue-429-database-level-features
Jul 19, 2026
Merged

em3s merged 7 commits into
mainfrom
feat/issue-429-database-level-features

Conversation

@em3s

@em3s em3s commented Jul 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a database-level feature gate configured via application.yaml. Infrastructure only — INSERT_MERGE is reserved but not consumed yet (that lands with the #415 rework).

actionbase:
  database-level-features:
    - database: fanin
      features: [INSERT_MERGE]

Closes #429

Changes

  • TableFeature enum with INSERT_MERGE
  • ServerProperties: bind actionbase.database-level-features, expose featuresOf(database)
  • Boot fails on: unknown feature name, duplicate database, invalid database name

How to Test

./gradlew :server:test --tests "com.kakao.actionbase.server.configuration.ServerPropertiesTest"

AI Assistance

  • This PR was written largely with AI assistance.
    • Tool / model: Claude Code (fable 5)

@em3s
em3s force-pushed the feat/issue-429-database-level-features branch from 6e94e8e to 1ef81fb Compare July 19, 2026 12:50
@em3s
em3s changed the base branch from feature/add-v3-upsert to main July 19, 2026 12:50
em3s and others added 4 commits July 19, 2026 22:10
actionbase.database-level-features maps databases to TableFeature sets.
Unknown feature names and duplicate database entries fail at boot;
effective entries are logged at startup.

Co-Authored-By: Claude Fable 5 <[email protected]>
A typo'd database entry would otherwise silently never match, unlike
enum typos which already fail binding.

Co-Authored-By: Claude Fable 5 <[email protected]>
@em3s
em3s marked this pull request as ready for review July 19, 2026 13:20
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels Jul 19, 2026
@em3s em3s changed the title database 단위 feature 게이트 추가 (application.yaml, INSERT_MERGE) Add database-level feature gate via application.yaml (INSERT_MERGE) Jul 19, 2026
@em3s

em3s commented Jul 19, 2026

Copy link
Copy Markdown
Contributor Author

Optimistic

@em3s
em3s merged commit c78d4cf into main Jul 19, 2026
2 checks passed
@em3s
em3s deleted the feat/issue-429-database-level-features branch July 19, 2026 13:46
em3s added a commit that referenced this pull request Jul 20, 2026
Rework #430's database-keyed config into a feature-centric, scope-targeted
shape backed by a general FeatureFlags. Infrastructure only — INSERT_MERGE is
reserved but not consumed yet.

- Feature (sealed) + MutationFeature (renamed from TableFeature): a feature is
  named by its nature, not its target
- FeatureFlags (core): folds the baseline once into an immutable
  database -> features map; has(scope, feature) is allocation-free
- ServerProperties: bind actionbase.feature-flags with the scope.databases
  shape; boot fails on unknown or duplicate feature
- GraphConfig / Graph: thread the baseline; Graph exposes featureFlags

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@em3s em3s self-assigned this Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Database-level feature management via application.yaml

1 participant