Skip to content

merge: resolve conflicts with main#37

Merged
flo-bit merged 16 commits into
flo-bit:feat/another-big-refactorfrom
tompscanlan:tompscanlan/pr30-merge-main
May 8, 2026
Merged

merge: resolve conflicts with main#37
flo-bit merged 16 commits into
flo-bit:feat/another-big-refactorfrom
tompscanlan:tompscanlan/pr30-merge-main

Conversation

@tompscanlan
Copy link
Copy Markdown
Collaborator

Resolves the merge conflict between feat/another-big-refactor and main so PR #30 can land cleanly. No behavior changes intended.

Strategy

Main added features (record filter, identity events, follow feed fixes, lex-gen fix, new constellation.ts) in packages/contrail/src/core/* — files PR #30 had collapsed into re-export shims. For each conflict:

  1. Kept PR another big refactor #30's re-export shim in packages/contrail/src/core/*.ts (one-liner export * from "@atmo-dev/contrail-appview").
  2. Ported main's additions into the corresponding implementation file under packages/contrail-appview/src/core/* (or packages/contrail-base/src/* for types.ts and identity.ts, where they actually live post-split).

Notable resolutions

  • packages/contrail-base/src/types.ts — applied main's additions (FeedTargetConfig, ConstellationConfig, buildFeedTargetCaps and friends, CollectionConfig.{timeField, subjectField, recordFilter}, app.bsky.* default discover: false, auto-add follow collection from feeds) on top of PR another big refactor #30's two refactor edits (the community?: unknown declaration-merging change and the spaces?.authority requirement).
  • packages/contrail-base/src/identity.ts — added applyIdentityEvent from main (was originally on packages/contrail/src/core/identity.ts).
  • packages/contrail/tests/persistent.test.ts — kept PR another big refactor #30's vi.mock("@atmo-dev/contrail-base", ...) target (post-split home of identity helpers), added main's applyIdentityEventMock so existing test cases at lines 374/416 continue to work, included both refreshStaleIdentities and applyIdentityEvent in the mock.
  • packages/contrail/src/core/constellation.ts — became a new re-export shim pointing at @atmo-dev/contrail-appview; the actual 181-line implementation copied to packages/contrail-appview/src/core/constellation.ts.

Test status

  • contrail-base, contrail-appview, contrail-authority, contrail-record-host, contrail-community, lexicons: all green.
  • contrail: 314 passed, 7 failed in tests/search.test.ts. These 7 failures pre-exist on plain origin/main and are unrelated to the merge — verified by checking out origin/main and observing the same failures.

Test plan

  • Reviewer confirms the resolution choices match intent (especially the types.ts interleaving).
  • CI passes on the merge branch (or fails only on the same search.test.ts cases that fail on main).
  • If reviewer prefers a different mock-target shape for persistent.test.ts, happy to adjust.

flo-bit and others added 16 commits May 3, 2026 19:29
Main added record-filter, identity-events, follow-feed, and lex-gen-fix
features in `packages/contrail/src/core/*` that PR flo-bit#30 had reorganized
into the new package split. Each conflict resolved by:

1. Keeping PR flo-bit#30's re-export shims in `packages/contrail/src/core/*`
   (these files now `export * from "@atmo-dev/contrail-appview"`)
2. Porting main's additions to the corresponding files in
   `packages/contrail-appview/src/core/*`, which is the new home of the
   actual implementation.

Files re-shimmed:
- backfill.ts, db/records.ts, db/schema.ts, identity.ts, jetstream.ts,
  persistent.ts, router/feed.ts, types.ts

Ports landed in contrail-appview/src/core (or contrail-base where types
and identity helpers actually live):
- backfill.ts, db/records.ts, db/schema.ts, jetstream.ts, persistent.ts,
  router/feed.ts (+1.0K lines from main)
- constellation.ts (new 181-line module)
- contrail-base/src/types.ts: FeedTargetConfig, ConstellationConfig,
  buildFeedTargetCaps, normalizeFeedTarget, feedTargetMaxItems,
  CollectionConfig.{timeField, subjectField, recordFilter}, and
  resolveConfig defaulting `discover: false` for `app.bsky.*`
- contrail-base/src/identity.ts: applyIdentityEvent (handle change handler)

Test mock for `persistent.test.ts` updated to mock
`@atmo-dev/contrail-base` (post-split home of identity helpers) and
include both `refreshStaleIdentities` and `applyIdentityEvent`.

Test status post-merge: 314 passed, 7 failed in
`packages/contrail/tests/search.test.ts` — these 7 failures pre-exist on
plain `origin/main` and are unrelated to the merge.

No behavior changes intended beyond what main and PR flo-bit#30 already deliver.
@flo-bit flo-bit merged commit be89a49 into flo-bit:feat/another-big-refactor May 8, 2026
1 check 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