SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
118
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SciPost
SciPost
Commits
00a1f9d8
Commit
00a1f9d8
authored
6 months ago
by
George Katsikas
Browse files
Options
Downloads
Patches
Plain Diff
set refereeing cycle deadline to journal default
related to
#302
parent
7a8a6b08
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scipost_django/journals/models/journal.py
+8
-0
8 additions, 0 deletions
scipost_django/journals/models/journal.py
scipost_django/submissions/refereeing_cycles.py
+18
-4
18 additions, 4 deletions
scipost_django/submissions/refereeing_cycles.py
with
26 additions
and
4 deletions
scipost_django/journals/models/journal.py
+
8
−
0
View file @
00a1f9d8
...
@@ -193,6 +193,14 @@ class Journal(models.Model):
...
@@ -193,6 +193,14 @@ class Journal(models.Model):
]
]
return
list
(
chain
(
*
criteria
))
return
list
(
chain
(
*
criteria
))
@property
def
is_flagship
(
self
):
"""
Return True if this Journal is a flagship Journal,
i.e. if its name is of the form
"
SciPost [Field]
"
.
"""
return
self
.
name
==
"
SciPost
"
+
self
.
college
.
acad_field
.
name
def
get_issues
(
self
):
def
get_issues
(
self
):
from
journals.models
import
Issue
from
journals.models
import
Issue
...
...
This diff is collapsed.
Click to expand it.
scipost_django/submissions/refereeing_cycles.py
+
18
−
4
View file @
00a1f9d8
__copyright__
=
"
Copyright 2016-2018, Stichting SciPost (SciPost Foundation)
"
__copyright__
=
"
Copyright 2016-2018, Stichting SciPost (SciPost Foundation)
"
__license__
=
"
AGPL v3
"
__license__
=
"
AGPL v3
"
import
abc
import
datetime
import
datetime
import
json
import
json
...
@@ -235,7 +236,7 @@ class NeedRefereesAction(BaseAction):
...
@@ -235,7 +236,7 @@ class NeedRefereesAction(BaseAction):
return
text
return
text
class
BaseCycle
:
class
BaseCycle
(
abc
.
ABC
)
:
"""
A base blueprint for the Submission refereeing cycle.
"""
A base blueprint for the Submission refereeing cycle.
The refereeing process may be defined differently for every cycle class by its own
The refereeing process may be defined differently for every cycle class by its own
...
@@ -243,7 +244,6 @@ class BaseCycle:
...
@@ -243,7 +244,6 @@ class BaseCycle:
permissions and the overall refereeing process.
permissions and the overall refereeing process.
"""
"""
days_for_refereeing
=
28
can_invite_referees
=
True
can_invite_referees
=
True
def
__init__
(
self
,
submission
:
"
Submission
"
):
def
__init__
(
self
,
submission
:
"
Submission
"
):
...
@@ -256,6 +256,11 @@ class BaseCycle:
...
@@ -256,6 +256,11 @@ class BaseCycle:
self
.
update_required_actions
()
self
.
update_required_actions
()
return
self
.
_required_actions
return
self
.
_required_actions
@property
@abc.abstractmethod
def
days_for_refereeing
(
self
):
return
0
@property
@property
def
minimum_number_of_referees
(
self
):
def
minimum_number_of_referees
(
self
):
if
(
if
(
...
@@ -433,7 +438,14 @@ class BaseCycle:
...
@@ -433,7 +438,14 @@ class BaseCycle:
class
RegularCycle
(
BaseCycle
):
class
RegularCycle
(
BaseCycle
):
pass
"""
Regular refereeing cycle, used for the first round of refereeing.
Duration differs based on the journal, according to article 3.6.3 of the by-laws.
"""
@property
def
days_for_refereeing
(
self
):
return
self
.
_submission
.
submitted_to
.
refereeing_period
class
ShortCycle
(
BaseCycle
):
class
ShortCycle
(
BaseCycle
):
...
@@ -442,7 +454,9 @@ class ShortCycle(BaseCycle):
...
@@ -442,7 +454,9 @@ class ShortCycle(BaseCycle):
by the editor.
by the editor.
"""
"""
days_for_refereeing
=
14
@property
def
days_for_refereeing
(
self
):
return
2
*
7
# 2 weeks
@property
@property
def
minimum_number_of_referees
(
self
):
def
minimum_number_of_referees
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment