Skip to content

feat(data-mongo-common): setupSeen flag on UserOnboardingProgress CU-17tkuw61bjw - #2892

Merged
hryhorii-chuhuievets merged 7 commits into
mainfrom
feature/CU-17tkuw61bjw
Nov 2, 2026
Merged

hryhorii-chuhuievets merged 7 commits into
mainfrom
feature/CU-17tkuw61bjw

Conversation

@hryhorii-chuhuievets

@hryhorii-chuhuievets hryhorii-chuhuievets commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

ClickUp task: CU-17tkuw61bjw BE: "setup wizard seen" flag on UserOnboardingProgress

What

Two additive fields on the UserOnboardingProgress Mongo document (openframe-data-mongo-common):

  • setupSeen: boolean (default false) - the user has seen the setup wizard's last screen ("You are ready to go" / "Everything is set up").
  • setupSeenAt: Instant (null while not seen).

No backfill: records written before this change read as false / null, which the frontend already covers through tourDialogId, completed or skipped.

Why

Today the server has no trace that an admin saw that screen, so it comes back on another browser or device, after clearing browser data, or when the Mingo tour never got started. The flag has to live on the server, per user and tenant.

Downstream

The saas-tenant PR (same change set) adds the GraphQL fields, the idempotent markUserOnboardingSetupSeen mutation and the side effects in setUserOnboardingTourDialog, resetUserOnboarding and the dev/QA skipOnboarding. It pins this PR's snapshot until the lib is released. No saas-lib or saas-shared change.

Change-Set: feature-cu-17tkuw61bjw

🤖 Generated with Claude Code

Change set flamingo-stack/openframe-oss-lib#2892: these pull requests are one change, reviewed together.

Linked work

  • …and 2 linked items not shown here

Linked by the Depends-On / Change-Set lines in these descriptions; this block is maintained by the hub.

…UserOnboardingProgress

The setup wizard's last screen must be shown once per user and tenant, not once per
browser, so the server keeps the flag. Default false / null, no backfill.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

🦩 Flamingo Code Review

✅ Tests and checks passed on this commit (2 lanes).

Nothing new to review. No commits were added since the last review.

Advisory: findings do not block the merge.


Review again. New commits are not reviewed until you ask:

  • Review the new commits: only what was pushed since this review
  • Review the whole diff again: everything, including what was already reviewed

Or comment @flamingo-review (new commits) or @flamingo-review full (everything). Add the flamingo-review-always label to review every push.

Started 2026-11-02 15:42 UTC · updated 2026-11-02 15:42 UTC · workflow run

Last verdict (unchanged since the last review)

❌ Tests and checks failed on this commit: Trivy. What each printed is in the Tests and mutation section.

2 findings: 🔴 1 action required · 🟠 0 recommended · 🔵 1 informational

Advisory: findings do not block the merge.

Checks: missing-test ×1 · 1 defect outside any rule

Files Lines 🔴 Action required 🟠 Recommended 🔵 Informational
2 +15 / -15 1 0 1

🔴 Action required (1)

# Where Finding Flagged by
1 pom.xml:48 Removal of pinned guava/snappy-java CVE overrides reopens two HIGH CVEs Review

🔵 Informational (1)

# Where Finding Flagged by
2 UserOnboardingProgress.java:27 UserOnboardingProgress is changed and no test references it (Minor) missing-test Tool-checked

✅ What this change does well

  • UserOnboardingProgress.java documents the new setupSeen/setupSeenAt fields with clear invariants (set-by, cleared-by, sentinel semantics) satisfying OPENFRAM-010-6.
  • The new setupSeen field correctly keeps the Lombok quad (@‍Data @‍Builder @‍NoArgsConstructor @‍AllArgsConstructor) intact per OPENFRAM-001-6/OPENFRAM-003-3.

Inline comments: 2 new

2 possible problems checked and ruled out, 1 after reading more of the repository
  • openframe-data-mongo-common/src/main/java/com/openframe/data/document/onboarding/UserOnboardingProgress.java:65 New Javadoc-style field comments added on UserOnboardingProgress: The added class-level Javadoc block (lines with p tags) and the setupSeen field's multi-line /** */ comment both violate OFJAVA-008's CI-enforced no-Javadoc-block rule, which explicitly forbids multi-line docstrings and class-level Javadocs beyond one short why-line.
  • openframe-data-mongo-common/src/main/java/com/openframe/data/document/onboarding/UserOnboardingProgress.java:65 setupSeen sentinel/lifecycle semantics documented as Javadoc block instead of concise comment: duplicate of candidate 2
