SnailyCAD / snaily-cadv4

💻 An open source Computer Aided Dispatch (CAD) for FiveM, this is a web based integration for communities who love police roleplaying and dispatching. Discord: https://discord.gg/eGnrPqEH7U
https://docs.snailycad.org/docs/getting-started
MIT License
137 stars 83 forks source link

Jail problems... #1902

Open AjaxTheGod opened 5 months ago

AjaxTheGod commented 5 months ago

What version of Node.js are you using?

1.78.5

What operating system are you using?

Debian12

What version of SnailyCAD are you currently using?

1.79.0

Describe the Bug

Citizens can't be released from jail and aren't released automatically.

Even if they get bailed/released by an admin or their time has expired they still show on the jail roster

ADDITIONALLY, When new citizens are being arrested they are not showing up on the jail, even when "Show Active Only" is selected. (yes, they should still be in jail, they should not have been released)

Expected Behavior

To Reproduce

Just have ~ 10-15 people in your jail for various sentences (my jail terms are set by hours in CAD). You will almost certainly begin to notice the issues mentioned.

13LuckyBack commented 5 months ago

Hey @AjaxTheGod may i ask what you mean? If you can send screenshot's with it that would help me out understand you beter.

Legacy-TacticalGamingInteractive commented 5 months ago

I was just going to comment on this. image

It would be nice if we have this feature but for Jailed people. So we can see who is still supposed to be in Jail. Another feature would be nice to Prune/Mass Release people in jail. We have literally 60 pages of it and no way to clean it up unless maybe going into the database?

Infiniti-Development commented 5 months ago

Hey @AjaxTheGod If you can send screenshot's with it that would help me out understand you beter.

WhitigolProd commented 5 months ago

@AjaxTheGod I am unable to reproduce this issue. Can you please provide me with some additional information, possibly error logs, etc?

Thanks!

WhitigolProd commented 5 months ago

Another feature would be nice to Prune/Mass Release people in jail. We have literally 60 pages of it and no way to clean it up unless maybe going into the database?

Each citizen can be "released" under a different condition, either bail posted, or time out. How would you propose a mass deletion be implemented? Should they all be released under the "Time Out" condition?

cc @Legacy-TacticalGamingInteractive

WhitigolProd commented 5 months ago

I was just going to comment on this. image

It would be nice if we have this feature but for Jailed people. So we can see who is still supposed to be in Jail.

Added in https://github.com/SnailyCAD/snaily-cadv4/commit/b37bde7

bartusek27 commented 4 months ago

Seems that there is a problem in the API - after the update (can't tell exact version), we have noticed that release (automatic and manual) is not working - throws citizen_not_found error. Discussed in https://discord.com/channels/792479048457912360/1212242677806923807