Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-41041

Assignments - Format cleanup for datetimes and paragraph breaks

    Details

    • 19 status:
      Resolved
    • 12 status:
      Resolved
    • Test Plan:
      Hide

      Preliminaries

      • Create a course site with Assignments, Announcements, and Calendar tools.
      • Besides an instructor account, add at least one user accounts in the student role. This account must have a valid email address.

      Announcement and Calendar Event

      1. As an instructor:
      2. Navigate to Assignments and click Add.
      3. Enter a Title and something in the Assignment Instructions
      4. Note the default Due Date asserted for the assignment (or set it to a desired value).
      5. Under Availability check the following options:
      6. Add due date to calendar
      7. Add an announcement about the open date to Announcements
      8. In the dropdown menu for the announcement, select “Send email notification with the open date to all participants”
      9. Under "Released Grade Notification Email Options", select "Send notification email to student when the grade is released".
      10. Click Post
      11. Take note of the format of the open date and due date of the assignment you just created in the Assignments table. They should be of the desired format (e.g., “Dec 5, 2018 11:30 AM” and “Dec 12, 2018 11:30 AM” respectively), which you will use to compare to unformatted datetimes.
      12. Navigate to Calendar and select in “Calendar by Month” in the View dropdown menu.
      13. Click the event that corresponds to the assignment due date.
      14. Note that the due date in the event Description is unformatted (e.g., “2018-12-12T16:30:00Z”). This is a bug. If the date is formatted (e.g., “Dec 12, 2018 11:30 AM”), then the bug is fixed.
      15. Navigate to Announcements and click the announcement regarding the open date of the assignment you had just created.
      16. Note that the open date in the body of the announcement is unformatted (e.g., “2018-12-05T16:30:00Z”). This is a bug.If the date is formatted (e.g., “Dec 5, 2018 11:30 AM”), then the bug is fixed.
      1. As a student:
      2. Proceed to the email account associated with a student in this course site, and view the email for the announcement regarding the open date of the assignment.
      3. Note in the body of the email text that there is no paragraph break (only a line break) between the sentence containing the open date for the assignment and the first sentence that that begins with “An announcement has been added...”. This is a bug. However, if there is a paragraph break separating these elements, then the bug is resolved.

      Notifications for Student Submission and Grade Released

      1. As a student:
      2. Click the assignment created above.
      3. Enter some text for the Assignment Text and click the Submit button.
      4. Click “Back to list”.
      5. Proceed to the email account for this student, and view the email with the subject, “Email notification for assignment submission”.
      6. Note that the date times for both “Assignment Due Date” and “Submitted on” are unformatted. This is a bug. However, if they are formatted then the bug is resolved.
      1. As an instructor:
      2. Navigate to Assignments.
      3. For the assignment created above, click the corresponding link in the column for “In / New” to see the list of student submissions.
      4. Click the student name for the student who submitted something for this assignment.
      5. If the “Grade” is not marked with “No Grade”, enter an appropriate grade.
      6. Enter some text in the Instructor Summary Comments.
      7. Click the “Save and Release to Student” button.
      1. As a student:
      2. Proceed to the email account for the student whose grade was released, and view the mail with the subject, “Email notification for assignment released grade”.
      3. Note that there is no paragraph break between the “Site URL” line and the sentence that begins with “Your submission to assignment…”. This is a bug. However, if there is a paragraph break, the the bug is resolved.
      Show
      Preliminaries Create a course site with Assignments, Announcements, and Calendar tools. Besides an instructor account, add at least one user accounts in the student role. This account must have a valid email address. Announcement and Calendar Event As an instructor: Navigate to Assignments and click Add. Enter a Title and something in the Assignment Instructions Note the default Due Date asserted for the assignment (or set it to a desired value). Under Availability check the following options: Add due date to calendar Add an announcement about the open date to Announcements In the dropdown menu for the announcement, select “Send email notification with the open date to all participants” Under "Released Grade Notification Email Options", select "Send notification email to student when the grade is released". Click Post Take note of the format of the open date and due date of the assignment you just created in the Assignments table. They should be of the desired format (e.g., “Dec 5, 2018 11:30 AM” and “Dec 12, 2018 11:30 AM” respectively), which you will use to compare to unformatted datetimes. Navigate to Calendar and select in “Calendar by Month” in the View dropdown menu. Click the event that corresponds to the assignment due date. Note that the due date in the event Description is unformatted (e.g., “2018-12-12T16:30:00Z”). This is a bug. If the date is formatted (e.g., “Dec 12, 2018 11:30 AM”), then the bug is fixed. Navigate to Announcements and click the announcement regarding the open date of the assignment you had just created. Note that the open date in the body of the announcement is unformatted (e.g., “2018-12-05T16:30:00Z”). This is a bug.If the date is formatted (e.g., “Dec 5, 2018 11:30 AM”), then the bug is fixed. As a student: Proceed to the email account associated with a student in this course site, and view the email for the announcement regarding the open date of the assignment. Note in the body of the email text that there is no paragraph break (only a line break) between the sentence containing the open date for the assignment and the first sentence that that begins with “An announcement has been added...”. This is a bug. However, if there is a paragraph break separating these elements, then the bug is resolved. Notifications for Student Submission and Grade Released As a student: Click the assignment created above. Enter some text for the Assignment Text and click the Submit button. Click “Back to list”. Proceed to the email account for this student, and view the email with the subject, “Email notification for assignment submission”. Note that the date times for both “Assignment Due Date” and “Submitted on” are unformatted. This is a bug. However, if they are formatted then the bug is resolved. As an instructor: Navigate to Assignments. For the assignment created above, click the corresponding link in the column for “In / New” to see the list of student submissions. Click the student name for the student who submitted something for this assignment. If the “Grade” is not marked with “No Grade”, enter an appropriate grade. Enter some text in the Instructor Summary Comments. Click the “Save and Release to Student” button. As a student: Proceed to the email account for the student whose grade was released, and view the mail with the subject, “Email notification for assignment released grade”. Note that there is no paragraph break between the “Site URL” line and the sentence that begins with “Your submission to assignment…”. This is a bug. However, if there is a paragraph break, the the bug is resolved.

      Description

      A few instances in the AssignmentsAction class remain where datetimes are presented to users unformatted (i.e., without the AssignmentService method, getUsersLocalDateTimeString). Also, some instances in emails (including an announcement) sent via the Assignments tool could use additional paragraph breaks and other spacing. Detailed instances of these issues follow.

      Open Date Announcement

      In the announcement created by checking “Add an announcement about the open date to Announcements" when adding an assignment, the open date is unformatted. Also, if an email from this announcement is sent, there is no paragraph break (only a line break) separating the sentence about the open date for the assignment from a preliminary sentence above it. 

      Calendar Event

      In the Calendar event created by selecting “Add due date to calendar” when adding an assignment, the “Description” has an unformatted due date.

      Student Submission Email

      The datetimes for “Assignment Due Date” and “Submitted on” are unformatted.

      Also, a space character separating the name of the student from the opening paragraph containing the student’s username would be an improvement.

      Grade Released Email

      There used to be a paragraph break (instead of just a line break) separating the sentence that begins with “Your submission to assignment…” from the block listing the Site Title and Site URL. A separate paragraph would improve the formatting of this email.

        Gliffy Diagrams

          Attachments

          1. announcement.gif
            announcement.gif
            8 kB
          2. calendar.gif
            calendar.gif
            7 kB
          3. Emails on server.pdf
            205 kB

            Issue Links

              Activity

                People

                • Assignee:
                  hornersa Sean Horner
                  Reporter:
                  hornersa Sean Horner
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code