Skip to content

fix: project snapshot import exclude list#690

Merged
dorsha merged 4 commits intomainfrom
import-project-snapshot-exclude
Feb 19, 2026
Merged

fix: project snapshot import exclude list#690
dorsha merged 4 commits intomainfrom
import-project-snapshot-exclude

Conversation

@ruvenzx
Copy link
Contributor

@ruvenzx ruvenzx commented Feb 19, 2026

Description

related to
https://github.com/descope/etc/issues/14054

Must

  • Tests
  • Documentation (if applicable)

@ruvenzx ruvenzx requested review from dorsha and shilgapira February 19, 2026 08:11
@ruvenzx ruvenzx self-assigned this Feb 19, 2026
Copilot AI review requested due to automatic review settings February 19, 2026 08:11
@ruvenzx ruvenzx changed the title project snapshot import exclude list chore: project snapshot import exclude list Feb 19, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds an optional Excludes field to the ImportSnapshotRequest struct, allowing users to specify entity types (e.g., "connectors", "flows", "roles") that should be excluded when importing a project snapshot.

Changes:

  • Added Excludes []string field to ImportSnapshotRequest with proper JSON tag and omitempty
  • Updated test to verify the new field is properly serialized in requests
  • Updated README documentation with usage example showing how to exclude entity types

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
descope/types.go Added optional Excludes field to ImportSnapshotRequest struct
descope/internal/mgmt/project_test.go Added test coverage for the new Excludes field and removed extra blank line
descope/internal/mgmt/audit_test.go Changed test values from generic placeholders to specific action names
README.md Updated documentation with example showing how to use the Excludes field

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dorsha dorsha changed the title chore: project snapshot import exclude list fix: project snapshot import exclude list Feb 19, 2026
@dorsha dorsha merged commit e7f2a2e into main Feb 19, 2026
13 checks passed
@dorsha dorsha deleted the import-project-snapshot-exclude branch February 19, 2026 08:29
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.

3 participants