Skip to content

Bug: Can't edit all merchants #296

@DeathCamel58

Description

@DeathCamel58

Before you start (required)

General checklist

  • I have removed personal / sensitive data from screenshots and logs
  • I have searched existing issues and discussions to ensure this is not a duplicate issue

How are you using Sure?

  • I was a paying Maybe customer (hosted version)
  • I use it on PikaPod, Umbrel or similar (VPS included)
  • I am a self-hosted user (local only)

Self hoster checklist

Paying, hosted users should delete this entire section.

If you are a self-hosted user, please complete all of the information below. Issues with incomplete information will be marked as Needs Info to help our small team prioritize bug fixes.

  • Self hosted app commit SHA (find in user menu): 706c3a9
    • I have confirmed that my app's commit is the latest version of Sure
  • Where are you hosting?
    • Render
    • Docker Compose
    • Umbrel
    • PikaPod
    • Other (Dev environment)
    • K8s

Bug description

Unable to edit all merchants. Only family_merchants are editable.

To Reproduce

  1. Go to the simplefin setup page
  2. Setup simplefin
  3. Finish first sync and add an account with transactions
  4. Go to Settings -> Merchants
  5. Click the 3 dots next to a merchant
  6. Click Edit

This yields a 404 on /family_merchants/[id]/edit in the console due to the family_merchants route only attempting to find a family_merchant.

Expected behavior

Should be able to edit any merchant, no matter the source of it.

This should probably be generic, and have a url along the lines of /merchants/[id]/edit, and have the controller search all of the kinds of merchants (maybe just don't filter for FamilyMerchant in the DB).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions