Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
177 changes: 0 additions & 177 deletions src/client/java/teammates/client/scripts/sql/typicalDataBundle.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,6 @@
"email": "iwosc@yahoo.tmt",
"readNotifications": {}
},
"instructorOfArchivedCourse": {
"googleId": "idOfInstructorOfArchivedCourse",
"name": "InstructorOfArchiveCourse name",
"email": "instructorOfArchiveCourse@archiveCourse.tmt",
"readNotifications": {}
},
"instructor1OfTestingSanitizationCourse": {
"googleId": "idOfInstructor1OfTestingSanitizationCourse",
"name": "Instructor<script> alert('hi!'); </script>",
Expand All @@ -101,12 +95,6 @@
"email": "student2InCourse1@gmail.tmt",
"readNotifications": {}
},
"student1InArchivedCourse": {
"googleId": "student1InArchivedCourse",
"name": "Student in Archived Course",
"email": "student1InCourse1@gmail.tmt",
"readNotifications": {}
},
"student1InTestingSanitizationCourse": {
"googleId": "student1InTestingSanitizationCourse",
"name": "Stud1<script> alert('hi!'); </script>",
Expand Down Expand Up @@ -156,12 +144,6 @@
"institute": "TEAMMATES Test Institute 7",
"timeZone": "UTC"
},
"archivedCourse": {
"id": "idOfArchivedCourse",
"name": "Archived Course",
"institute": "TEAMMATES Test Institute 5",
"timeZone": "UTC"
},
"unregisteredCourse": {
"id": "idOfUnregisteredCourse",
"name": "Unregistered Course",
Expand Down Expand Up @@ -189,7 +171,6 @@
"courseId": "idOfTypicalCourse1",
"name": "Instructor1 Course1",
"email": "instructor1@course1.tmt",
"isArchived": false,
"role": "Co-owner",
"isDisplayedToStudents": true,
"displayedName": "Instructor",
Expand All @@ -213,7 +194,6 @@
"courseId": "idOfTypicalCourse1",
"name": "Instructor2 Course1",
"email": "instructor2@course1.tmt",
"isArchived": false,
"role": "Manager",
"isDisplayedToStudents": true,
"displayedName": "Manager",
Expand All @@ -237,7 +217,6 @@
"courseId": "idOfTypicalCourse1",
"name": "Helper Course1",
"email": "helper@course1.tmt",
"isArchived": false,
"role": "Custom",
"isDisplayedToStudents": false,
"displayedName": "Helper",
Expand All @@ -260,7 +239,6 @@
"courseId": "idOfTypicalCourse1",
"name": "Instructor Not Yet Joined Course 1",
"email": "instructorNotYetJoinedCourse1@email.tmt",
"isArchived": false,
"role": "Co-owner",
"isDisplayedToStudents": true,
"displayedName": "Instructor",
Expand All @@ -284,7 +262,6 @@
"courseId": "idOfTypicalCourse2",
"name": "Instructor1 Course2",
"email": "instructor1@course2.tmt",
"isArchived": false,
"role": "Co-owner",
"isDisplayedToStudents": true,
"displayedName": "Instructor",
Expand All @@ -308,7 +285,6 @@
"courseId": "idOfTypicalCourse2",
"name": "Instructor2 Course2",
"email": "instructor2@course2.tmt",
"isArchived": false,
"role": "Co-owner",
"isDisplayedToStudents": true,
"displayedName": "Instructor",
Expand All @@ -332,7 +308,6 @@
"courseId": "idOfTypicalCourse3",
"name": "Instructor1 Course3",
"email": "instructor1@course3.tmt",
"isArchived": false,
"role": "Co-owner",
"isDisplayedToStudents": true,
"displayedName": "Instructor",
Expand All @@ -356,7 +331,6 @@
"courseId": "idOfTypicalCourse3",
"name": "Instructor2 Course3",
"email": "instructor2@course3.tmt",
"isArchived": false,
"role": "Custom",
"isDisplayedToStudents": true,
"displayedName": "Instructor",
Expand All @@ -380,7 +354,6 @@
"courseId": "idOfTypicalCourse4",
"name": "Instructor1 Course4",
"email": "instructor1@course3.tmt",
"isArchived": false,
"role": "Custom",
"isDisplayedToStudents": true,
"displayedName": "Instructor",
Expand All @@ -404,7 +377,6 @@
"courseId": "idOfTypicalCourse1",
"name": "Instructor3 Course1",
"email": "instructor3@course1.tmt",
"isArchived": false,
"role": "Co-owner",
"isDisplayedToStudents": true,
"displayedName": "Instructor",
Expand All @@ -428,7 +400,6 @@
"courseId": "idOfTypicalCourse2",
"name": "Instructor3 Course2",
"email": "instructor3@course2.tmt",
"isArchived": false,
"role": "Co-owner",
"isDisplayedToStudents": true,
"displayedName": "Instructor",
Expand All @@ -452,7 +423,6 @@
"courseId": "idOfCourseNoEvals",
"name": "Instructor4 name",
"email": "instructor4@courseNoEvals.tmt",
"isArchived": false,
"role": "Co-owner",
"isDisplayedToStudents": true,
"displayedName": "Instructor",
Expand All @@ -476,7 +446,6 @@
"courseId": "idOfUnregisteredCourse",
"name": "Instructor 5 of CourseNoRegister",
"email": "instructor5@courseNoRegister.tmt",
"isArchived": false,
"role": "Co-owner",
"isDisplayedToStudents": true,
"displayedName": "Instructor",
Expand All @@ -500,31 +469,6 @@
"courseId": "idOfSampleCourse-demo",
"name": "Instructor With Only One Sample Course",
"email": "iwosc@yahoo.tmt",
"isArchived": false,
"role": "Co-owner",
"isDisplayedToStudents": true,
"displayedName": "Instructor",
"privileges": {
"courseLevel": {
"canViewStudentInSections": true,
"canSubmitSessionInSections": true,
"canModifySessionCommentsInSections": true,
"canModifyCourse": true,
"canViewSessionInSections": true,
"canModifySession": true,
"canModifyStudent": true,
"canModifyInstructor": true
},
"sectionLevel": {},
"sessionLevel": {}
}
},
"instructorOfArchivedCourse": {
"googleId": "idOfInstructorOfArchivedCourse",
"courseId": "idOfArchivedCourse",
"name": "InstructorOfArchiveCourse name",
"email": "instructorOfArchiveCourse@archiveCourse.tmt",
"isArchived": true,
"role": "Co-owner",
"isDisplayedToStudents": true,
"displayedName": "Instructor",
Expand All @@ -548,7 +492,6 @@
"courseId": "idOfTestingInstructorsDisplayedCourse",
"name": "name1",
"email": "instructorNotDisplayed@NotDisplayed.tmt",
"isArchived": true,
"role": "Co-owner",
"isDisplayedToStudents": true,
"displayedName": "Instructor",
Expand All @@ -572,7 +515,6 @@
"courseId": "idOfTestingInstructorsDisplayedCourse",
"name": "name2",
"email": "secondInstructorNotDisplayed@NotDisplayed.tmt",
"isArchived": true,
"role": "Co-owner",
"isDisplayedToStudents": false,
"displayedName": "Instructor",
Expand All @@ -595,7 +537,6 @@
"courseId": "idOfSampleCourse-demo",
"name": "Instructor Not Yet Joined Course",
"email": "instructorNotYetJoined@email.tmt",
"isArchived": false,
"role": "Co-owner",
"isDisplayedToStudents": true,
"displayedName": "Instructor",
Expand All @@ -619,7 +560,6 @@
"courseId": "idOfTestingSanitizationCourse",
"name": "Instructor<script> alert('hi!'); </script>",
"email": "instructor1@sanitization.tmt",
"isArchived": false,
"role": "Co-owner",
"isDisplayedToStudents": true,
"displayedName": "inst'\"/><script>alert('hi!');</script>",
Expand Down Expand Up @@ -730,15 +670,6 @@
"team": "Team 2",
"section": "Section 2"
},
"student1InArchivedCourse": {
"googleId": "student1InArchivedCourse",
"email": "student1InArchivedCourse@gmail.tmt",
"course": "idOfArchivedCourse",
"name": "student1 In Course1",
"comments": "",
"team": "Team 2.1",
"section": "None"
},
"student1InTestingSanitizationCourse": {
"googleId": "student1InTestingSanitizationCourse",
"email": "normal@sanitization.tmt",
Expand Down Expand Up @@ -903,52 +834,6 @@
"studentDeadlines": {},
"instructorDeadlines": {}
},
"archiveCourse.session1": {
"feedbackSessionName": "session without student questions",
"courseId": "idOfArchivedCourse",
"creatorEmail": "instructor1@course1.tmt",
"instructions": "Please please fill in the following questions.",
"createdTime": "2013-01-20T23:00:00Z",
"startTime": "2013-02-20T23:00:00Z",
"endTime": "2026-04-28T23:00:00Z",
"sessionVisibleFromTime": "2013-02-20T23:00:00Z",
"resultsVisibleFromTime": "2026-04-29T23:00:00Z",
"timeZone": "Africa/Johannesburg",
"gracePeriod": 5,
"sentOpeningSoonEmail": true,
"sentOpenedEmail": true,
"sentClosingSoonEmail": true,
"sentClosedEmail": true,
"sentPublishedEmail": true,
"isOpenedEmailEnabled": true,
"isClosingSoonEmailEnabled": true,
"isPublishedEmailEnabled": true,
"studentDeadlines": {},
"instructorDeadlines": {}
},
"archiveCourse.session2": {
"feedbackSessionName": "session without instructor questions",
"courseId": "idOfArchivedCourse",
"creatorEmail": "instructor1@course1.tmt",
"instructions": "Please please fill in the following questions.",
"createdTime": "2013-01-20T23:00:00Z",
"startTime": "2013-02-20T23:00:00Z",
"endTime": "2026-04-28T23:00:00Z",
"sessionVisibleFromTime": "2013-02-20T23:00:00Z",
"resultsVisibleFromTime": "2026-04-29T23:00:00Z",
"timeZone": "Africa/Johannesburg",
"gracePeriod": 5,
"sentOpeningSoonEmail": true,
"sentOpenedEmail": true,
"sentClosingSoonEmail": false,
"sentClosedEmail": false,
"sentPublishedEmail": false,
"isOpenedEmailEnabled": true,
"isClosingSoonEmailEnabled": true,
"isPublishedEmailEnabled": true,
"studentDeadlines": {},
"instructorDeadlines": {}
},
"session1InCourse2": {
"feedbackSessionName": "Instructor feedback session",
"courseId": "idOfTypicalCourse2",
Expand Down Expand Up @@ -1386,48 +1271,6 @@
"RECEIVER"
]
},
"qn1InSessionInArchivedCourse": {
"feedbackSessionName": "session without student questions",
"courseId": "idOfArchivedCourse",
"questionDetails": {
"questionType": "TEXT",
"questionText": "Give feedback to students"
},
"questionNumber": 1,
"giverType": "INSTRUCTORS",
"recipientType": "STUDENTS_EXCLUDING_SELF",
"numberOfEntitiesToGiveFeedbackTo": 4,
"showResponsesTo": [
"RECEIVER"
],
"showGiverNameTo": [
"RECEIVER"
],
"showRecipientNameTo": [
"RECEIVER"
]
},
"qn1InSession2InArchivedCourse": {
"feedbackSessionName": "session without instructor questions",
"courseId": "idOfArchivedCourse",
"questionDetails": {
"questionType": "TEXT",
"questionText": "Give feedback to each other"
},
"questionNumber": 1,
"giverType": "STUDENTS",
"recipientType": "STUDENTS_EXCLUDING_SELF",
"numberOfEntitiesToGiveFeedbackTo": 4,
"showResponsesTo": [
"RECEIVER"
],
"showGiverNameTo": [
"RECEIVER"
],
"showRecipientNameTo": [
"RECEIVER"
]
},
"qn1InSession1InCourse2": {
"feedbackSessionName": "Instructor feedback session",
"courseId": "idOfTypicalCourse2",
Expand Down Expand Up @@ -1685,19 +1528,6 @@
"questionType": "TEXT",
"answer": "Response from instr1InC2 to student1InC2."
}
},
"response1ForNVSQ1": {
"feedbackSessionName": "session without student questions",
"courseId": "idOfArchivedCourse",
"feedbackQuestionId": "1",
"giver": "instructorOfArchiveCourse@archiveCourse.tmt",
"recipient": "student1InArchivedCourse@gmail.tmt",
"giverSection": "None",
"recipientSection": "Section 1",
"responseDetails": {
"questionType": "TEXT",
"answer": "Response from instructor to student"
}
}
},
"feedbackResponseComments": {
Expand Down Expand Up @@ -1955,13 +1785,6 @@
"createdAt": "2011-01-01T00:00:00Z",
"registeredAt": "1970-02-14T00:00:00Z"
},
"instructorOfArchivedCourse": {
"name": "InstructorOfArchiveCourse name",
"email": "instructorOfArchiveCourse@archiveCourse.tmt",
"institute": "TEAMMATES Test Institute 5",
"createdAt": "2011-01-01T00:00:00Z",
"registeredAt": "1970-02-14T00:00:00Z"
},
"instructor1OfTestingSanitizationCourse": {
"name": "Instructor<script> alert('hi!'); </script>",
"email": "instructor1@sanitization.tmt",
Expand Down
2 changes: 0 additions & 2 deletions src/main/appengine/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ indexes:
properties:
- direction: asc
name: googleId
- direction: asc
name: isArchived
- kind: FeedbackSession
properties:
- direction: asc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h5>Or</h5>
<option *ngFor="let course of courseCandidates" [ngValue]="course.courseId">{{ course.courseId }}</option>
</select>
<div class="invalid-feedback" *ngIf="courseCandidates.length === 0">
There is no un-archived course.
There is no course.
</div>
</div>
<div id="edit-course-id" *ngIf="formMode === SessionEditFormMode.EDIT"> {{ model.courseId }} </div>
Expand Down Expand Up @@ -346,7 +346,7 @@ <h5>Or</h5>
<button id="btn-create-session" type="button" class="btn btn-primary" [disabled]="courseCandidates.length === 0 || model.isSaving || !model.feedbackSessionName" (click)="submitFormHandler()">
<tm-ajax-loading *ngIf="model.isSaving"></tm-ajax-loading>Create Feedback Session
</button>
<p class="text-danger margin-top-20px" *ngIf="courseCandidates.length === 0"><b>You need to have an active(unarchived) course to create a session!</b></p>
<p class="text-danger margin-top-20px" *ngIf="courseCandidates.length === 0"><b>You need to have an active course to create a session!</b></p>
</div>
<div *ngIf="formMode === SessionEditFormMode.EDIT">
<button type="button" class="btn btn-success" [disabled]="model.isSaving || !model.isEditable" *ngIf="formMode === SessionEditFormMode.EDIT" (click)="submitFormHandler()">
Expand Down
Loading