Skip to content

Merge button does nothing & cc.json upload fails with RLS error — duplicate profile cannot be consolidated #47

@B-EtterDigital

Description

@B-EtterDigital

Hey, hitting two issues that together leave me with a duplicate profile I can't fix from the UI.

Context

I have two entries on the leaderboard, both under the GitHub username B-EtterDigital:

  1. Verified profile (rank interview with the best viberankers #32 at time of writing) — $9,426.66 / 5.3B tokens. Has the ✓ checkmark and bio "Cyrill Etter - B-etter.Digital DEV 1". Created previously by signing in via GitHub OAuth on the website.
  2. Unverified duplicate (rank feat: minimal feature set #20 at time of writing) — $12,125.89 / 16.7B tokens. No checkmark, no bio. Created when I ran npx viberank from the CLI.

The CLI submission did not update the verified profile — it created a separate row.

Bug 1: Merge button does nothing

The site exposes a "Merge 2 submissions into one" → "Merge" button for this exact case. Clicking it produces no effect — no merge, no error message, no network response visible to the user.

Bug 2: Website cc.json upload fails with RLS error

To work around bug 1, I tried updating my verified profile directly via the website's cc.json upload (signed in with the same GitHub account that owns the verified profile). Upload fails with:

Failed to create submission: new row violates row-level security policy for table "submissions"

This looks like a Supabase RLS policy that doesn't permit the authenticated insert in this scenario — possibly because an unverified row with the same github_user already exists, or the policy is missing a clause for the OAuth-authenticated update path.

Request

Could you:

  1. Server-side, delete the unverified duplicate row (rank ~20, $12,125.89 / 16.7B) and roll its stats into the verified B-EtterDigital profile (the one with the bio "Cyrill Etter - B-etter.Digital DEV 1").
  2. Fix the RLS policy on submissions so authenticated users can submit/update via the website.
  3. Fix the Merge button so users don't end up stuck like this in the future.

Happy to provide the request ID / network logs from the failed upload if useful — let me know.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions