Skip to content

Feature: Enable schema management check via config for JaversMongoRepositories #1260

@egasimov

Description

@egasimov

Is your feature request related to a problem? Please describe.
When using Javers in projects backend by MongoDB, javers-mongo-repository module trying to create indexes on the collection. (via calling ensureSchema()). In our projects, the app-user usually do not have such permissions(create index) on database.
These internal used collections and indexes are considered to be created by Ops team.

Describe the solution you'd like
I would like to javers-mongo-repository module having option to configure schema management like javers-sql-repository module did

Describe alternatives you've considered
An alternative to create CustomMongoSchemaManager that extends MongoSchemaManager inject it into where used in library via reflection. But it is no so good option to consider.

Additional context
There is option to configure "enable schema management" in Javers SQL Repository module (see SqlRepositoryConfiguration.java).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions