Skip to content

feat: contacts list segment - #105

Merged
drish merged 3 commits into
mainfrom
feat/contacts-list-segment-id
Apr 1, 2026
Merged

drish merged 3 commits into
mainfrom
feat/contacts-list-segment-id

Conversation

@drish

@drish drish commented Mar 28, 2026

Copy link
Copy Markdown
Member

No description provided.

@drish
drish requested a review from Cisneiros March 28, 2026 20:52

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

2 issues found across 3 files

Confidence score: 2/5

  • There are two high-severity, high-confidence issues that could cause production regressions around contacts list behavior and API permissions, so merge risk is elevated.
  • Most severe: the new segment-based contacts list behavior lacks confirmation that existing production API keys have permission for the new operation, which could break clients using contacts_test.go-covered flows.
  • The AudienceId fallback is not backward compatible: legacy AudienceId values are now routed to the segments endpoint instead of audiences, risking incorrect behavior in contacts.go.
  • Pay close attention to contacts.go and contacts_test.go - backward compatibility and API key permission checks.
Prompt for AI agents (unresolved issues)

Check if these issues are valid β€” if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="contacts_test.go">

<violation number="1" location="contacts_test.go:49">
P1: Custom agent: **API Key Permission Check SDK Methods**

This PR adds segment-based contacts list behavior but does not include the required confirmation that existing production API keys have permission for this new operation (Rule: API Key Permission Check SDK Methods). Add that confirmation before merge to avoid permission failures in production.</violation>
</file>

<file name="contacts.go">

<violation number="1" location="contacts.go:188">
P1: The AudienceId fallback is not actually backward compatible: legacy AudienceId values are now sent to the segments endpoint instead of the audiences endpoint.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Comment thread contacts_test.go Resolved
Comment thread contacts.go Resolved

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

1 issue found across 2 files (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid β€” if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="contacts.go">

<violation number="1" location="contacts.go:184">
P1: Custom agent: **API Key Permission Check SDK Methods**

This change introduces the segments/contacts list operation. Confirm that existing production API keys include permissions for segment contact listing to avoid permission-related failures after deployment.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Comment thread contacts.go Resolved
@drish

drish commented Apr 1, 2026

Copy link
Copy Markdown
Member Author

@cubic-dev-ai

@cubic-dev-ai

cubic-dev-ai Bot commented Apr 1, 2026

Copy link
Copy Markdown

@cubic-dev-ai

@drish I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@drish
drish merged commit 0cdaeda into main Apr 1, 2026
7 checks passed
@drish
drish deleted the feat/contacts-list-segment-id branch April 1, 2026 13:36
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.

2 participants