Skip to content
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

Renaming Template file #669

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions app/modules/role/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def role_view_handler(ack, body, say, logger, client):
logger.info(f"Created folder: {role_name} / {folder_id}")

# Step 2: Copy the template files into the new folder (Scoring Guilde, Template for Core Values interview notes, Template for Technical interview notes
# Intake form, SoMC template)
# Intake form, Phone screen template)
scoring_guide_id = google_drive.copy_file_to_folder(
os.getenv("SCORING_GUIDE_TEMPLATE"),
f"Template 2022/06 - {role_name} Interview Panel Scoring Document - <year/month> ",
Expand Down Expand Up @@ -238,16 +238,16 @@ def role_view_handler(ack, body, say, logger, client):
f"Created document: Intake Form in folder: Intake Form / {intake_form_id}"
)

somc_template_id = google_drive.copy_file_to_folder(
os.getenv("SOMC_TEMPLATE"),
"SoMC Template",
phone_screen_template_id = google_drive.copy_file_to_folder(
os.getenv("PHONE_SCREEN_TEMPLATE"),
"Phone Screen - Template",
os.getenv("TEMPLATES_FOLDER"),
folder_id,
scopes=ROLE_SCOPES,
delegated_user_email=BOT_EMAIL,
)
logger.info(
f"Created document: SoMC Template in folder: SoMC Template / {somc_template_id}"
f"Created document: Phone Screen Template in folder: Phone Screen Template / {phone_screen_template_id}"
)

recruitment_feedback_template_id = google_drive.copy_file_to_folder(
Expand Down
4 changes: 2 additions & 2 deletions app/tests/modules/role/test_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ def test_copy_files_to_internal_talent_folder(
delegated_user_email="bot_email",
),
call(
os.getenv("SOMC_TEMPLATE"),
"SoMC Template",
os.getenv("PHONE_SCREEN_TEMPLATE"),
"Phone Screen - Template",
os.getenv("TEMPLATES_FOLDER"),
"folder_id",
scopes=["https://www.googleapis.com/auth/drive"],
Expand Down
Loading