Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect record summary displayed after editing a FK cell which references a non-PK cell #4299

Open
seancolsen opened this issue Mar 4, 2025 · 0 comments
Labels
ready Ready for implementation type: bug work: frontend Related to frontend code in the mathesar_ui directory
Milestone

Comments

@seancolsen
Copy link
Contributor

Steps to reproduce

  1. Begin with the following sample data:

    drop table if exists products cascade;
    create table products (
      id int primary key generated always as identity,
      qr_code uuid default gen_random_uuid() unique,
      name text not null
    );
    insert into products (name) values ('table'), ('chair');
    
    drop table if exists reviews;
    create table reviews (
      id int primary key generated always as identity,
      product uuid references products (qr_code),
      notes text
    );
    insert into reviews (product, notes) values
    ((select qr_code from products where name = 'table'), 'Awesome');
  2. Open the reviews table page

    Image

  3. Edit the product cell, selecting the "chair" record

    Image

  4. Expect to see a record summary of "chair"

    Image

  5. Instead, observe a UUID record summary

    Image

  6. Click the Refresh button inside Mathesar, and observe a record summary of "chair" as expected.

@seancolsen seancolsen added ready Ready for implementation type: bug work: frontend Related to frontend code in the mathesar_ui directory labels Mar 4, 2025
@seancolsen seancolsen added this to the Backlog milestone Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready Ready for implementation type: bug work: frontend Related to frontend code in the mathesar_ui directory
Projects
None yet
Development

No branches or pull requests

1 participant