Ticket #1726 (closed story: fixed)

Opened 11 years ago

Last modified 10 years ago

Drafts are hidden by default

Reported by: hans Owned by: hans
Priority: blocker Milestone: 2.5
Component: generic Version:
Keywords: Cc:
Time planned: Time remaining:
Time spent:

Description (last modified by hans) (diff)

Learning resources in draft status are hidden by default. It should be possible to make draft content visible for other users to have collaborative authoring. Checkbox "Draft version is hidden from other users" is displayed for the first author in the About-page for learning resources (web pages, presentations, exercises, PILOT's). This checkbox is checked by default.

See the UI prototype: http://lemill.org/trac/attachment/ticket/1726/editing_settings.png

You can copypaste text from here:

Editing settings
You can choose how other people can edit this learning resource and if the draft version is hidden from others.

    Anybody can edit this learning resource
    Other users can only edit a copy of this learning resource

    Draft version is hidden from other users

The same settings are used in #1642

Attachments

editing_settings.png (55.7 KB) - added by hans 11 years ago.

Change History

comment:1 Changed 11 years ago by hans

  • Type changed from defect to story

comment:2 Changed 11 years ago by hans

  • Owner changed from anonymous to hans
  • Priority changed from critical to blocker
  • Status changed from new to assigned
  • Milestone set to 2.5

I will create user interface prototype about this story and write an enhancement ticket for the developers.

comment:3 Changed 11 years ago by hans

  • Description modified (diff)

comment:4 Changed 11 years ago by hans

  • Description modified (diff)

Changed 11 years ago by hans

comment:5 Changed 11 years ago by hans

  • Description modified (diff)

This story is agreed by Tarmo and Hans

comment:6 Changed 11 years ago by hans

  • Description modified (diff)
  • Summary changed from Drafts are private by default to Drafts are hidden by default

comment:7 Changed 11 years ago by hans

  • Description modified (diff)

comment:8 Changed 11 years ago by jukka

This should be implemented by adding a new state 'private' (value of field 'state', w. accessor getState and mutator setState). Current states are 'public','draft' and 'deleted'. Also Learning Resources should have new field hideDrafts (boolean, not indexed) that is used to decide if object is set to 'draft' or 'private' in methods Resources/retract and LargeSectionFolder/LeMillFolder?/invokeFactory. These are only places where objects can change their state to drafts/privates.

Page templates should be changed so that if obj.getState=='private' and member.id != obj.Creator, then show empty and message that this resource is private and visible only for its author.

comment:9 Changed 10 years ago by hans

  • Status changed from assigned to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.