Skip to content

Commit 3a8b8f7

Browse files
committed
Finish release notes
1 parent 39fa4a1 commit 3a8b8f7

File tree

9 files changed

+59
-8
lines changed

9 files changed

+59
-8
lines changed
Loading
202 KB
Loading
271 KB
Loading
366 KB
Loading
347 KB
Loading
379 KB
Loading
Loading

docs/docs/releases/0.2.2.md

Lines changed: 57 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,73 @@
77

88
## Summary
99

10-
Mathesar 0.2.2 focuses on improvements to importing data and creating new tables
11-
12-
We also have a new form to allow users to submit suggestions and feedback about Mathesar to our team.
10+
Mathesar 0.2.2 brings key improvements, including enhanced primary key handling, smart pasting for easier data entry, and various bug fixes. Users can now choose UUIDs as primary keys, designate any existing column as a primary key during data import, and benefit from a new UUID column type.
1311

1412
_This page provides a comprehensive list of all changes in the release._
1513

1614
## Improvements
1715

18-
### Better pasting
16+
### Enhanced primary key handling
1917

20-
[#4258](https://github.com/mathesar-foundation/mathesar/pull/4258 "Support pasting data into cells from system clipboard") [#4322](https://github.com/mathesar-foundation/mathesar/pull/4322 "Allow pasting empty strings in NOT NULL columns") [#4327](https://github.com/mathesar-foundation/mathesar/pull/4327 "Add PK control to New Table form") [#4326](https://github.com/mathesar-foundation/mathesar/pull/4326 "Define pkey during table.add")
21-
[#4345](https://github.com/mathesar-foundation/mathesar/pull/4345 "Fix bug when pasting into cell n edit mode")
18+
Mathesar 0.2.2 introduces several improvements to working with primary keys, including support for UUIDs as primary keys. We've also added a dedicated UUID column type, making it easier to work with UUIDs in any column—not just primary keys.
19+
20+
#### Improvements when importing data
21+
22+
When importing existing data, Mathesar automatically generates a primary key column if one isn’t provided. Previously, importing a simple CSV like:
23+
24+
```csv
25+
First Name,Last Name
26+
Jane,Park
27+
Steve,Smith
28+
Laura,Stein
29+
Amy,Richards
30+
```
31+
32+
would result in Mathesar automatically adding an integer primary key column that auto-increments by default.
33+
34+
That's still the default behavior. But now, you can choose the type of generated primary key column: either an auto-incrementing integer _or_ a UUID column with a default value of a random UUIDv4:
35+
36+
![A screenshot of Mathesar's import UI showing the new settings for using a generated UUID primary key column](../assets/releases/0.2.2/import-uuid-col.png)
37+
38+
Additionally, you can now designate _any_ existing column as the primary key. If you select a UUID or Number column, you’ll have the option to apply the same default value settings that Mathesar uses for generated primary key columns.
39+
40+
#### Improvements to creating tables
41+
42+
When creating new tables in Mathesar, you'll now have the option to set the name and type of your primary key column:
43+
44+
![A screenshot of Mathesar's import UI showing the new settings for using a generated UUID primary key column](../assets/releases/0.2.2/table-create.png)
45+
46+
As when importing data, you can choose between an auto-incrementing integer _or_ a UUID column with a default value of a random UUIDv4.
2247

23-
### PK improvements
48+
#### Improvements to tables without primary keys
49+
50+
Previously, Mathesar would display all kinds of errors when viewing and attempting to edit records in tables without primary keys. Now, we've made the limitations of working with tables without primary keys in Mathesar much clearer:
51+
52+
- Cell editing is disabled
53+
- The placeholder row and 'Add new record' button is hidden.
54+
- We display an attention indicator with a tooltip that mentions that row level operations are not supported.
2455

2556
[#4337](https://github.com/mathesar-foundation/mathesar/pull/4337 "Refactor records store to improve readability") [#4331](https://github.com/mathesar-foundation/mathesar/pull/4331 "Backend functions to modify table primary keys") [#4353](https://github.com/mathesar-foundation/mathesar/pull/4353 "Implement PK config for CSV imports") [#4348](https://github.com/mathesar-foundation/mathesar/pull/4348 "Allow editing PK cell when inserting rows, when PK column does not have a dynamic default set") [#4358](https://github.com/mathesar-foundation/mathesar/pull/4358 "Fix no-header import bug") [#4349](https://github.com/mathesar-foundation/mathesar/pull/4349 "Improve experience for tables without primary keys") [#4366](https://github.com/mathesar-foundation/mathesar/pull/4366 "Make identity setting declarative in `data_modeling.set_primary_key_column`") [#4316](https://github.com/mathesar-foundation/mathesar/pull/4316 "Simplify CSV wrangling logic when importing data") [#4320](https://github.com/mathesar-foundation/mathesar/pull/4320 "Implement UUID type on front end") [#4329](https://github.com/mathesar-foundation/mathesar/pull/4329 "support uuid casts and inference") [#4321](https://github.com/mathesar-foundation/mathesar/pull/4321 "Skip PK column in records.patch from record page") [#4359](https://github.com/mathesar-foundation/mathesar/pull/4359 "Make recovery easier during failed import, show proper errors during header change failure")
2657

58+
59+
### Smart pasting to and from cells
60+
61+
Mathesar now supports smart pasting, making it easy to update multiple cells across rows in one go. Mathesar automatically handles type conversions, so you can paste data from different formats without hassle. Linked column references work just like any other value.
62+
63+
After selecting and copying cells, highlight the cells to paste into and press your system's keyboard shortcut (`Command+V`/`⌘+V` on macOS, and `Ctrl+V` on Windows and Linux).
64+
65+
You'll see a conformation dialog:
66+
67+
![A screenshot of Mathesar's "paste confirmation" dialog](../assets/releases/0.2.2/pasting-4.png)
68+
69+
After choosing "paste", your selected rows will be updated with the new values.
70+
71+
![A screenshot of Mathesar's "paste confirmation" dialog](../assets/releases/0.2.2/pasting-5.png)
72+
73+
[#4258](https://github.com/mathesar-foundation/mathesar/pull/4258 "Support pasting data into cells from system clipboard") [#4322](https://github.com/mathesar-foundation/mathesar/pull/4322 "Allow pasting empty strings in NOT NULL columns") [#4327](https://github.com/mathesar-foundation/mathesar/pull/4327 "Add PK control to New Table form") [#4326](https://github.com/mathesar-foundation/mathesar/pull/4326 "Define pkey during table.add")
74+
[#4345](https://github.com/mathesar-foundation/mathesar/pull/4345 "Fix bug when pasting into cell n edit mode")
75+
76+
2777
### Additional improvements
2878

2979
- Nickname searching in database search [#4354](https://github.com/mathesar-foundation/mathesar/pull/4354 "Adding nickname searching in database search")

docs/mkdocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ nav:
4141
- Overview: api/index.md
4242
- Methods: api/methods.md
4343
- Releases:
44-
- '0.2.1': releases/0.2.1.md
44+
- '0.2.2': releases/0.2.2.md
4545
- Previous releases:
46+
- '0.2.1': releases/0.2.1.md
4647
- '0.2.0': releases/0.2.0.md
4748
- '0.1.7': releases/0.1.7.md
4849
- '0.1.6': releases/0.1.6.md

0 commit comments

Comments
 (0)