← Back to team overview

mahara-contributors team mailing list archive

[Bug 617376] [NEW] Fix view_access redundancy / allow collection submission

 

Public bug reported:

We have ended up with duplicated view_access records for every view in a
collection.  It's only the application that tries to ensure that every
view in a collection has exactly the same access records.  This should
be cleaned up in the database, possibly by removing the view id from the
view_access table and replacing it with some kind of access list id,
referenced from the view table so that several views can share a set of
access records.

However, it'd be easier if we did something about access for submitted
views first.  Only individual views can be submitted to groups (and mnet
hosts), not entire collections, so currently a collection can have some
submitted views in it, and some unsubmitted ones.  On submission,
teacher access to the view is ensured by a view_access record that's
invisible to the owner and cannot be deleted by the owner, and the
easiest way to completely remove the need for views to have copies of
access records would be to allow submission of collections, and to not
allow views in a collection to be submitted individually.

** Affects: mahara
     Importance: Low
         Status: Confirmed

** Changed in: mahara
       Status: New => Confirmed

** Changed in: mahara
   Importance: Undecided => Medium

** Changed in: mahara
   Importance: Medium => Low

-- 
Fix view_access redundancy / allow collection submission
https://bugs.launchpad.net/bugs/617376
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.

Status in Mahara ePortfolio: Confirmed

Bug description:
We have ended up with duplicated view_access records for every view in a collection.  It's only the application that tries to ensure that every view in a collection has exactly the same access records.  This should be cleaned up in the database, possibly by removing the view id from the view_access table and replacing it with some kind of access list id, referenced from the view table so that several views can share a set of access records.

However, it'd be easier if we did something about access for submitted views first.  Only individual views can be submitted to groups (and mnet hosts), not entire collections, so currently a collection can have some submitted views in it, and some unsubmitted ones.  On submission, teacher access to the view is ensured by a view_access record that's invisible to the owner and cannot be deleted by the owner, and the easiest way to completely remove the need for views to have copies of access records would be to allow submission of collections, and to not allow views in a collection to be submitted individually.





Follow ups

References