-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tester Response and Moderation Phase changes (#151)
* add issue comment to issue model * change testerresponse to read from comment * add guard condition * fix bug where team response is read again * submit testerresponse also updates issue comment * add spinner while comment is loading * filter to check for team response * flatMap for createIssueModel * revert changes to table filter * change item title to contain question mark * Asynchronous Comment Loading Established * Fix IssueComment Undefined Error * fix bug where comment is not loaded properly * add filter to table * Parsing Label Changes from Team Response * Label Parsing from Issue Comment * Fix parsing of tester response New Regex correctly Parses tester responses * [WIP] Issue 144 Moderation phase (#5) * add dispute component to moderation phase * function to create new comment for tutor response * fix bug student settutorresponse * set pending for disputes * todolist for disputes * code cleaning * code cleaning * Further TesterResp Parsing Regex Fixes * LabelExtraction Regex Flexibility added * Further labelExtraction Constraints & Flexibility * parseTesterResp. regex flexibility added * Further Regex Flexibility Changes Changes done to parseTutorResponseInComment and parseIssueDisputes * code cleaning and comment * revert concat string * Case Insensitivity Added to Regex * Regex Pattern Spaces Set to Any Number * add unsure checkbox * fix bug where description format for bugreporting and testerresponse are different * update comment for model * clean up issue comment * revert previous commit * clean up issue comment code and add support for filtering multiple comment * documentation for issue comment * change version number in package.json
- Loading branch information
Showing
26 changed files
with
643 additions
and
103 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
export class IssueDispute { | ||
readonly TODO_UNCHECKED = '- [ ] Done'; | ||
readonly INITIAL_RESPONSE = '[replace this with your explanation]'; | ||
readonly TITLE_PREFIX = '## :question: '; | ||
readonly LINE_BREAK = '-------------------\n'; | ||
title: string; // e.g Issue severity | ||
description: string; // e.g Team says: xxx\n Tester says: xxx. | ||
tutorResponse: string; // e.g Not justified. I've changed it back. | ||
todo: string; // e.g - [x] Done | ||
|
||
constructor(title: string, description: string) { | ||
this.title = title; | ||
this.description = description; | ||
this.tutorResponse = this.INITIAL_RESPONSE; | ||
this.todo = this.TODO_UNCHECKED; | ||
} | ||
|
||
/* | ||
This method is used to format the tutor's response so that the app can upload it on Github. | ||
Refer to format in https://github.com/CATcher-org/templates#app-collect-tutor-response | ||
*/ | ||
toTutorResponseString(): string { | ||
let toString = ''; | ||
toString += this.TITLE_PREFIX + this.title + '\n\n'; | ||
toString += this.todo + '\n\n'; | ||
toString += this.tutorResponse + '\n\n'; | ||
toString += this.LINE_BREAK; | ||
return toString; | ||
} | ||
|
||
toString(): string { | ||
let toString = ''; | ||
toString += this.TITLE_PREFIX + this.title + '\n\n'; | ||
toString += this.description + '\n\n'; | ||
toString += this.LINE_BREAK; | ||
return toString; | ||
} | ||
} |
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
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
Oops, something went wrong.