From 4aa03bc5455c075271342abb5041859f6eda16a1 Mon Sep 17 00:00:00 2001 From: kolioOtSofia Date: Fri, 18 Jun 2021 15:11:09 +0300 Subject: [PATCH] adding stuff --- .../ATDDGitHubAction.class/instance/pause.st | 5 +++++ .../methodProperties.json | 1 + .../instance/errorDictionary.st | 1 + .../methodProperties.json | 2 +- .../instance/pause.st | 3 +-- .../methodProperties.json | 2 +- .../ATDDTravisStatus.class/instance/pause.st | 5 +++++ .../methodProperties.json | 1 + .../instance/resumeGitHubAction..st | 4 +++- .../ATDDBrowser.class/methodProperties.json | 2 +- .../instance/hasValidUrl.st | 12 ++++++++++ .../instance/save.st | 22 +++++++++++++++++++ .../methodProperties.json | 4 +++- .../instance/updateJobLogForId..st | 2 +- .../methodProperties.json | 2 +- 15 files changed, 59 insertions(+), 9 deletions(-) create mode 100644 packages/AutoTDD-Core.package/ATDDGitHubAction.class/instance/pause.st create mode 100644 packages/AutoTDD-Core.package/ATDDTravisStatus.class/instance/pause.st create mode 100644 packages/AutoTDD-GUI.package/ATDDGitHubActionEditor.class/instance/hasValidUrl.st create mode 100644 packages/AutoTDD-GUI.package/ATDDGitHubActionEditor.class/instance/save.st diff --git a/packages/AutoTDD-Core.package/ATDDGitHubAction.class/instance/pause.st b/packages/AutoTDD-Core.package/ATDDGitHubAction.class/instance/pause.st new file mode 100644 index 00000000..c4e6f351 --- /dev/null +++ b/packages/AutoTDD-Core.package/ATDDGitHubAction.class/instance/pause.st @@ -0,0 +1,5 @@ +behaviour +pause + + super pause. + ATDDBrowser changedGitHubActions \ No newline at end of file diff --git a/packages/AutoTDD-Core.package/ATDDGitHubAction.class/methodProperties.json b/packages/AutoTDD-Core.package/ATDDGitHubAction.class/methodProperties.json index a965f862..a68871e3 100644 --- a/packages/AutoTDD-Core.package/ATDDGitHubAction.class/methodProperties.json +++ b/packages/AutoTDD-Core.package/ATDDGitHubAction.class/methodProperties.json @@ -6,6 +6,7 @@ "symbol" : "sw 5/25/2021 22:27" }, "instance" : { "initialize" : "BF 5/23/2021 21:18", + "pause" : "ng 6/18/2021 14:47", "repositoryURL:" : "BF 5/23/2021 21:29", "statusChanged" : "ClassTest 5/29/2021 19:31", "updateStatus" : "ClassTest 5/28/2021 23:47" } } diff --git a/packages/AutoTDD-Core.package/ATDDRemoteClient.class/instance/errorDictionary.st b/packages/AutoTDD-Core.package/ATDDRemoteClient.class/instance/errorDictionary.st index ac440154..8802f458 100644 --- a/packages/AutoTDD-Core.package/ATDDRemoteClient.class/instance/errorDictionary.st +++ b/packages/AutoTDD-Core.package/ATDDRemoteClient.class/instance/errorDictionary.st @@ -2,6 +2,7 @@ accessing errorDictionary ^ IdentityDictionary newFrom: { + 401 -> ATDDConnectionError. 403 -> ATDDAccessDeniedError. 404 -> ATDDNotFoundError } \ No newline at end of file diff --git a/packages/AutoTDD-Core.package/ATDDRemoteClient.class/methodProperties.json b/packages/AutoTDD-Core.package/ATDDRemoteClient.class/methodProperties.json index 98d96b04..decf1de1 100644 --- a/packages/AutoTDD-Core.package/ATDDRemoteClient.class/methodProperties.json +++ b/packages/AutoTDD-Core.package/ATDDRemoteClient.class/methodProperties.json @@ -2,7 +2,7 @@ "class" : { }, "instance" : { - "errorDictionary" : "ng 6/18/2021 13:59", + "errorDictionary" : "ng 6/18/2021 14:48", "throwExceptionForResponseCode:" : "ng 6/18/2021 14:05", "token" : "ClassTest 6/2/2021 18:44", "token:" : "ClassTest 6/2/2021 18:44", diff --git a/packages/AutoTDD-Core.package/ATDDRemoteTestingEntity.class/instance/pause.st b/packages/AutoTDD-Core.package/ATDDRemoteTestingEntity.class/instance/pause.st index c3ade4a5..b07200ba 100644 --- a/packages/AutoTDD-Core.package/ATDDRemoteTestingEntity.class/instance/pause.st +++ b/packages/AutoTDD-Core.package/ATDDRemoteTestingEntity.class/instance/pause.st @@ -2,5 +2,4 @@ behaviour pause self terminateProcess. - super pause. - self updateStatus \ No newline at end of file + super pause \ No newline at end of file diff --git a/packages/AutoTDD-Core.package/ATDDRemoteTestingEntity.class/methodProperties.json b/packages/AutoTDD-Core.package/ATDDRemoteTestingEntity.class/methodProperties.json index ed769793..65ee441e 100644 --- a/packages/AutoTDD-Core.package/ATDDRemoteTestingEntity.class/methodProperties.json +++ b/packages/AutoTDD-Core.package/ATDDRemoteTestingEntity.class/methodProperties.json @@ -7,7 +7,7 @@ "internalStatus" : "ClassTest 6/2/2021 17:54", "internalStatus:" : "ClassTest 5/29/2021 19:42", "newRefreshProcess" : "sw 5/28/2021 18:04", - "pause" : "sw 5/28/2021 18:04", + "pause" : "ng 6/18/2021 14:46", "pausedString" : "sw 5/28/2021 18:04", "process" : "sw 5/28/2021 18:06", "process:" : "sw 5/28/2021 18:06", diff --git a/packages/AutoTDD-Core.package/ATDDTravisStatus.class/instance/pause.st b/packages/AutoTDD-Core.package/ATDDTravisStatus.class/instance/pause.st new file mode 100644 index 00000000..bb5a9fe3 --- /dev/null +++ b/packages/AutoTDD-Core.package/ATDDTravisStatus.class/instance/pause.st @@ -0,0 +1,5 @@ +behaviour +pause + + super pause. + ATDDBrowser changedTravisStatuses \ No newline at end of file diff --git a/packages/AutoTDD-Core.package/ATDDTravisStatus.class/methodProperties.json b/packages/AutoTDD-Core.package/ATDDTravisStatus.class/methodProperties.json index 6662e485..ad7beb68 100644 --- a/packages/AutoTDD-Core.package/ATDDTravisStatus.class/methodProperties.json +++ b/packages/AutoTDD-Core.package/ATDDTravisStatus.class/methodProperties.json @@ -6,6 +6,7 @@ "symbol" : "sw 5/25/2021 22:21" }, "instance" : { "initialize" : "BF 5/23/2021 21:18", + "pause" : "ng 6/18/2021 14:49", "repositoryURL:" : "ls 7/25/2019 09:23", "statusChanged" : "ClassTest 5/29/2021 19:36", "updateStatus" : "ClassTest 5/28/2021 23:46", diff --git a/packages/AutoTDD-GUI.package/ATDDBrowser.class/instance/resumeGitHubAction..st b/packages/AutoTDD-GUI.package/ATDDBrowser.class/instance/resumeGitHubAction..st index 8492197c..d43946d4 100644 --- a/packages/AutoTDD-GUI.package/ATDDBrowser.class/instance/resumeGitHubAction..st +++ b/packages/AutoTDD-GUI.package/ATDDBrowser.class/instance/resumeGitHubAction..st @@ -1,4 +1,6 @@ action resumeGitHubAction: aGitHubAction - aGitHubAction resume \ No newline at end of file + [ aGitHubAction resume ] + on: ATDDAccessDeniedError + do: [UIManager default inform: 'test' ] \ No newline at end of file diff --git a/packages/AutoTDD-GUI.package/ATDDBrowser.class/methodProperties.json b/packages/AutoTDD-GUI.package/ATDDBrowser.class/methodProperties.json index 7fcd1aab..1ab51ff2 100644 --- a/packages/AutoTDD-GUI.package/ATDDBrowser.class/methodProperties.json +++ b/packages/AutoTDD-GUI.package/ATDDBrowser.class/methodProperties.json @@ -93,7 +93,7 @@ "resultsTravisStatuses" : "sw 5/26/2021 00:07", "resultsWatchers" : "sw 5/26/2021 00:07", "resumeAll" : "sw 5/21/2021 21:05", - "resumeGitHubAction:" : "sw 5/21/2021 21:04", + "resumeGitHubAction:" : "ng 6/18/2021 15:03", "resumeSelectedGitHubActions" : "sw 5/21/2021 22:17", "resumeSelectedTravisStatuses" : "swi 7/25/2019 15:30", "resumeSelectedWatchers" : "swi 7/25/2019 15:31", diff --git a/packages/AutoTDD-GUI.package/ATDDGitHubActionEditor.class/instance/hasValidUrl.st b/packages/AutoTDD-GUI.package/ATDDGitHubActionEditor.class/instance/hasValidUrl.st new file mode 100644 index 00000000..a96e4f2a --- /dev/null +++ b/packages/AutoTDD-GUI.package/ATDDGitHubActionEditor.class/instance/hasValidUrl.st @@ -0,0 +1,12 @@ +action +hasValidUrl + + | client | + + client := ATDDGitHubActionsClient new. + client token: self token. + [ client requestOn: 'repos/' , self repositoryUrl ] + on: ATDDNotFoundError + do: [ ^ false ]. + + ^ true \ No newline at end of file diff --git a/packages/AutoTDD-GUI.package/ATDDGitHubActionEditor.class/instance/save.st b/packages/AutoTDD-GUI.package/ATDDGitHubActionEditor.class/instance/save.st new file mode 100644 index 00000000..03b79a36 --- /dev/null +++ b/packages/AutoTDD-GUI.package/ATDDGitHubActionEditor.class/instance/save.st @@ -0,0 +1,22 @@ +action +save + + repositoryUrl changed: #acceptChanges. + token changed: #acceptChanges. + refreshInterval changed: #acceptChanges. + self hasVaildRefreshInterval + ifFalse: [ + UIManager default inform: 'Please enter a valid interval!'. + ^ nil ]. + self hasVaildSlug + ifFalse: [ + UIManager default inform: 'Please enter a valid slug!'. + ^ nil ]. + self hasValidUrl + ifFalse: [ + UIManager default inform: 'Error 404! Please provide a valid {owner}/{repo}'. + ^ nil ]. + super save. + self closeWindow. + + ^ self applyChanges \ No newline at end of file diff --git a/packages/AutoTDD-GUI.package/ATDDGitHubActionEditor.class/methodProperties.json b/packages/AutoTDD-GUI.package/ATDDGitHubActionEditor.class/methodProperties.json index 68899d65..06e5b757 100644 --- a/packages/AutoTDD-GUI.package/ATDDGitHubActionEditor.class/methodProperties.json +++ b/packages/AutoTDD-GUI.package/ATDDGitHubActionEditor.class/methodProperties.json @@ -11,4 +11,6 @@ "validSlug" : "BF 5/21/2021 14:07" }, "instance" : { "applyChanges" : "sw 5/25/2021 20:21", - "gitHubAction" : "sw 5/25/2021 19:21" } } + "gitHubAction" : "sw 5/25/2021 19:21", + "hasValidUrl" : "ng 6/18/2021 14:52", + "save" : "ng 6/18/2021 14:53" } } diff --git a/packages/AutoTDD-GUI.package/ATDDGitHubActionResults.class/instance/updateJobLogForId..st b/packages/AutoTDD-GUI.package/ATDDGitHubActionResults.class/instance/updateJobLogForId..st index 00d4559c..14c8980b 100644 --- a/packages/AutoTDD-GUI.package/ATDDGitHubActionResults.class/instance/updateJobLogForId..st +++ b/packages/AutoTDD-GUI.package/ATDDGitHubActionResults.class/instance/updateJobLogForId..st @@ -5,7 +5,7 @@ updateJobLogForId: aNumber [ response := self data client getLogsForRepository: self data repository logId: aNumber ] on: ATDDAccessDeniedError - do: [ :error | response := error class message , '. Logs are only available when providing a token.' ]; + do: [ :error | response := error class message , '. Logs are only available when providing a token.' ] on: ATDDNotFoundError do: [ :error | response := error class message , '. No logs available for this workflow.' ]. diff --git a/packages/AutoTDD-GUI.package/ATDDGitHubActionResults.class/methodProperties.json b/packages/AutoTDD-GUI.package/ATDDGitHubActionResults.class/methodProperties.json index 4d506a40..759f3c0c 100644 --- a/packages/AutoTDD-GUI.package/ATDDGitHubActionResults.class/methodProperties.json +++ b/packages/AutoTDD-GUI.package/ATDDGitHubActionResults.class/methodProperties.json @@ -15,5 +15,5 @@ "parseAnsiCodeOf:" : "BF 6/11/2021 21:15", "parseSmalltalkCILog:" : "BF 6/11/2021 19:48", "selectedJob:" : "ng 5/26/2021 14:54", - "updateJobLogForId:" : "ng 6/18/2021 14:30", + "updateJobLogForId:" : "ng 6/18/2021 14:43", "updateJobs" : "ClassTest 5/29/2021 19:12" } }