Commit Graph

3 Commits

Author SHA1 Message Date
Cody Cutrer 06763dd519 add # frozen_string_literal: true for lib
Change-Id: I59b751cac52367a89e03f572477f0cf1d607b405
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/251155
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2020-10-27 20:49:50 +00:00
Venk Natarajan d352cfbd8b Add the ability to duplicate modules.
Closes COMMS-148
Closes COMMS-147

Test Plan:
* Create a module with a variety of items in it.
* Duplicate it.
* The new module should appear now.
* Make sure that this all works in conjunction with
  various other ui actions on the page without needing
  a refresh.
* The "duplicate" option should appear iff the module
  in question has no quizzes in it.  Modules with
  quizzes cannot be duplicated for the moment.
* Make sure that the ability to "duplicate" is updated
  properly if quizzes are added to/removed from the
  module.

Change-Id: I288c56f42a89abad5c725fa3cbd91b02ea11a460
Reviewed-on: https://gerrit.instructure.com/128960
Reviewed-by: Felix Milea-Ciobanu <fmileaciobanu@instructure.com>
QA-Review: Heath Hales <hhales@instructure.com>
Tested-by: Jenkins
Product-Review: Christi Wruck
2017-11-03 15:52:43 +00:00
Venk Natarajan 972a1155b7 Add the ability to duplicate pages.
* Closes FALCOR-139
* Closes FALCOR-140
* Closes FALCOR-141

Test Plan:
  * Create a course, and make a wiki page.
  * If "Duplicate Enabled" feature option is set, then a duplicate
    option should occur on the cog next to the page you created.
  * When this is clicked, a new page should pop up below unpublished,
    with focus on the cog of the new page.
  * (If you make a page that is an assignment, the new page will also
     show up on the assignments list)
  * A student should not be able to see this option, and if the
    feature flag is off, this option also should not appear.
  * A wiki page assignment can now also be duplicated from the
    "Assignments" list as well.
  * Discussion and Quizzes still cannot be duplicated from the
    "Assignments" list
  * Title convention: If title does not end in "Copy" or "Copy #"
    will append "Copy" to the end of the title.
  * After doing the above, finds the lowest number that doesn't
    duplicate an existing assignment or wiki page name (if a number
    is needed to effect this)
  * In the above search, if a "#" is present on the title, *always*
    starts from the # given.  So "Copy 7" will go to "Copy 8" even
    if 1-6 are not used.

Change-Id: Ib595a859b9186f934626b56e94a00eea231baa5a
Reviewed-on: https://gerrit.instructure.com/115934
Tested-by: Jenkins
Reviewed-by: Steven Burnett <sburnett@instructure.com>
Reviewed-by: Dan Minkevitch <dan@instructure.com>
QA-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
Product-Review: Mary Jane Anderson <manderson@instructure.com>
2017-06-23 20:03:28 +00:00