Skip to content

Rows with a primary key of null or empty string cannot be edited/deleted/viewed #2805

Description

@simonw

Just spotted that if you set the id (primary key) of a column to null you get this:

Image

Clicking on that "None" text navigates to http://127.0.0.1:7744/data/blobs/None which says 404 "Row not found", and clicking the edit icon gives you this:

Image

Clicking the delete icon gives you this:

Image

But when you confirm you get this:

Image

Meanwhile if the primary key value is "" (empty string) you get this:

Image

There's nothing to click on to view the row page - in the HTML it's this:

<a href="/data/blobs/"></a>

And clicking the edit and deleting icons does nothing, their HTML is:

<tr data-row="">
...
<span class="row-inline-actions" aria-label="Row actions">
  <button
    type="button"
    class="row-inline-action row-inline-action-edit"
    aria-label="Edit row "
    title="Edit row"
    data-row-action="edit"
  >
    <svg>...</svg>
  </button>
  <button
    type="button"
    class="row-inline-action row-inline-action-delete"
    aria-label="Delete row "
    title="Delete row"
    data-row-action="delete"
  >
    <svg>...</svg>
  </button>
</span>
</tr>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdata-entry-uiRelating to the UI for inserting/updating/deleting rows and creating/altering/dropping tables.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions