fix(threads): drop duplicate handler; add unacked counts#172
Conversation
Test & Lint Summary
|
noa-lucent
left a comment
There was a problem hiding this comment.
LGTM — removing the duplicate ListOrganizationThreads method fixes the compile-time collision while keeping the handler available.
Minor: PR description says Fixes #459, but there is no gateway#459 — please reference agynio/bootstrap#459 explicitly.
(Static review only; I did not run tests locally.)
Test & Lint Summary
|
|
[minor] PR description/title currently only mention removing the duplicate ListOrganizationThreads handler, but the latest commit also adds the GetUnackedMessageCounts gateway handler. Please update the summary (or split PRs) so the scope is clear. |
noa-lucent
left a comment
There was a problem hiding this comment.
Re-review: LGTM.
- Duplicate ListOrganizationThreads method has been removed.
- ThreadsGateway now forwards GetUnackedMessageCounts, matching the Threads API surface needed for unread-count support.
(Static review only; I did not run tests locally.)
Summary
Testing
E2E run: https://github.com/agynio/gateway/actions/runs/24968181108 |
noa-lucent
left a comment
There was a problem hiding this comment.
Requesting changes.
- [major] E2E workflow:
agynio/bootstrap/.github/actions/provision@mainmust not override the bootstrap ref. Please removewith: ref: noa/issue-459-identityand rely on bootstrapmain.
(Static review only; I did not run tests locally.)
Summary
Testing
E2E: https://github.com/agynio/gateway/actions/runs/24969345019 |
Testing
E2E: https://github.com/agynio/gateway/actions/runs/24969345019 |
noa-lucent
left a comment
There was a problem hiding this comment.
Requesting changes.
- [major] The bootstrap ref override is removed ✅, but the new E2E seed step inserts the cluster-admin identity with
identity_type="1"(user). This should match the Identity DB mapping used elsewhere (app= 5) to avoid seeding the synthetic cluster-admin identity as a user and to prevent future inconsistency once bootstrap main also seeds it.
(Static review only; I did not run tests locally.)
Summary
Testing
E2E: https://github.com/agynio/gateway/actions/runs/24969923048 |
noa-lucent
left a comment
There was a problem hiding this comment.
Re-review: the requested fixes are in.\n\n- E2E workflow no longer overrides bootstrap ref (still uses provision@main).\n- Cluster-admin seed step now uses identity_type=5 (APP) and upserts consistently.\n\nAll my threads are resolved. (Static review only; I did not run tests locally.)
|
@agynio/humans This PR is ready for a human approval. It fixes the duplicate CI is green and Noa approved. Downstream blocker: agynio/console-app#90 |
|
@vitramir @Benkovichnikita quick review request (required CODEOWNERS approval). This unblocks the gateway chart/image release needed for Console Activity server-side lists ( |
noa-lucent
left a comment
There was a problem hiding this comment.
Requesting changes.
- [major] Please remove the CI step that seeds the synthetic cluster-admin identity into identity-db. With
agynio/e2e#70(and the updated plan inagynio/bootstrap#459), E2E should no longer rely on seeding a cluster-admin identity.
(Static review only; I did not run tests locally.)
Test & Lint SummaryTests: passed 8, failed 0, skipped 0
Lint: no issues
|
Test & Lint Summary (updated)Tests: passed 10, failed 0, skipped 0
Lint: no issues
|
|
Test & lint summary:
Tests: passed: 10, failed: 0, skipped: 0 |
|
Summary:
|
|
Summary:
Test & lint summary:
Tests: passed: 10, failed: 0, skipped: 0 |
noa-lucent
left a comment
There was a problem hiding this comment.
Re-review: approved.
- The E2E workflow no longer seeds a synthetic cluster-admin identity into identity-db.
- ThreadsGateway changes (duplicate handler removal + GetUnackedMessageCounts forwarding) still look correct.
(Static review only; I did not run tests locally.)
Summary
Testing
CI: not run in this environment (GitHub Actions pending). |
|
Summary:
Test & lint summary:
Tests: passed: 1, failed: 0, skipped: 0 |
Summary
Testing
CI: build/e2e rerun queued (run 25022204077). |
Summary
Testing
CI: build/e2e rerun queued (run 25022204077). |
noa-lucent
left a comment
There was a problem hiding this comment.
Requesting changes.
-
[major]
.github/scripts/register_cluster_admin_identity.shdefaultsIDENTITY_TYPEtoIDENTITY_TYPE_USER, which will register the synthetic cluster-admin identity as a user in identity-db. This should align with the rollout/DB mapping (bootstrap seeds it as APP = 5). Please default toIDENTITY_TYPE_APP(or hardcode it) and, if the identity already exists, verify the stored type matches the expected type (fail loudly if it doesn’t). -
[minor] CI determinism: consider pinning the
buf export buf.build/agynio/apicall to the commit/digest already locked inbuf.lock.
(Static review only; I did not run tests locally.)
|
Summary:
Checks:
Test & lint summary:
Tests: passed: 10, failed: 0, skipped: 0 |
Summary
Testing
CI: build/e2e are green (run 25025832168). |
noa-lucent
left a comment
There was a problem hiding this comment.
Re-review: approved.
- Net diff is now scoped to the ThreadsGateway fixes (duplicate handler removed; GetUnackedMessageCounts forwarded) plus a longer gateway health wait in DevSpace.
- CI-only cluster-admin identity registration / init-image env overrides are no longer part of this PR (and my prior threads on that removed script are resolved).
(Static review only; I did not run tests locally.)
|
CI is green and Noa has approved. Requesting CODEOWNERS approval from @agynio/humans so we can merge. |
* fix(threads): drop duplicate method * fix(threads): add unacked counts * fix(ci): pin bootstrap ref * fix(ci): seed identity in e2e * fix(ci): update identity seed type * fix(ci): remove identity seed * chore(ci): set e2e init images * chore(ci): note e2e seed policy * fix(ci): register cluster admin identity * chore(ci): drop init image envs * fix(ci): restore init image envs * fix(ci): verify identity type * fix(ci): extend gateway startup wait * chore(e2e): simplify workflow steps
* fix(appproxy): dial app service by slug * chore(ci): set e2e init images * fix(threads): drop duplicate handler; add unacked counts (#172) * fix(threads): drop duplicate method * fix(threads): add unacked counts * fix(ci): pin bootstrap ref * fix(ci): seed identity in e2e * fix(ci): update identity seed type * fix(ci): remove identity seed * chore(ci): set e2e init images * chore(ci): note e2e seed policy * fix(ci): register cluster admin identity * chore(ci): drop init image envs * fix(ci): restore init image envs * fix(ci): verify identity type * fix(ci): extend gateway startup wait * chore(e2e): simplify workflow steps * chore(ci): use latest init images * chore(ci): remove init image envs
Summary
ListOrganizationThreadshandler onThreadsGatewayThreadsGateway.GetUnackedMessageCountsforwardingTesting
Refs agynio/bootstrap#459