-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DESK_REJECT added #1285
Open
umair-nasir14
wants to merge
8
commits into
develop
Choose a base branch
from
journal_comms
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
DESK_REJECT added #1285
Changes from 5 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
a8a1314
Added DESK_REJECT
umair-nasir14 b887a91
Desk reject email template + migrations updates
umair-nasir14 97dde8b
Textbox added
umair-nasir14 afd9bf1
outcome api enum fix + migrations
umair-nasir14 149e845
Code cleanup
umair-nasir14 0c01a8c
Editors note added
umair-nasir14 6a2668a
Review rendering bugfix
umair-nasir14 84cdd76
Rendering fix
umair-nasir14 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
"""empty message | ||
|
||
Revision ID: 3447b1bb8210 | ||
Revises: d2c160b0cbe5 | ||
Create Date: 2024-09-21 11:30:45.546768 | ||
|
||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '3447b1bb8210' | ||
down_revision = 'd2c160b0cbe5' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
|
||
op.execute("""INSERT INTO email_template (id, key, template, language, subject) | ||
VALUES (71, 'outcome-desk-rejected', 'Dear {title} {firstname} {lastname}, | ||
|
||
Thank you very much for submitting the application, with submission number {response_id}, to the {event_name}. | ||
|
||
We regret to inform you that your submission is desk rejected, with the following motivation by the editors: | ||
|
||
{reason} | ||
|
||
Best wishes, | ||
The {event_name} Editors', 'en', '{event_name} Application Status Update')""") | ||
|
||
op.execute("""INSERT INTO email_template (id, key, template, language, subject) | ||
VALUES (72, 'outcome-journal-desk-rejected', 'Dear {title} {firstname} {lastname}, | ||
|
||
Thank you very much for submitting your paper with submission number {response_id} to the {event_name}. | ||
|
||
We regret to inform you that your submission is desk rejected, with the following motivation by the editors: | ||
|
||
{reason} | ||
|
||
Best wishes, | ||
The {event_name} Editors', 'en', '{event_name} Application Status Update')""") | ||
|
||
op.execute("""INSERT INTO email_template (id, key, template, language, subject) | ||
VALUES (73, 'outcome-journal-rejected', 'Dear {title} {firstname} {lastname}, | ||
|
||
Thank you very much for submitting your paper with submission number {response_id} to the {event_name}. | ||
|
||
We regret to inform you that your submission is rejected, with the following motivation by the editors: | ||
|
||
{reason} | ||
|
||
Best wishes, | ||
The {event_name} Editors', 'en', '{event_name} Application Status Update')""") | ||
|
||
def downgrade(): | ||
# Remove the added email template rows | ||
op.execute("DELETE FROM email_template WHERE key IN ('outcome-journal-rejected', 'outcome-journal-desk-rejected', 'outcome-desk-rejected')") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
"""empty message | ||
|
||
Revision ID: d2c160b0cbe5 | ||
Revises: fb6d5f943621 | ||
Create Date: 2024-09-16 08:42:06.110593 | ||
|
||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'd2c160b0cbe5' | ||
down_revision = 'fb6d5f943621' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('outcome', sa.Column('reason', sa.String(length=255), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('outcome', 'reason') | ||
# ### end Alembic commands ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""empty message | ||
|
||
Revision ID: fb6d5f943621 | ||
Revises: d4f153e3cea2 | ||
Create Date: 2024-09-16 07:53:51.262038 | ||
|
||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'fb6d5f943621' | ||
down_revision = 'd4f153e3cea2' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
op.execute("CREATE TYPE outcome_status_new AS ENUM ('ACCEPTED', 'REJECTED', 'WAITLIST', 'REVIEW', 'ACCEPT_W_REVISION', 'REJECT_W_ENCOURAGEMENT', 'DESK_REJECTED')") | ||
op.execute("ALTER TABLE outcome ALTER COLUMN status TYPE outcome_status_new USING status::text::outcome_status_new") | ||
op.execute("DROP TYPE outcome_status") | ||
op.execute("ALTER TYPE outcome_status_new RENAME TO outcome_status") | ||
|
||
def downgrade(): | ||
op.execute("UPDATE outcome SET status = 'REJECTED' WHERE status = 'DESK_REJECTED'") | ||
op.execute("CREATE TYPE outcome_status_old AS ENUM ('ACCEPTED', 'REJECTED', 'WAITLIST', 'REVIEW', 'ACCEPT_W_REVISION', 'REJECT_W_ENCOURAGEMENT')") | ||
op.execute("ALTER TABLE outcome ALTER COLUMN status TYPE outcome_status_old USING status::text::outcome_status_old") | ||
op.execute("DROP TYPE outcome_status") | ||
op.execute("ALTER TYPE outcome_status_old RENAME TO outcome_status") |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cleaned up. I think there is no other print statement that would go in prod.