Skip to content

Comments

add api secret#553

Merged
mustafa3rsan merged 2 commits intomainfrom
mixpanel-secret-fix
Feb 23, 2026
Merged

add api secret#553
mustafa3rsan merged 2 commits intomainfrom
mixpanel-secret-fix

Conversation

@mustafa3rsan
Copy link
Contributor

No description provided.

@mustafa3rsan mustafa3rsan changed the title add project secret add api secret Feb 23, 2026
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

3 files reviewed, 4 comments

Edit Code Review Agent Settings | Greptile

project_id=project_id[0],
username=auth_username,
password=auth_password,
project_id=project_id[0] if project_id else None,
Copy link
Contributor

Choose a reason for hiding this comment

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

project_id type mismatch - passing None when str expected

Suggested change
project_id=project_id[0] if project_id else None,
project_id=project_id[0] if project_id else "",
Prompt To Fix With AI
This is a comment left during a code review.
Path: ingestr/src/sources.py
Line: 1548

Comment:
`project_id` type mismatch - passing `None` when `str` expected

```suggestion
            project_id=project_id[0] if project_id else "",
```

How can I resolve this? If you propose a fix, please make it concise.

- `username`: Mixpanel service account username.
- `password`: Mixpanel service account secret. This is the secret associated with the service account.
- `api_secret`: (Optional) Mixpanel project secret. Can be used instead of `username` and `password`. Can be found in the [Access Keys section](https://mixpanel.com/settings/project/) of your project settings.
- `project_id`: The numeric project ID.
Copy link
Contributor

Choose a reason for hiding this comment

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

project_id is required for service account auth but not for API secret auth

Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/supported-sources/mixpanel.md
Line: 18

Comment:
`project_id` is required for service account auth but not for API secret auth

How can I resolve this? If you propose a fix, please make it concise.

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 23, 2026

Additional Comments (2)

ingestr/src/mixpanel/__init__.py
Type signature doesn't allow None but API secret auth doesn't require project_id

    project_id: str | None,
Prompt To Fix With AI
This is a comment left during a code review.
Path: ingestr/src/mixpanel/__init__.py
Line: 15

Comment:
Type signature doesn't allow `None` but API secret auth doesn't require `project_id`

```suggestion
    project_id: str | None,
```

How can I resolve this? If you propose a fix, please make it concise.

ingestr/src/mixpanel/client.py
Type signature doesn't allow None but API secret auth doesn't require project_id

    def __init__(self, username: str, password: str, project_id: str | None, server: str):
Prompt To Fix With AI
This is a comment left during a code review.
Path: ingestr/src/mixpanel/client.py
Line: 9

Comment:
Type signature doesn't allow `None` but API secret auth doesn't require `project_id`

```suggestion
    def __init__(self, username: str, password: str, project_id: str | None, server: str):
```

How can I resolve this? If you propose a fix, please make it concise.

@mustafa3rsan mustafa3rsan merged commit 0c6e52f into main Feb 23, 2026
10 checks passed
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