Skip to content

feat: add default journal store name constant - #3

Open
davidfrigolet wants to merge 1 commit into
masterfrom
feat/journal-store-default-constant
Open

davidfrigolet wants to merge 1 commit into
masterfrom
feat/journal-store-default-constant

Conversation

@davidfrigolet

Copy link
Copy Markdown

Summary

Adds DEFAULT_JOURNAL_STORE_NAME ("flamingockJournalEvents") to CommunityPersistenceConstants, alongside the existing DEFAULT_AUDIT_STORE_NAME/DEFAULT_LOCK_STORE_NAME/DEFAULT_MARKER_STORE_NAME.

Each community audit store in flamingock-java (SQL, DynamoDB, MongoDB sync) currently hardcodes its own copy of the "flamingockJournalEvents" string in a separate local constants class, because this class couldn't be extended for it before now. Adding the constant here lets all three point at one source of truth instead of three independently-maintained literals.

This is part 1 of 3 in centralizing Journal Event persistence (this, a SQL dialect-helper extraction, then flamingock-java wiring). See companion PRs:

Test plan

  • ./gradlew test — passes
  • ./gradlew spotlessCheck — license headers pass
  • Release this module, then bump generalUtilVersion in flamingock-java's companion PR

Adds DEFAULT_JOURNAL_STORE_NAME to CommunityPersistenceConstants, next
to the existing audit/lock/marker store defaults. Each community audit
store (SQL, DynamoDB, MongoDB) previously hardcoded its own copy of the
"flamingockJournalEvents" literal; centralizing it here removes that
triplication and gives the journal store the same single source of
truth the other default names already have.
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.

1 participant