Skip to content

Add iPraktikum GitLab monorepo issue synchronization - #166

Merged
nk-coding merged 6 commits into
mainfrom
feat/ipraktikum-issue-sync
Oct 19, 2026
Merged

nk-coding merged 6 commits into
mainfrom
feat/ipraktikum-issue-sync

Conversation

@spethso

@spethso spethso commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

What changes

Add a dedicated sync-ipraktikum worker for synchronizing a Gropius cohort with one GitLab Free monorepo. In-scope issues enroll automatically, and stable integration identities keep one issue shared across multiple components.

  • Discover components, templates, states, issue types, priorities, assignment roles, and relation types at runtime. Component label aliases such as component/frontend remain independent of stable identities.
  • Synchronize titles, descriptions, ordinary labels, open/closed state, and comments. Workflow labels support coarse GitLab boards while preserving finer Gropius states.
  • Preserve typed assignments and directed relations in editable YAML metadata, with optional projection of one assignee and symmetric native links.
  • Persist reconciliation baselines, receipts, pending writes, identity claims, and recovery state. Conflicting edits or ambiguous create outcomes pause the affected issue rather than creating duplicates.
  • Fix concurrent lazy Graphglue field loading in mutation responses and reloading during label deletion, both exposed by the label creation flow during acceptance testing.

The worker uses the existing core issue services and transaction model. New Kotlin follows four-space formatting; the YAML dependency is declared in the version catalog. The HTTP client closes on application shutdown.

Validation

  • IPRAKTIKUM_INTEGRATION=true ./gradlew :sync-ipraktikum:test :sync-ipraktikum:bootJar :api-public:bootJar :api-internal:bootJar: passed (10 protocol tests and one real Neo4j/MongoDB integration scenario with a stateful GitLab HTTP fixture; none skipped).
  • Integration covers bidirectional creation/updates, idempotency, label metadata and membership, component routing, workflow changes, assignment roles, directed/native relations, comments, and copied-identity rejection/adoption.
  • Local self-hosted GitLab acceptance testing exercised both directions. The committed HTTP label-response regression script passed 100 consecutive checks after the cache fix.
  • git diff --check: passed; the adapter compiles without warnings.

Deployment and limits

Requires the companion login-service token strategy and frontend setup panel, wired through the deployment repository. See sync-ipraktikum/README.md for configuration, recovery, and testing.

This assumes shared cohort visibility and one adapter per cohort. Complete polling scans target cohort-sized repositories; description concurrency is best-effort. Attachment transfer, architectural affects mirroring, and GitLab author impersonation are outside scope. Native exported authorship belongs to the configured token account.

Related PRs

Deployment and merge order · Login service · Frontend

@spethso
spethso requested a review from nk-coding October 18, 2026 15:54
@nk-coding
nk-coding merged commit 4a50b23 into main Oct 19, 2026
1 check passed
@nk-coding
nk-coding deleted the feat/ipraktikum-issue-sync branch October 19, 2026 19:25
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