Merged
Conversation
|
@shafeeqd959 Can you fix the GH workflow |
netrajpatel
requested changes
Jul 16, 2025
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new CLI plugin for query-based exports, including test scaffolding, core export logic, utilities, configuration, and documentation updates.
- Adds test configuration and runner (
test/tsconfig.json,test/run.test.js, Mocha configs) - Implements core query export components (
QueryParser,QueryExporter,ModuleExporter) and related utility modules - Updates CLI command, package manifest, README, and CI workflows
Reviewed Changes
Copilot reviewed 38 out of 46 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| test/tsconfig.json | Adds TypeScript config for tests |
| test/run.test.js | Implements integration test runner with file inclusion |
| src/utils/file-helper.ts | Provides file read/write utilities |
| src/utils/logger.ts | Implements logging with Winston |
| src/utils/query-parser.ts | Parses and validates JSON queries |
| src/core/query-executor.ts | Coordinates the query-based export flow |
| src/core/module-exporter.ts | Wraps the Contentstack export command invocation |
| src/commands/cm/stacks/export-query.ts | Defines the CLI command entry point |
| README.md | Documents plugin usage and features |
| package.json | Declares plugin metadata, dependencies, scripts, and flags |
| .nycrc.json | Configures coverage reporting (typo) |
Comments suppressed due to low confidence (1)
README.md:77
- The path
src/config/export-defaults.jsondoes not match the actual file (src/config/export-config.json). Update the documentation to point to the correct file.
The plugin includes a default configuration file at `src/config/export-defaults.json`:
aman19K
requested changes
Jul 17, 2025
Contributor
Author
this workflow will be fixed once we made the repo public |
cs-raj
previously approved these changes
Jul 21, 2025
aman19K
previously approved these changes
Jul 21, 2025
netrajpatel
previously approved these changes
Jul 21, 2025
ba0c63b
Madhuricr
approved these changes
Jul 21, 2025
netrajpatel
approved these changes
Jul 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Query-based Export Plugin for Contentstack CLI
Overview
Introducing a new plugin for Contentstack CLI that enables query-based content export. This plugin allows users to selectively export content types and their dependencies using MongoDB-style queries, improving the flexibility of content migration and backup processes.
Key Features
Implementation Details
@contentstack/cli-cm-export-query)Current Scope
✅ Supported:
❌ Not Yet Supported:
Usage Examples
Testing
Documentation
Future Enhancements
Breaking Changes
None - This is a new plugin that doesn't affect existing functionality
Related Issues
Closes #[issue_number]
Checklist