generated from hpi-swa-teaching/SWT-Demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
67 changed files
with
508 additions
and
26 deletions.
There are no files selected for viewing
7 changes: 3 additions & 4 deletions
7
Squello-Core.package/SPBNewGithubAPI.class/instance/queryCardsfromProject..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
cards | ||
queryCardsfromProject: anotherString | ||
queryCardsfromProject: aString | ||
|
||
"aString => Column ID" | ||
"anotherString => Project ID" | ||
"aString => Project ID" | ||
| data response | | ||
data := (self getQueryColumnQuery: anotherString) parseAsJson. | ||
data := (self getQueryColumnQuery: aString) parseAsJson. | ||
response := self postRequestwithData: data. | ||
^ (((response at: 'data') at: 'node') at: 'items') at: 'nodes'. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
Squello-Core.package/SPBNewGithubBoardProvider.class/instance/addLabel.toDraft..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
labels | ||
addLabel: aSPBLabel toDraft: aSPBCard | ||
|
||
"this is for testing" | ||
(aSPBLabel = #test) ifTrue: [^ true]. | ||
UIManager inform: 'Drafts/Notes do not have Labels'. |
4 changes: 3 additions & 1 deletion
4
Squello-Core.package/SPBNewGithubBoardProvider.class/instance/createColumn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
columns | ||
createColumn: aString | ||
|
||
|
||
"this is for testing" | ||
(aString = #test) ifTrue: [^ true]. | ||
"AFAIK, this is currently not supported by the API" | ||
UIManager inform: 'Sorry, It is not possible to create a column from Squello.'. |
2 changes: 2 additions & 0 deletions
2
Squello-Core.package/SPBNewGithubBoardProvider.class/instance/createNewCard.into..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
cards | ||
createNewCard: aDictionary into: anSPBColumn | ||
|
||
"this is for testing" | ||
(aDictionary at: 'test') ifNotNil: [^ true]. | ||
UIManager inform: 'Squello does not support adding cards yet'. |
2 changes: 2 additions & 0 deletions
2
Squello-Core.package/SPBNewGithubBoardProvider.class/instance/deleteLabel.fromDraft..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
labels | ||
deleteLabel: aSPBLabel fromDraft: aSPBCard | ||
|
||
"this is for testing" | ||
(aSPBLabel = #test) ifTrue: [^ true]. | ||
UIManager inform: 'Drafts/Notes do not have labels'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Squello-Core.package/SPBNewGithubBoardProvider.class/instance/moveCard.after.toColumn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Squello-Core.package/SPBNewGithubBoardProvider.class/instance/moveCardToTop.toColumn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
columns | ||
cards | ||
moveCardToTop: aSPBCard toColumn: aSPBColumn | ||
|
||
self moveCard: aSPBCard toColumn: aSPBColumn. | ||
|
4 changes: 3 additions & 1 deletion
4
Squello-Core.package/SPBNewGithubBoardProvider.class/instance/moveColumn.after..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
columns | ||
moveColumn: anSPBColumn after: anotherSPBColumn | ||
moveColumn: aSPBColumn after: anotherSPBColumn | ||
|
||
"this is for testing" | ||
(aSPBColumn = #test) ifTrue: [^ true]. | ||
UIManager inform: 'Squello does not currently support moving Columns'. |
2 changes: 2 additions & 0 deletions
2
Squello-Core.package/SPBNewGithubBoardProvider.class/instance/moveColumnToFront..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
columns | ||
moveColumnToFront: aSPBColumn | ||
|
||
"this is for testing" | ||
(aSPBColumn = #test) ifTrue: [^ true]. | ||
UIManager inform: 'Squello does not currently support moving Columns'. |
4 changes: 3 additions & 1 deletion
4
Squello-Core.package/SPBNewGithubBoardProvider.class/instance/renameColumn.to..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
columns | ||
renameColumn: anSPBColumn to: aString | ||
renameColumn: aSPBColumn to: aString | ||
|
||
"this is for testing" | ||
(aSPBColumn = #test) ifTrue: [^ true]. | ||
"AFAIK, this is currently not supported by the API" | ||
UIManager inform: 'Sorry, It is not possible to rename a column from Squello.'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
5 changes: 5 additions & 0 deletions
5
Squello-Tests.package/SPBMockNewGithubAPI.class/instance/addAssignee.toIssue..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
assignees | ||
addAssignee: aString toIssue: anotherString | ||
|
||
"this is not the actual response, just for testing the execution path" | ||
^ ('{"type":"issue", "action":"add_assignee", "id": "', aString, '"}') parseAsJson. |
5 changes: 5 additions & 0 deletions
5
Squello-Tests.package/SPBMockNewGithubAPI.class/instance/addLabel.toIssue..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
labels | ||
addLabel: aString toIssue: anotherString | ||
|
||
"this is not the actual response, just for testing the execution path" | ||
^ ('{"type":"issue", "action":"add_label", "id": "', aString, '"}') parseAsJson. |
5 changes: 5 additions & 0 deletions
5
Squello-Tests.package/SPBMockNewGithubAPI.class/instance/deleteAssignee.fromIssue..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
assignees | ||
deleteAssignee: aString fromIssue: anotherString | ||
|
||
"this is not the actual response, just for testing the execution path" | ||
^ ('{"type":"issue", "action":"delete_assignee", "id": "', aString, '"}') parseAsJson. |
5 changes: 5 additions & 0 deletions
5
Squello-Tests.package/SPBMockNewGithubAPI.class/instance/deleteLabel.fromIssue..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
labels | ||
deleteLabel: aString fromIssue: anotherString | ||
|
||
"this is not the actual response, just for testing the execution path" | ||
^ ('{"type":"issue", "action":"delete_label", "id": "', aString, '"}') parseAsJson. |
13 changes: 13 additions & 0 deletions
13
Squello-Tests.package/SPBMockNewGithubAPI.class/instance/listPossibleAssigneesForProject..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
assignees | ||
listPossibleAssigneesForProject: aString | ||
|
||
^ '[ | ||
{ | ||
"login": "fish", | ||
"id": "42" | ||
}, | ||
{ | ||
"login":"cat", | ||
"id":"69" | ||
} | ||
]' parseAsJson. |
15 changes: 15 additions & 0 deletions
15
Squello-Tests.package/SPBMockNewGithubAPI.class/instance/listPossibleLabelsForProject..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
labels | ||
listPossibleLabelsForProject: aString | ||
|
||
^ '[ | ||
{ | ||
"name": "yummy", | ||
"id": "1234", | ||
"color":"00FF00" | ||
}, | ||
{ | ||
"name":"goo", | ||
"id":"4321", | ||
"color":"FF0000" | ||
} | ||
]' parseAsJson. |
5 changes: 5 additions & 0 deletions
5
...-Tests.package/SPBMockNewGithubAPI.class/instance/moveCard.toColumn.fieldId.inProject..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
cards | ||
moveCard: aString toColumn: anotherString fieldId: aThirdString inProject: aForthString | ||
|
||
"not actual response, just for testing" | ||
^ 'moved ' , aString, ' to ', anotherString. |
61 changes: 61 additions & 0 deletions
61
Squello-Tests.package/SPBMockNewGithubAPI.class/instance/queryCardsfromProject..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
cards | ||
queryCardsfromProject: aString | ||
|
||
^ '[ | ||
{ | ||
"id": "1", | ||
"type": "ISSUE", | ||
"content": { | ||
"title": "card 1", | ||
"body": "card 1 body", | ||
"assignees": { | ||
"nodes": [] | ||
}, | ||
"labels": { | ||
"nodes": [] | ||
}, | ||
"closed": true, | ||
"id": "11" | ||
}, | ||
"fieldValueByName": { | ||
"name": "Todo", | ||
"optionId": "60" | ||
} | ||
}, | ||
{ | ||
"id": "2", | ||
"type": "DRAFT_ISSUE", | ||
"content": { | ||
"title": "card 2", | ||
"body": "card 2 body", | ||
"assignees": { | ||
"nodes": [] | ||
}, | ||
"id": "12" | ||
}, | ||
"fieldValueByName": { | ||
"name": "Done", | ||
"optionId": "61" | ||
} | ||
}, | ||
{ | ||
"id": "3", | ||
"type": "ISSUE", | ||
"content": { | ||
"title": "card 3", | ||
"body": "card 3 body", | ||
"assignees": { | ||
"nodes": [] | ||
}, | ||
"labels": { | ||
"nodes": [] | ||
}, | ||
"closed": false, | ||
"id": "13" | ||
}, | ||
"fieldValueByName": { | ||
"name": "Todo", | ||
"optionId": "60" | ||
} | ||
} | ||
]' parseAsJson. |
4 changes: 4 additions & 0 deletions
4
Squello-Tests.package/SPBMockNewGithubAPI.class/instance/queryColumnFieldId..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
cards | ||
queryColumnFieldId: aString | ||
|
||
^ 'Status'. |
17 changes: 17 additions & 0 deletions
17
Squello-Tests.package/SPBMockNewGithubAPI.class/instance/queryColumns..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
cards | ||
queryColumns: aString | ||
|
||
^ '[ | ||
{ | ||
"id": "1", | ||
"name": "Todo" | ||
}, | ||
{ | ||
"id": "2", | ||
"name": "In Progress" | ||
}, | ||
{ | ||
"id": "3", | ||
"name": "Done" | ||
} | ||
]' parseAsJson. |
4 changes: 4 additions & 0 deletions
4
Squello-Tests.package/SPBMockNewGithubAPI.class/instance/queryProject..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
project | ||
queryProject: aString | ||
|
||
^ '{ "title": "THE PROJECT" }' parseAsJson. |
4 changes: 4 additions & 0 deletions
4
Squello-Tests.package/SPBMockNewGithubAPI.class/instance/queryProjectID.user..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
project | ||
queryProjectID: aNumber user: aString | ||
|
||
^ '69'. |
5 changes: 5 additions & 0 deletions
5
Squello-Tests.package/SPBMockNewGithubAPI.class/instance/updateAssignees.fromDraft..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
assignees | ||
updateAssignees: aString fromDraft: anotherString | ||
|
||
"this is not the actual response, just for testing the execution path" | ||
^ ('{"type":"draft", "action":"update_assignees","ids":"', aString, ' "}') parseAsJson. |
5 changes: 5 additions & 0 deletions
5
...o-Tests.package/SPBMockNewGithubAPI.class/instance/updateCardPosition.after.inProject..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
cards | ||
updateCardPosition: aString after: anotherString inProject: aThridString | ||
|
||
"not the actual response, this is for testing only" | ||
^ 'moved ' , aString, ' after ', anotherString. |
5 changes: 5 additions & 0 deletions
5
Squello-Tests.package/SPBMockNewGithubAPI.class/instance/updateDraft..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
cards | ||
updateDraft: aSPBCard | ||
|
||
"not an actual response, just for testing" | ||
^ 'updated draft ', aSPBCard id. |
5 changes: 5 additions & 0 deletions
5
Squello-Tests.package/SPBMockNewGithubAPI.class/instance/updateIssue..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
cards | ||
updateIssue: aSPBCard | ||
|
||
"not an actual response, just for testing" | ||
^ 'updated issue ', aSPBCard id. |
20 changes: 20 additions & 0 deletions
20
Squello-Tests.package/SPBMockNewGithubAPI.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"addAssignee:toIssue:" : "FP 7/11/2024 13:06", | ||
"addLabel:toIssue:" : "FP 7/11/2024 13:06", | ||
"deleteAssignee:fromIssue:" : "FP 7/11/2024 13:06", | ||
"deleteLabel:fromIssue:" : "FP 7/11/2024 13:08", | ||
"listPossibleAssigneesForProject:" : "FP 7/9/2024 11:31", | ||
"listPossibleLabelsForProject:" : "FP 7/9/2024 11:50", | ||
"moveCard:toColumn:fieldId:inProject:" : "FP 7/11/2024 12:42", | ||
"queryCardsfromProject:" : "FP 7/11/2024 12:22", | ||
"queryColumnFieldId:" : "FP 7/11/2024 12:54", | ||
"queryColumns:" : "FP 7/11/2024 12:57", | ||
"queryProject:" : "FP 7/9/2024 11:52", | ||
"queryProjectID:user:" : "FP 7/11/2024 13:03", | ||
"updateAssignees:fromDraft:" : "FP 7/11/2024 13:07", | ||
"updateCardPosition:after:inProject:" : "FP 7/11/2024 12:38", | ||
"updateDraft:" : "FP 7/11/2024 12:46", | ||
"updateIssue:" : "FP 7/11/2024 12:49" } } |
14 changes: 14 additions & 0 deletions
14
Squello-Tests.package/SPBMockNewGithubAPI.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"category" : "Squello-Tests", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
], | ||
"name" : "SPBMockNewGithubAPI", | ||
"pools" : [ | ||
], | ||
"super" : "Object", | ||
"type" : "normal" } |
Empty file.
Oops, something went wrong.