Skip to content

Prerequisite for rearchitecture - #176

Open
pfongkye wants to merge 3 commits into
mainfrom
feat-architecture-prerequisite
Open

Prerequisite for rearchitecture#176
pfongkye wants to merge 3 commits into
mainfrom
feat-architecture-prerequisite

Conversation

@pfongkye

Copy link
Copy Markdown
Contributor

Prepare Rearchitecturing

  • Fix bug on MR removal by specifying additional project ID to avoid accidental removal of similar MR IDs between different projects
  • Add snapshots and additional tests to minimize regressions when doing refactoring/rearchitecturing

pfongkye and others added 3 commits July 13, 2026 10:07
Review rows were deleted by mergeRequestIid alone, so two projects
sharing an iid would cross-delete each other's reviews on close/merge.
The read counterpart getReviewsByMergeRequestIid is already
project-scoped and the caller already has projectId in scope; only the
delete leaked. This is also a correctness prerequisite before GitHub PR
numbers coexist with GitLab iids.

Also make the sequelize test mock's destroy remove all matching rows
(faithful to real Sequelize) so the regression test is meaningful.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Snapshot the exact chat.postMessage / chat.update payload for open,
closed, merged, approved-in-progress and fully-approved states, driving
buildReviewMessage directly and asserting its return value (nothing is
sent). This is the byte-for-byte regression gate for the upcoming
"pure renderer" refactor, which must keep these payloads identical.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pin the current gitlabUsername -> "<username>@<domain>" per EMAIL_DOMAINS
-> users.lookupByEmail behavior: it queries one email per configured
domain in order, returns the first match and short-circuits, and
resolves to undefined when none match (preserving the graceful 204
path). Domains are derived from CONFIG so the test tracks EMAIL_DOMAINS.
Guards the upcoming SlackUserResolver strategy-chain refactor.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.36%. Comparing base (3f57606) to head (95f3e0d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #176   +/-   ##
=======================================
  Coverage   89.36%   89.36%           
=======================================
  Files         105      105           
  Lines        2295     2295           
  Branches      444      444           
=======================================
  Hits         2051     2051           
  Misses        231      231           
  Partials       13       13           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant