Skip to content

feat(lists): add crud support#693

Merged
dorsha merged 6 commits intomainfrom
add-lists-crud
Feb 25, 2026
Merged

feat(lists): add crud support#693
dorsha merged 6 commits intomainfrom
add-lists-crud

Conversation

@dorsha
Copy link
Member

@dorsha dorsha commented Feb 25, 2026

Description

https://github.com/descope/etc/issues/14284

Must

  • Tests
  • Documentation (if applicable)

@shuni-bot-dev
Copy link

shuni-bot-dev bot commented Feb 25, 2026

✅ Code review completed successfully

#693

@dorsha dorsha changed the title feat(lists):add crud support feat(lists): add crud support Feb 25, 2026
@dorsha dorsha enabled auto-merge (squash) February 25, 2026 09:05
Copy link

@shuni-bot-dev shuni-bot-dev bot left a comment

Choose a reason for hiding this comment

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

🐕 Shuni's Review

Adds CRUD operations for a new "lists" management resource (create, update, delete, load, import, IP operations, clear).

Sniffed out 2 issues:

  • 1 🟠 HIGH: LoadByName uses path.Join on user-provided name — breaks on names with slashes/special characters
  • 1 🟠 HIGH: Update will panic with nil pointer dereference if request is nil

See inline comments for details. Needs a bath!

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 CRUD (Create, Read, Update, Delete) support for managing lists in Descope projects. Lists can be of three types: "texts", "ips", or "json", and the feature includes specialized IP operations like adding, removing, and checking IP addresses.

Changes:

  • Defined List types and request/response structures in types.go
  • Added List interface with 11 management methods to the SDK
  • Wired the List service into the management service
  • Added API endpoint definitions for all List operations
  • Documented the List management API with usage examples in README

Reviewed changes

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

Show a summary per file
File Description
descope/types.go Defines List data structures, constants for list types, and request/response types
descope/sdk/mgmt.go Declares List interface with methods for CRUD and IP-specific operations
descope/internal/mgmt/mgmt.go Wires the lists service into the management service infrastructure
descope/api/client.go Defines API endpoint paths for all List operations
README.md Adds comprehensive documentation and usage examples for List management

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

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

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


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

@dorsha
Copy link
Member Author

dorsha commented Feb 25, 2026

@copilot open a new pull request to apply changes based on the comments in this thread

Copy link

Copilot AI commented Feb 25, 2026

@dorsha I've opened a new pull request, #694, to work on those changes. Once the pull request is ready, I'll request review from you.

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

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


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

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

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


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

@dorsha dorsha requested a review from aviadl February 25, 2026 12:09
@dorsha dorsha disabled auto-merge February 25, 2026 12:14
@dorsha dorsha merged commit 1034c32 into main Feb 25, 2026
17 checks passed
@dorsha dorsha deleted the add-lists-crud branch February 25, 2026 12:14
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.

4 participants