Skip to content

feat: WIP rbac

feat: WIP rbac #101910

Triggered via pull request October 22, 2024 22:02
@posthog-botposthog-bot
synchronize #20864
rbac
Status Failure
Total duration 31m 55s
Artifacts

ci-backend.yml

on: pull_request
Determine need to run backend checks
9s
Determine need to run backend checks
Matrix: async-migrations
Matrix: django
Python code quality checks
2m 50s
Python code quality checks
Validate Django and CH migrations
3m 28s
Validate Django and CH migrations
Calculate running time
0s
Calculate running time
Fit to window
Zoom out
Zoom in

Annotations

17 errors and 36 warnings
Python code quality checks: ee/models/rbac/access_control.py#L28
ForeignKey is nullable but its generic get type parameter is not optional
Python code quality checks: ee/models/rbac/access_control.py#L37
ForeignKey is nullable but its generic get type parameter is not optional
Python code quality checks: ee/models/rbac/access_control.py#L45
ForeignKey is nullable but its generic get type parameter is not optional
Python code quality checks: posthog/rbac/user_access_control.py#L221
"_ST" has no attribute "organization_id"
Python code quality checks: ee/billing/billing_manager.py#L141
Cannot resolve keyword 'distinct_id' into field. Choices are: access_controls, explicit_team_membership, id, joined_at, level, organization, organization_id, role_membership, updated_at, user, user_id
Python code quality checks: ee/billing/billing_manager.py#L160
Cannot resolve keyword 'email' into field. Choices are: access_controls, explicit_team_membership, id, joined_at, level, organization, organization_id, role_membership, updated_at, user, user_id
Python code quality checks: posthog/api/organization.py#L135
Argument 1 to "filter_queryset_by_access_level" of "UserAccessControl" has incompatible type "Team_RelatedManager"; expected "QuerySet[Any, Any]"
Python code quality checks: posthog/rbac/test/test_user_access_control.py#L39
"Organization" has no attribute "available_features"; maybe "available_product_features"?
Python code quality checks: posthog/rbac/test/test_user_access_control.py#L67
"Organization" has no attribute "available_features"; maybe "available_product_features"?
Python code quality checks: posthog/rbac/test/test_user_access_control.py#L283
"Organization" has no attribute "available_features"; maybe "available_product_features"?
Determine need to run backend checks
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, dorny/paths-filter@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Python code quality checks
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Validate Django and CH migrations
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Async migrations tests - clickhouse/clickhouse-server:23.12.6.19
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Django tests – Core (persons-on-events on), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (7/10)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Django tests – Core (persons-on-events on), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (10/10)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Django tests – Core (persons-on-events on), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (5/10)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Django tests – Core (persons-on-events on), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (4/10)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Django tests – Core (persons-on-events on), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (8/10)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Django tests – Core (persons-on-events on), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (2/10)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Django tests – Core (persons-on-events on), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (6/10)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Django tests – Core (persons-on-events on), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (9/10)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Django tests – Core (persons-on-events on), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (1/10)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Django tests – Core (persons-on-events on), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (3/10)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Django tests – Core (persons-on-events off), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (9/10)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Django tests – Core (persons-on-events off), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (2/10)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Django tests – Core (persons-on-events off), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (1/10)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Django tests – Core (persons-on-events off), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (8/10)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Django tests – Core (persons-on-events off), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (10/10)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Django tests – Core (persons-on-events off), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (4/10)
No files were found with the provided path: .test_durations. No artifacts will be uploaded.
Django tests – Core (persons-on-events off), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (4/10)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3, actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Django tests – Core (persons-on-events off), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (4/10)
No files were found with the provided path: posthog/tasks/test/__emails__. No artifacts will be uploaded.
Django tests – Core (persons-on-events off), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (3/10)
No files were found with the provided path: .test_durations. No artifacts will be uploaded.
Django tests – Core (persons-on-events off), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (3/10)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3, actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Django tests – Core (persons-on-events off), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (3/10)
No files were found with the provided path: posthog/tasks/test/__emails__. No artifacts will be uploaded.
Django tests – Core (persons-on-events off), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (7/10)
No files were found with the provided path: .test_durations. No artifacts will be uploaded.
Django tests – Core (persons-on-events off), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (7/10)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3, actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Django tests – Core (persons-on-events off), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (7/10)
No files were found with the provided path: posthog/tasks/test/__emails__. No artifacts will be uploaded.
Django tests – Temporal (persons-on-events off), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (1/1)
No files were found with the provided path: .test_durations. No artifacts will be uploaded.
Django tests – Temporal (persons-on-events off), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (1/1)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Django tests – Core (persons-on-events off), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (5/10)
No files were found with the provided path: .test_durations. No artifacts will be uploaded.
Django tests – Core (persons-on-events off), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (5/10)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3, actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Django tests – Core (persons-on-events off), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (5/10)
No files were found with the provided path: posthog/tasks/test/__emails__. No artifacts will be uploaded.
Django tests – Core (persons-on-events off), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (6/10)
No files were found with the provided path: .test_durations. No artifacts will be uploaded.
Django tests – Core (persons-on-events off), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (6/10)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3, actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Django tests – Core (persons-on-events off), Py 3.11.9, clickhouse/clickhouse-server:23.12.6.19 (6/10)
No files were found with the provided path: posthog/tasks/test/__emails__. No artifacts will be uploaded.