That sounds simple enough, until you want to link more then just issues/tickets
This either means having 2 IDs, the 2 table names and the relationship (which would result in a huge table) or lots of smaller tables, which have the benefit of being able to then store other information if I want to and lookups for a given type will be quicker as that table will be much smaller and I would just have to lookup the int fields
Maybe I’ll just start with relationships between one or two types of ‘things’ and then spread it out based on what works
The table could end up with a lot of entries, but it would just be storing three ints, which are all foreign keys. I don’t think it would become much of an issue, but if you really wanted to, you could move relationships where both issues are closed to a separate table. The good thing is that this would be an easy feature to add later on without affecting any of the existing table structures.
I can’t remember if it was here or in person, but I had talked to someone about extracting dates (start off with something easier to identify) and it could then spread out to other stuff. The problem with that is, it would either involve a lot of lookups in real time to suggest linking it to a given ticket, which could slow things down, or it could do it later by which point its lost context (or it could assume it knows better then you and link it without you knowing till you go back to it)
For starters, you could just create the links without doing lookups, so it would just be a regex and the results could be cached. You lose the benefit of hovering over and getting more details about the issue, but you get the performance gain. I think that’s probably something you’d have to benchmark a bit to see how much of a drop it causes. There are a bunch of ways to tackle it (e.g., decide to cache for five minutes at a time and consider that accurate enough, create a table that shows references to tickets so you can regenerate the cache for any applicable page after an issue update, etc.), but I have no idea which would be the best without a lot of testing. I say a simple regex without details is good enough for starting out 😊
And note to self: Go through this thread and sumarise it, cause neither me or half the people posting here now can’t remember exactly what has and hasn’t been covered
You have to write a PMS to track what to do on your PMS 😉