tgstation / Tgstation.Server.ControlPanel

Official client for tgstation-server
GNU General Public License v3.0
7 stars 11 forks source link

API does not report current graceful DreamDaemon action #66

Closed AffectedArc07 closed 3 years ago

AffectedArc07 commented 3 years ago

Describe the bug A clear and concise description of what the bug is. Please note that client issues (i.e. Control panel crashes) do not belong in this repo and should be report in their own.

To Reproduce

  1. Go to DreamDaemon for any instance
  2. Set and save a graceful action
  3. Notice how it doesnt reflect in the API

Note: Issue is not isolated to the client, and happens with raw API requests

Expected behavior API to report current graceful action

Logs

[19:17:27]: POST https://testing.affectedarc07.co.uk/DreamDaemon I:1 => {"activeCompileJob":null,"stagedCompileJob":null,"status":null,"currentSecurity":null,"currentPort":null,"currentAllowWebclient":null,"softRestart":true,"softShutdown":false,"createDump":null,"autoStart":null,"allowWebClient":null,"securityLevel":null,"port":null,"startupTimeout":null,"heartbeatSeconds":null,"topicRequestTimeout":null,"additionalParameters":null}
[19:17:28]: HTTP OK: POST https://testing.affectedarc07.co.uk/DreamDaemon I:1 => {"activeCompileJob":{"job":{"startedBy":{"id":1,"enabled":true,"createdAt":"2020-12-08T12:00:29.955505+00:00","name":"Admin"},"description":"Compile active repository code","startedAt":"2020-12-20T19:15:16.922172+00:00","stoppedAt":"2020-12-20T19:16:25.4439353+00:00","cancelled":false,"cancelRightsType":4,"cancelRight":4,"id":19},"revisionInformation":{"activeTestMerges":[],"compileJobs":[{"id":2}],"commitSha":"f3d903acf3ad4fe2a1e0986ac8a3f2c34815c56e","originCommitSha":"f3d903acf3ad4fe2a1e0986ac8a3f2c34815c56e"},"byondVersion":"513.1539.0","dmeName":"paradise","output":"DM compiler version 513.1539\nloading paradise.dme\nloading interface/skin.dmf\nloading map_files/cyberiad/cyberiad.dmm\nloading map_files/cyberiad/z2.dmm\nloading map_files/generic/Lavaland.dmm\nsaving paradise.dmb (DEBUG mode)\nparadise.dmb - 0 errors, 0 warnings (12/20/20 7:16 pm)\nTotal time: 0:42","directoryName":"7d938c7f-5153-4684-a91a-ab6d2b9aa96e","minimumSecurityLevel":0,"dmApiVersion":"5.2.9","id":2},"status":2,"currentSecurity":0,"currentPort":1800,"currentAllowWebclient":true,"softRestart":true,"softShutdown":false,"autoStart":true,"allowWebClient":true,"securityLevel":0,"port":1800,"startupTimeout":60,"heartbeatSeconds":60,"topicRequestTimeout":10000,"additionalParameters":""}
[19:17:30]: GET https://testing.affectedarc07.co.uk/DreamDaemon I:1
[19:17:30]: HTTP OK: GET https://testing.affectedarc07.co.uk/DreamDaemon I:1 => {"activeCompileJob":{"job":{"startedBy":{"id":1,"enabled":true,"createdAt":"2020-12-08T12:00:29.955505+00:00","name":"Admin"},"description":"Compile active repository code","startedAt":"2020-12-20T19:15:16.922172+00:00","stoppedAt":"2020-12-20T19:16:25.4439353+00:00","cancelled":false,"cancelRightsType":4,"cancelRight":4,"id":19},"revisionInformation":{"activeTestMerges":[],"compileJobs":[{"id":2}],"commitSha":"f3d903acf3ad4fe2a1e0986ac8a3f2c34815c56e","originCommitSha":"f3d903acf3ad4fe2a1e0986ac8a3f2c34815c56e"},"byondVersion":"513.1539.0","dmeName":"paradise","output":"DM compiler version 513.1539\nloading paradise.dme\nloading interface/skin.dmf\nloading map_files/cyberiad/cyberiad.dmm\nloading map_files/cyberiad/z2.dmm\nloading map_files/generic/Lavaland.dmm\nsaving paradise.dmb (DEBUG mode)\nparadise.dmb - 0 errors, 0 warnings (12/20/20 7:16 pm)\nTotal time: 0:42","directoryName":"7d938c7f-5153-4684-a91a-ab6d2b9aa96e","minimumSecurityLevel":0,"dmApiVersion":"5.2.9","id":2},"status":2,"currentSecurity":0,"currentPort":1800,"currentAllowWebclient":true,"softRestart":true,"softShutdown":false,"autoStart":true,"allowWebClient":true,"securityLevel":0,"port":1800,"startupTimeout":60,"heartbeatSeconds":60,"topicRequestTimeout":10000,"additionalParameters":""}

Server State: (please complete the following information):

Additional context N/A

Cyberboss commented 3 years ago

The API values are there, just not being reflected in the UI