Skip to content

Commit

Permalink
Update assignment algorithmn
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWilhelm committed Jan 11, 2024
1 parent 28d861c commit 8d9c20d
Show file tree
Hide file tree
Showing 2 changed files with 174 additions and 94 deletions.
143 changes: 129 additions & 14 deletions notebooks/pyconde-pydata-berlin-2024/20_mail_to_reviewers_v1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"outputs": [],
"source": [
"# for activated reviewers we take the e-mail address of their pretalx account\n",
"reviewers_activated = gsheet_df.loc[gsheet_df[Col.pretalx_activated].notnull() & gsheet_df[Col.committee_member].isna(), [Col.speaker_name, 'Pretalx Mail', Col.address_as]]\n",
"reviewers_activated = gsheet_df.loc[gsheet_df[Col.pretalx_activated].notnull(), [Col.speaker_name, 'Pretalx Mail', Col.address_as]]\n",
"reviewers_activated = reviewers_activated.apply(lambda x: Recipient(name=x[Col.speaker_name], email=x['Pretalx Mail'], address_as=x[Col.address_as]), axis=1).to_list()"
]
},
Expand Down Expand Up @@ -407,27 +407,18 @@
" team_id=cfg[\"team_id\"],\n",
" agent_id=cfg[\"agent_id\"],\n",
" status=\"solved\",\n",
" recipients=reviewers_activated[53:]\n",
" recipients=reviewers_activated\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"reviewers_activated[53:]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"mail_client = MailClient()\n",
"responses, errors = mail_client.send(mail, dry_run=False)\n",
"responses, errors = mail_client.send(mail, dry_run=True)\n",
"assert not errors"
]
},
Expand Down Expand Up @@ -498,7 +489,7 @@
" team_id=cfg[\"team_id\"],\n",
" agent_id=cfg[\"agent_id\"],\n",
" status=\"solved\",\n",
" recipients=reviewers\n",
" recipients=reviewers_activated\n",
")"
]
},
Expand All @@ -513,12 +504,82 @@
"assert not errors"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Mail regarding the start of the Review Phase"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"mail_body = \"\"\"\n",
"Hi {recipient.address_as},\n",
"\n",
"les jeux sont faits! The chips are down! and our Call for Proposals is now finally closed :-)\n",
"We are very happy to announce that we have now a total of 484 proposals! That's even 57 more than last year.\n",
"\n",
"So let's all begin with the review process and make this year's PyConDE & PyData Berlin 2024 a great success.\n",
"For this year's review process will try a new approach, simplified approach to last year's process.\n",
"We will assign each reviewer about 33 proposals but expect everyone to review only at least 22 proposals until\n",
"the end of January. So if you have time and want to review more proposals than 22, please feel free to do so.\n",
"This helps out another reviewer who couldn't complete 22 proposals for unforeseen reasons.\n",
"If you want to know more, read the PS text of this mail.\n",
"\n",
"If you have any questions, need help, don't hesitate contacting us at program24@pycon.de.\n",
"We appreciate your help very much and want to make sure that you are having a good time.\n",
"\n",
"Thank you very much {recipient.address_as} for your support!\n",
"\n",
"Summary:\n",
"* Review period: 9. January 2024 - 31 January, 00:00 CET\n",
"* Pretalx: https://pretalx.com/orga/event/pyconde-pydata-2024/reviews/\n",
"* Reviewer Guidelines (http://bit.ly/pyconde24-reviewer-guidelines)\n",
"* [Nonobligatory] PyCon 2024 - Reviewer's Get Together, Meet & Greet and your Questions:\n",
" - Thursday, 11. January 2024 · 5:00 bis 5:40PM CET, video call: https://meet.google.com/zsn-avdq-yhy\n",
"* Contact program24@pycon.de for support if needed\n",
"\n",
"All the best,\n",
"Program Committee\n",
"PyCon DE & PyData Berlin 2024\n",
"\n",
"PS: In total, we are looking like last year for 3 reviews per proposal to get a fair evaluation of each proposal.\n",
"To make sure we really have 3 reviews per proposal in the end, we will initially assign each proposal to 5 reviewers.\n",
"Whenever a proposal has 3 reviews, it will be removed from the list of proposals to review for the remaining reviewers.\n",
"This is the reason why we define a minimum number of proposals to review for each reviewer but assign more proposals.\n",
"\"\"\""
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
"source": [
"mail = Mail(\n",
" subject=\"[PyConDE/PyData 2024] Our Review Phase starts TODAY\",\n",
" text=mail_body,\n",
" team_id=cfg[\"team_id\"],\n",
" agent_id=cfg[\"agent_id\"],\n",
" status=\"solved\",\n",
" recipients=reviewers_activated\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"mail_client = MailClient()\n",
"responses, errors = mail_client.send(mail, dry_run=False)\n",
"assert not errors"
]
},
{
"cell_type": "code",
Expand Down Expand Up @@ -747,6 +808,60 @@
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Mail about start of the review period"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"mail_body = \"\"\"\n",
"Hi {recipient.address_as}!\n",
"\n",
"The review of proposals for the PyConDE / PyData is already in full swing and we are happy to have you on board!\n",
"{recipient.data.feedback}\n",
"\n",
"Please check back frequently into Pretalx as we will soon assign proposals more dynamically. \n",
"PyConDE / PyData is completely community driven by volunteers like you and we highly appreciate your support!\n",
"We will keep you updated.\n",
"\n",
"Information from our past e-mails:\n",
"* Reviewer Guidelines (https://bit.ly/pyconde23-reviewer-guidelines)\n",
"* [Nonobligatory] 2nd live “Meet and Greet” session: 17 January, 17:00 (CET) in Gather Town (https://bit.ly/pyconde23-meet-reviewers)\n",
"* Review to be finished by: 31 January, 00:00 (CET)\n",
"* Contact program23@pycon.de for support if needed\n",
"\n",
"Thank you very much {recipient.address_as} for your support!\n",
"\n",
"\n",
"All the best,\n",
"Program Committee\n",
"PyCon DE & PyData Berlin 2023\n",
"\"\"\""
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"mail = Mail(\n",
" subject=\"Update for you on the review process for PyCon DE / PyData!\",\n",
" text=mail_body,\n",
" team_id=cfg[\"team_id\"],\n",
" agent_id=cfg[\"agent_id\"],\n",
" status=\"solved\",\n",
" recipients=active_recipients\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit 8d9c20d

Please sign in to comment.