Description
Feature Request
Allow users to explicitly exclude features (e.g. search indexes) in CLI commands.
Q | A |
---|---|
New Feature | yes |
RFC | no |
BC Break | no |
Summary
The CLI commands for managing schema entities (e.g. creating collections and indexes) attempt to process all schema definitions by default. This is problematic for features such as Atlas Search indexes, which have more restrictions.
For example, CreateCommand defines an ordered list (i.e. $createOrder
) for schema entities to process when no command line arguments are specified. If any Atlas Search indexes exist in class metadata, those will be processed by default; however, that may not be supported in a development environment.
If users want to exclude certain DDL operations, they cannot rely on the default order and must manually enumerate all schema entities to process. Consider introducing skip-<feature>
options to allow users to opt out of specific features.
Context: #2630 (comment)