Set owner/multi-user #42
Labels
No Label
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
Unraid
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: FrederikBaerentsen/BrickTracker#42
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
_Originally posted by jonaskp86 (assuming @jonaskp) in https://old.reddit.com/r/selfhosted/comments/1hmx314/bricktracker_a_selfhosted_web_app_for_tracking/m3zd1kt/
I kinda like this idea. Currently I'm running three instances (myself, my wife and my son) but it would greatly improve our workflow with just one database.
/add
and/add/bulk
) to select owner of the set./sets/*/details
to show and edit the data.Assumption correct :-)
Just thinking, Probably need to include handling of “joint ownership” sets, most easily by allowing “owner” to be blank I assume.
This is not something I have experienced yet, as my wife is very protective of her Creator Icons buildings, and doesn’t Care for any of my Old Technic stuff :-D
But I am sure lots of people would buy sets together, and then it would be Nice to have some sort of option for it.
I see what you mean. I haven't had the issue myself either, but having the option to leave it blank might be good.
On a side note: This would probably require a proper migration of the database as there are many things wrong that make the code more complex than it should be (tell me about it 🙃).
The tables are missing primary keys, indexes, and the column name are less than explicit and there is a lot of duplicated data in the database. (Same remark for #41)
Alright, I’ll definitely have to read through the sql changes and see about migration to new schema.
I’m by no means an sql expert and figured I had covered most in the initial setup 😁
I made no change to your database structure (https://gitea.baerentsen.space/FrederikBaerentsen/BrickTracker/src/branch/master/bricktracker/sql/migrations/init.sql). I merely worked around it to the best I could. As you can see there is only this file in the
migrations
folder.I moved the queries into SQL files but then again, still based on your initial structure. I wanted it to be a drop-in replacement for your original version.
A framework like
django
has all the database migration baked-in, but since this is usingflask
it is a bit more bare-bones (which is not necessarily a bad thing). Withflask
andsqlite
you can bake in a forward-only lightweight migration system but that will take a bit of code, and some advanced knowledge of SQL.Remember, that at the beginning:
#8 (comment)
I haven't even done that 🙃
I'm testing how to do the SQL migration thingy
Rather than owner being blank, could it support multiple owner tags? That would seem to make more sense if you're trying to filter or search by owners etc