Commit Graph

8 Commits

Author SHA1 Message Date
Jon Jensen db48cddd3e uncheck group comment by default, fixes
also added checkbox (and api support, etc.) to assignment submission
forms and gradebook2

test plan:
1.  create a group assignment
2.  as a student, go to submit the assignment
3.  ensure the group comment checkbox is present and unchecked on all
    submission forms (file upload, text entry, etc.)
4.  ensure that checking it sends a group comment and leaving it
    unchecked does not
5.  go to the submission details
6.  ensure that the group comment checkbox is unchecked by default
7.  as a teacher, go to the speedgrader and ensure the checkbox is
    unchecked
8.  go to the gradebook and ensure the checkbox is unchecked
9.  go to gradebook2 and ensure it is unchecked and functional (wasn't
    present before)
10. delete all comments and go to the dashboard. ensure that when you go
    to add the first comment, you have a working group comment checkbox
    (if there are existing comments on the stream item, you won't have a
    real comment form, just a link that looks like a text area)

Change-Id: I009b797c2b391c20f41f33c7c0b8afdd4b57dbd3
Reviewed-on: https://gerrit.instructure.com/8978
Reviewed-by: Jon Jensen <jon@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
2012-03-01 14:05:35 -07:00
Jacob Fugal dce431ba42 include assignment_group_id in assignment_json
lack of this field was breaking assignment groups in the assignment edit
dialog of the new calendar/scheduler. fixes 

test-plan:
  - create a course with two assignment groups
  - create a dated assignment in each group
  - ensure scheduler is enabled in the course's account
  - go to the calendar
  - select and then click "Edit" for each assignment; the "Assignment
    Group" drop down should have the correct group pre-selected for
    each.

Change-Id: I43da917b0ee2fba68367fa849273dafad6f760bd
Reviewed-on: https://gerrit.instructure.com/8501
Reviewed-by: Brian Palmer <brianp@instructure.com>
Tested-by: Brian Palmer <brianp@instructure.com>
2012-02-04 06:38:44 -07:00
Brian Palmer cc26d1e0fe don't return description of locked assignments in the API
fixes 

Most of this is a refactor so that all API JSON generation goes through
an api_json method, in order to standardize stuff like permissions and
:include_root. The existing specs verify that this doesn't inadvertently
change any existing responses -- except the discussion topics responses,
which were returning the :permissions array in the json unintentionally.

The refactor fixes the locked assignment response as a side effect.

Change-Id: I287b366fe05ef6116f713fc52075aff93d5e87b6
Reviewed-on: https://gerrit.instructure.com/7262
Reviewed-by: Brian Palmer <brianp@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
2011-12-09 11:15:33 -07:00
Zach Pendleton 51dc49ba8e can set due_at in assignments api. fixes .
assignments api now accepts and returns
assignment[due_at].

Change-Id: I36c2130c833ebda358b5eee9de983747b54beaed
Reviewed-on: https://gerrit.instructure.com/6366
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2011-10-21 15:47:18 -06:00
Ryan Shaw 5456031ed6 create gradebook2
uses coffeescript, slickgrid, actual canvas APIs
reachable at /courses/x/gradebook2
does not include commenting or things external
to the grid like filtering and sorting options

Change-Id: I6967c2dbdd16f7ea4d8c1ad1995511d7c498226a
Reviewed-on: https://gerrit.instructure.com/4371
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2011-06-29 16:21:27 -06:00
Brian Palmer ea66fb1881 include needs_grading_count in assignments api json, if authorized
refs 

Change-Id: Ia42b08303f62912e6aceb2f07529c561a1bc3686
Reviewed-on: https://gerrit.instructure.com/2862
Reviewed-by: Zach Wily <zach@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
2011-03-29 15:09:38 -06:00
Brian Palmer 8327ebac27 refactor the rest api docs, refs
I removed the api_routes plugin, since the code is currently too tied to
canvas to be pulled out into a generic plugin anyway. The yardoc
templates now live in doc/templates, and I've done some major cleanup
and refactoring -- they don't have much in common with the default YARD
templates anymore, and they work much better as API documentation.

The styling is now a little bit more "canvas-like" now, too.

Change-Id: I80edd02e63d7815a292306741f2e8ea52872aae2
Reviewed-on: https://gerrit.instructure.com/2535
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: JT Olds <jt@instructure.com>
2011-03-09 10:12:32 -07:00
Brian Whitmer 8b8173dcc9 Initial commit.
closes 
2011-01-31 18:57:29 -07:00