Commit Graph

36 Commits

Author SHA1 Message Date
Leon Friedrich
ca7960382b Missing nullables (#8634) 2022-06-04 17:17:48 +10:00
wrexbe
1e0babbd50 Make AdminLogsSystem an IoC manager (#8492)
* Make log not entity system

* Fixes
2022-05-28 23:41:17 -07:00
wrexbe
bc68ac96dd Cleanup the namespaces (#8132) 2022-05-13 17:59:03 +10:00
DrSmugleaf
5227d1a023 Admin notes (#7259)
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
2022-04-16 20:57:50 +02:00
metalgearsloth
ffed5eec81 Adjust some frametiming stuff (#6496) 2022-03-01 01:11:25 +11:00
Pieter-Jan Briers
eeef210ae4 Fix admin logs always causing an exception on first batch. (#6356) 2022-02-28 21:21:29 +11:00
mirrorcult
ec4d4688c7 Seal/abstract/virtual everything (#6739) 2022-02-16 18:23:23 +11:00
DrSmugleaf
0ca8c705ab Use dictionary and hashset for admin log entities and players respectively
Add test for duplicate player ids in an admin log not throwing
2021-12-26 00:50:10 +01:00
DrSmugleaf
1f8152cb02 Cache the last 3 rounds of admin logs in memory
Reduces send logs time from 2/10/45 seconds to 2 milliseconds
Not thread safe
Removes LogRecord
2021-12-25 02:07:12 +01:00
DrSmugleaf
2f75b282b9 Change admin log filter types and impacts to use hashsets 2021-12-24 20:48:21 +01:00
DrSmugleaf
f23ca09d09 Add more debug logging to admin logs 2021-12-20 01:23:11 +01:00
Vera Aguilera Puerto
cd1b5f44e8 EntityStringRepresentation in logs correctly parse the EntityUid and player 2021-12-09 16:26:16 +01:00
Vera Aguilera Puerto
c680d5b201 EntityStringRepresentationConverter for admin logs. (#5677) 2021-12-09 16:07:07 +01:00
Vera Aguilera Puerto
8c351e5456 Merge branch 'master' into 2021-12-03-remove-IEntity-komm-süsser-todd 2021-12-09 10:39:11 +01:00
DrSmugleaf
81c0b1e174 Add admin logs window pop out button, default to docked
Default to unmaximized
2021-12-09 00:05:42 +01:00
DrSmugleaf
2a3b7d809d Fix 3000 errors 2021-12-05 18:09:01 +01:00
Vera Aguilera Puerto
f5b8bb3731 More manual fixes. 2021-12-03 17:35:20 +01:00
Vera Aguilera Puerto
f386b57148 Inline OwnerUid 2021-12-03 16:30:34 +01:00
Vera Aguilera Puerto
5cd42c9ad6 Inline UID 2021-12-03 15:53:09 +01:00
Vera Aguilera Puerto
ee4ff9cfe8 Inline Name 2021-12-03 15:25:51 +01:00
Vera Aguilera Puerto
bd18574412 The End of Entity (Komm, Süsser Todd: Part 1.0, Content PR) (#5624) 2021-12-03 11:03:41 +01:00
Vera Aguilera Puerto
3f8f4c818e Fixes admin logs and tests to not depend on IEntity caching (#5657)
Co-authored-by: Paul Ritter <ritter.paul1@googlemail.com>
2021-12-03 10:25:07 +01:00
Pieter-Jan Briers
64861ff034 Add Content.Shared.Database (#5588) 2021-11-28 14:56:53 +01:00
DrSmugleaf
7ecd08b8ca Move resetting accumulatedFrameTime in AdminLogSystem to the start of the method 2021-11-26 23:43:40 +01:00
wrexbe
dd56c05423 Skip duplicate uids in admin log (#5528) 2021-11-26 08:39:36 +01:00
DrSmugleaf
1638498273 Add CCVar to enable and disable admin logs 2021-11-26 00:11:25 +01:00
DrSmugleaf
e06dc89c34 Remove setting AdminLogPlayer.RoundId explicitly 2021-11-25 23:53:59 +01:00
DrSmugleaf
1342451243 Downgrade atmos to plosiveDepressurizati
Clip text of admin log types on buttons
Add a few TODOs for the future coder
2021-11-24 19:01:26 +01:00
DrSmugleaf
25ed516eb0 Fix admin log crash in the lobby
Add test
Fixes https://github.com/space-wizards/space-station-14/issues/5504
2021-11-24 18:53:55 +01:00
DrSmugleaf
781a083fcf Fix not waiting for logs to be sent to Azkaban 2021-11-23 17:50:06 +01:00
DrSmugleaf
7b5878b846 Support player sessions in admin logs and add test
Fix EventRan log type id
Make slipping low impact
2021-11-22 23:15:22 +01:00
DrSmugleaf
37e7da0e42 The technology for round time just isn't there yet
Add clock date to displayed logs
I'm sorry moony
2021-11-22 21:19:07 +01:00
DrSmugleaf
86ce2aeb22 Add EntityUid AdminLogConverter 2021-11-22 20:36:03 +01:00
DrSmugleaf
c3fe5909ad THE RETURN OF THE KING
This reverts commit c18d07538a.
2021-11-22 19:08:27 +01:00
DrSmugleaf
c18d07538a Revert "Admin logs (#5419)"
This reverts commit 319aec109d.
2021-11-22 18:55:17 +01:00
Javier Guardia Fernández
319aec109d Admin logs (#5419)
* Add admin logging, models, migrations

* Add logging damage changes

* Add Log admin flag, LogFilter, Logs admin menu tab, message
Refactor admin logging API

* Change admin log get method names

* Fix the name again

* Minute amount of reorganization

* Reset Postgres db snapshot

* Reset Sqlite db snapshot

* Make AdminLog have a composite primary key of round, id

* Minute cleanup

* Change admin system to do a type check instead of index check

* Make admin logs use C# 10 interpolated string handlers

* Implement UI on its own window
Custom controls
Searching
Add admin log converters

* Implement limits into the query

* Change logs to be put into an OutputPanel instead for text wrapping

* Add log <-> player m2m relationship back

* UI improvements, make text wrap, add separators

* Remove entity prefix from damaged log

* Add explicit m2m model, fix any players filter

* Add debug command to test bulk adding logs

* Admin logs now just kinda go

* Add histogram for database update time

* Make admin log system update run every 5 seconds

* Add a cap to the log queue and a metric for how many times it has been reached

* Add metric for logs sent in a round

* Make cvars out of admin logs queue send delay and cap

* Merge fixes

* Reset some changes

* Add test for adding and getting a single log

* Add tests for bulk adding logs

* Add test for querying logs

* Add CallerArgumentExpression to LogStringHandler methods and test

* Improve UI, fix SQLite, add searching by round

* Add entities to admin logs

* Move distinct after orderby

* Add migrations

* ef core eat my ass

* Add cvar for client logs batch size

* Sort logs from newest to oldest by default

* Merge fixes

* Reorganize tests and add one for date ordering

* Add note to log types to not change their numeric values

* Add impacts to logs, better UI filtering

* Make log add callable from shared for convenience

* Get current round id directly from game ticker

* Revert namespace change for DamageableSystem
2021-11-22 18:49:26 +01:00