Data editing and paste: known gaps and follow-ups

Abierto
#369 4 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@DokaDev ya está trabajando en esto.

Desde el 12/11/2026.

  • #406 de @DokaDev — fusionado
  • #409 de @DokaDev — fusionado
  • #411 de @DokaDev — fusionado
  • #416 de @DokaDev — fusionado
  • #417 de @DokaDev — fusionado

Evaluación

Este issue todavía no se ha evaluado.

Descripción

bug
Problem

Editing a result, pasting into the grid and applying changes shipped with a few known gaps found in review and testing. Most are rough edges; the four under Writes can write rows the user did not intend or end an open transaction, and are listed first. Tracked here so none is left as a note.

Proposal

Writes

  • MySQL: "just one" of identical rows is written with LIMIT 1; with binlog_format=STATEMENT a replica may change a different row. Read the binlog format and refuse "just one" when it is not row based, saying why
  • MySQL: with access granted per column, the table's other columns are not listed, so rows can look identical when they are not; detect column-only access and treat the columns as hidden (check)
  • Copy and paste inside the grid: dates and times copied before a SET of DateStyle or time zone in the same tab may be pasted as read under the old setting (check)
  • PostgreSQL inside an open transaction: a cancel that lands before the Apply's savepoint exists leaves the user's transaction aborted; send the savepoint first or hold the cancel

Values

  • DEFAULT is refused on an existing row when the default only mentions nextval(, and the hint still offers Ctrl+D where it is refused
  • PostgreSQL: a domain over double precision is checked as single precision, so values over 7 digits are refused
  • +5, 007 or 1.50 typed over the same value become pending updates; a large one-column selection copies whole rows
  • MySQL: text that is not valid UTF-8 (shown as 0x…) can be edited as text and only fails at Apply; refuse it at the edit key
  • MySQL FLOAT(M,D) with many decimals: check that a value accepted as the server's form is stored unchanged (check)

New rows and revert

  • A cloned row copies unique columns that are not the key, so Apply fails later; leave them DEFAULT
  • Reverting a whole column unmarks every deleted row
  • After undo or redo the cursor can move to another new row; a page change keeps the in-page scroll; n moves the cursor to the first row
  • Two updates that chain values (a to b, then b to c) fail with a general count message; name the rows in the preview

Changes tab, Apply and paste messages

  • Changes tab: a result without rows falls back to Rows; an edit key in the SQL view switches to the grid without a word; the duplicate choice [1] / [a] is shown in the tab but only works in the Apply dialog; no right-click menu in the tab
  • Changes text: type names, stored values, the NULL token and not-whole reasons are not escaped; the statements view still shows line breaks as ↵
  • Small sizes: at 80x24 the Apply dialog footer omits 1 and a, the paste summary and the SQL view title are cut, and below about 45 columns the transaction note is cut; check the pending and applied badges too
  • Apply shows no progress through its steps
  • Paste outcomes: a re-read waiting for the structure puts the paste back silently; a refusal is overwritten by "Paste cancelled"; a withdrawn large-paste question does not say Ctrl+R restores the earlier paste; a MySQL FLOAT pasted equal to its shown value is dropped as no change; a read-only refusal lacks "Not pasted" (check)
  • p and g p: the 32 MiB limit keeps reading after it is reached; the large-paste question does not mention a skipped header; a one-column paste whose first value equals the column name is skipped as a header; g p past the last row does not turn the page
  • ROLLBACK WORK TO is read as ending the transaction (safe, wrong wording)
  • Export while changes exist: the dialog does not warn before Enter, and a selection export is refused even when no selected cell changed; search and copy skip new rows
  • Box editor: Ctrl+C cancels the query instead of leaving insert mode; '<,'>w fails; a refused keep loses the typed text; the footer shows normal-mode keys in insert mode; JSON is highlighted as SQL
  • Column selected from its header, then e: the message asks to select cells of one column

Tests

  • Add the missing tests: Changes cache and middle-page Enter, the CSV question with moved changes, the Apply wait with insert mode and Hangul input, the cell menu on mixed new and read rows, the preview cache per theme and language, the session values arriving before the statement, wheel scrolling in edit flows, and /*!50000 SAVEPOINT a */ dropping applied values

Found while fixing the items above

  • PostgreSQL inside an open transaction: Resume, the value count and the row count start their savepoint without holding a cancel back, so a cancel landing there aborts the user's transaction (as the Apply did before); hold it the same way
Lenguaje dominante
Rust
Estrellas
166
Forks
8
Merge medio
4 h 24 min
PR fusionados (30 d)
291

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de DokaDev/datarig

Todos los issues de DokaDev/datarig

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.