🤖 Prompt for AI agents: fix every finding
Address these code-review findings on pull request #2892 of flamingo-stack/openframe-oss-lib, most important first.
For each one, make the minimal change that resolves it and do not refactor unrelated code.
If you can show a finding is wrong, skip it and say why.

1. [Action required] pom.xml:48 Removal of pinned guava/snappy-java CVE overrides reopens two HIGH CVEs
   The diff removes the `guava.version` (33.7.2-jre) and `snappy-java.version` (1.1.10.12) properties and their matching `<dependencyManagement>` entries. The removed comments explicitly stated these were pinned past CVE-2026-108106/CVE-2026-93451 (snappy-java, transitive of kafka-clients) and CVE-2026-102554 (guava, transitive of grpc/google-cloud-storage). Removing the pin does not remove the transitive dependency — kafka-clients, grpc, and google-cloud-storage still pull in whatever older, vulnerable versions of snappy-java/guava their own poms declare, since nothing in this diff excludes them. This silently reintroduces the vulnerable versions across every downstream module that depends on kafka-clients/grpc/google-cloud-storage (directly or transitively) via this parent POM's dependencyManagement.
2. [Informational] openframe-data-mongo-common/src/main/java/com/openframe/data/document/onboarding/UserOnboardingProgress.java:27 UserOnboardingProgress is changed and no test references it
   No test file in this checkout (1125 scanned) mentions `UserOnboardingProgress`. Add or extend a test before merging.

Next: commit a suggestion, or hand a comment's prompt to your coding agent. React 👍 on a finding that helped and 👎 on one that is wrong: the reviewer learns from both.

Review again. New commits are not reviewed until you ask:

• Review the new commits: only what was pushed since this review
• Review the whole diff again: everything, including what was already reviewed

Or comment @flamingo-review (new commits) or @flamingo-review full (everything). Add the flamingo-review-always label to review every push.

Started 2026-11-02 15:12 UTC · updated 2026-11-02 15:14 UTC · workflow run

🧪 Tests and mutation

Tests per lane

Language Project Command Status Counts Time
Java (Maven) . mvn -B -s ./.mvn/settings.xml test -pl openframe-data-mongo-common -am ✅ passed 4 run, 0 failures 29.9 s

Mutation testing

This build has no PIT plugin, so each module is mutated from the command line with pit-adhoc.sh, changing nothing in the repository.

Module Classes Whole classes New lines only Time
openframe-data-mongo-common UserOnboardingProgress Gap: the module has no tests, so PIT was not run (every mutant would survive)

hryhorii-chuhuievets and others added 2 commits November 2, 2026 14:22
… in a library

oss-lib builds no images and runs no Trivy gate, and a library's dependencyManagement
is never applied when a consumer resolves it; the real pins live in the service repos.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@hryhorii-chuhuievets hryhorii-chuhuievets added the build Run the PR builds and publish snapshots (Java, npm preview); stays on until removed label Nov 2, 2026
@hryhorii-chuhuievets hryhorii-chuhuievets removed the build Run the PR builds and publish snapshots (Java, npm preview); stays on until removed label Nov 2, 2026
@hryhorii-chuhuievets

Copy link
Copy Markdown
Contributor Author

@flamingo-review

Comment thread pom.xml Resolved
Dropping them trips the Flamingo reviewer's Trivy lane (HIGH advisories on the
transitive guava / snappy-java). The removal already travels with #2935, where the
gate is to be settled with its owners; this PR stays on main's dependency state.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@hryhorii-chuhuievets

Copy link
Copy Markdown
Contributor Author

@flamingo-review

@hryhorii-chuhuievets

Copy link
Copy Markdown
Contributor Author

@flamingo-review

@hryhorii-chuhuievets
hryhorii-chuhuievets added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit 18dcceb Nov 2, 2026
19 checks passed
@hryhorii-chuhuievets
hryhorii-chuhuievets deleted the feature/CU-17tkuw61bjw branch November 2, 2026 16:48
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.

3 participants