[Bug]: Add Data's question says "Link to the file" for a GeoPackage where small tables are copied

Open Beginner friendly
#2,977 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
64/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust
Domain
data, desktop

Research direction

Start in crates/engine/src/cmd/layer.rs near line 2536, where link_choice is set and the Add Data question is built, and find where the default answer is chosen. Then read layerchooser.rs around line 175 to see the per-table size rule that applies when the answer is not sent. Reproduce with a GeoPackage that has one table over 100 000 rows and one under. Done when the dialog text says each table follows its own size until the user chooses, and the small table is still copied on an untouched Add.

Written by the indexing model from the issue text.

Description

unconfirmed possible issue
What happened?

For a GeoPackage, Add Data starts the answer at "Link to the file" when any table would be read in place (link_choice, crates/engine/src/cmd/layer.rs:2536, #2849). Left untouched, the answer is not sent and each table keeps its own size rule (layerchooser.rs:175, #2350), so a small table is copied. Nothing on the dialog says that.

Steps to reproduce
  1. Take a GeoPackage with one table above 100 000 rows and one below.
  2. Add Data, pick it.
  3. The question is at "Link to the file". Press Add without touching it.
  4. The large table is linked, the small one is copied into the project.
Expected behavior

The text says each table follows its own size until the user chooses.

How are you running RustGIS?

Desktop app (built from source)

Version

4a40b749

Dominant language
Rust
Stars
1.9k
Forks
268
Avg merge
8h 43m
Merged PRs (30d)
931

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from opengeos/RustGIS

All issues in opengeos/RustGIS

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.