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

Major Project Slack Bot #361

Merged
merged 7 commits into from
Sep 8, 2022
Merged

Major Project Slack Bot #361

merged 7 commits into from
Sep 8, 2022

Conversation

atauln
Copy link
Contributor

@atauln atauln commented Sep 7, 2022

No description provided.

Copy link
Contributor

@jabbate19 jabbate19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Questions + 1 nit

conditional/blueprints/major_project_submission.py Outdated Show resolved Hide resolved
config.env.py Show resolved Hide resolved
conditional/blueprints/major_project_submission.py Outdated Show resolved Hide resolved
Copy link
Contributor

@jabbate19 jabbate19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works, just wanna see this change so its easier for us to see who it is

conditional/blueprints/major_project_submission.py Outdated Show resolved Hide resolved
@atauln atauln requested a review from jabbate19 September 8, 2022 00:58
Copy link
Contributor

@jabbate19 jabbate19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, please make sure it is passing pylint check. Download pylint and run it before committing

@@ -65,7 +70,7 @@ def submit_major_project(user_dict=None):
return jsonify({"success": False}), 400
project = MajorProject(user_dict['username'], name, description)

send_slack_ping({"text":f"<!subteam^S5XENJJAH> {user_dict['username']} submitted their major project, *{name}*!"})
send_slack_ping({"text":f"<!subteam^S5XENJJAH> {context_processors.get_member_name(user_dict['username'])} *{user_dict['username']}* submitted their major project, *{name}*!"})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't need to specify context_processors if you did what you did on line 1... should be able to just do get_member_name

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also nit on the formatting, I think it would be easier to read if the username was in parentheses, not boldened. We know people by name first and the username is extra into

@jabbate19 jabbate19 mentioned this pull request Sep 8, 2022
@atauln atauln requested a review from jabbate19 September 8, 2022 05:14
@atauln atauln requested a review from jabbate19 September 8, 2022 16:10
Copy link
Contributor

@jabbate19 jabbate19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, sending to dev

@jabbate19 jabbate19 merged commit c3deced into ComputerScienceHouse:develop Sep 8, 2022
@Mstrodl
Copy link
Member

Mstrodl commented Nov 26, 2022

Fixes #359

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants