<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://pkp.sfu.ca/bugzilla/bugzilla.dtd">

<bugzilla version="4.2.5+"
          urlbase="http://pkp.sfu.ca/bugzilla/"
          
          maintainer="pkp-hosted@sfu.ca"
>

    <bug>
          <bug_id>6406</bug_id>
          
          <creation_ts>2011-02-14 09:03:00 -0800</creation_ts>
          <short_desc>OMP clean-up: Clean up review information in submissions</short_desc>
          <delta_ts>2011-07-22 15:40:02 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>OMP</product>
          <component>General</component>
          <version>1.1</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>6410</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="jerico">jerico.dev</reporter>
          <assigned_to name="PKP Support">pkp-support</assigned_to>
          <cc>alec</cc>
          
          

      

      

      

          <long_desc isprivate="0">
            <commentid>22845</commentid>
            <who name="jerico">jerico.dev</who>
            <bug_when>2011-02-14 09:03:35 -0800</bug_when>
            <thetext>See Monograph::get/setCurrentRound(), get/setReviewRoundsInfo():
- undocumented methods
- current review round is redundant with information in review rounds entity (potential for inconsistency, not 3rd NF)
- review round info is an unstructured array (not OO, should probably be ReviewRound objects retrieved from ReviewRoundDao, see design options for DAOs in the Wiki: http://pkp.sfu.ca/wiki/index.php?title=Data_Access_Objects_(DAO))</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <commentid>22850</commentid>
            <who name="jerico">jerico.dev</who>
            <bug_when>2011-02-14 15:03:25 -0800</bug_when>
            <thetext>Do we need the ReviewerSubmission? It&apos;s used in very few places in OMP and it seems that we could as well use a normal Monograph implementation instead.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <commentid>22854</commentid>
            <who name="jerico">jerico.dev</who>
            <bug_when>2011-02-14 15:32:45 -0800</bug_when>
            <thetext>*** Bug 5911 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <commentid>22855</commentid>
            <who name="Alec Smecher">alec</who>
            <bug_when>2011-02-14 15:37:10 -0800</bug_when>
            <thetext>The overall design of the xxxSubmission classes (e.g. ReviewerSubmission, AuthorSubmission, etc.) predates me, but they were originally planned as a partial solution to authorization, i.e. Reviewers should broadly be able to alter these objects, but looking at the ReviewerSubmissionDAO::updateReviewerSubmission function in OJS, only certain fields are updated. This is somewhat more apparent in OJS in SectionEditorSubmissionDAO::updateSectionEditorSubmission -- look for the comment &quot;Only update fields that can actually be edited&quot; for an example.

This has always been pretty clumsy IMO.

Aside from this, the xxxSubmission* classes are used to extend the base class in a couple of useful ways:
1) Fetching the appropriate files for the role in xxxSubmission; I can&apos;t think of any reason this couldn&apos;t be done using a lazy-load approach, and probably doesn&apos;t apply to OMP anyway because we aren&apos;t talking about a single-file-per-submission model
2) Providing a few useful methods in xxxSubmissionDAO that don&apos;t make sense elsewhere, like fetching counts for reviewer submissions, and getting submission lists in the various role-specific queues

In OMP&apos;s case, I can&apos;t think of any reason OTOH why the xxxSubmission classes are necessary, though I haven&apos;t done a thorough grep/review. The xxxSubmissionDAO classes might still prove useful, however.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <commentid>22857</commentid>
            <who name="jerico">jerico.dev</who>
            <bug_when>2011-02-14 15:54:38 -0800</bug_when>
            <thetext>I didn&apos;t want to do away with all xxxSubmission classes in this bug report. Very specifically only the ReviewerSubmission. I see the xxxSubmission topic more in the context of cleaning up DAOs and the corresponding domain objects (see migration issues). IMO a lot of the confusion arises because we mix up use cases (aka roles) which should be handled by (transaction oriented) controllers and (static) domain objects.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <commentid>24518</commentid>
            <who name="Juan Pablo Alperin">juan</who>
            <bug_when>2011-07-22 15:40:02 -0700</bug_when>
            <thetext>change reviewRoundInfo to return iterator of ReviewRound objects
https://github.com/pkp/omp/commit/eebc0dd76ae1aa14637a449d803ddb468d6f963e</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>