-
Notifications
You must be signed in to change notification settings - Fork 41
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
No way to create layers by modifying the working copy #249
Comments
Deleting works, but you still can't add a layer just by manually creating it in your working copy. |
Hello @olsen232, Sumit here, I have a few questions regarding the issue.
Also, the expectation of the issue is that: Once a layer is added into the working copy, that itself should set the
Thanks |
Currently the only eay to add a dataset is by using the |
Hey @craigds, thanks for clarifying my query. I misunderstood QGIS layers for datasets/tables.
Am I thinking in the right direction for this? |
I think perhaps this ticket description could be clearer about what is required here. I think there are two ways we could solve this issue:
(1) is the 'obvious' way to solve the problem, but I'm not sure it's the best way since tables are probably created for all sorts of reasons. For example, GPKG and the geopackage extensions specify a number of extra tables with various names - kart's working copy geopackages have rtree spatial-indexes for their spatial datasets - and those tables should not be committed to the repository. While we could maintain a blocklist of table names and name patterns that shouldn't be committed or included in diffs, it's unlikely it'd be exhaustive. So I think a better solution might be an explicit It would be useful to see @olsen232 's thoughts on this as he's probably thought about it more than I have. |
I don't think my thinking has gone any further than that. I agree that the You are right this is a bit larger than most of our "good first issues" - I've been struggling to find issues that are small and self-contained. |
Thanks for your insights and comments @craigds and @olsen232. In that case, as a starting point, I can start by exploring how |
Sounds good to make a separate issue and tackle that piece first. I would probably prefer
You may find this less relevant than you might think. Vanilla git uses a staging area ("the index") to track not-yet-committed files, and Kart disables that concept for simplicity. Our |
Is this issue available? |
Revert "Commit new table to a kart repo #249"
If you delete a layer in the working copy, then you should be able to commit this to delete the layer in your repo.
If you add a layer to a working copy, then you should be able to commit this to add the layer to your repo.
This is a bit trickier: the layer will need to be modified to have the triggers added etc.
The text was updated successfully, but these errors were encountered: