Skip to content

Mentee to Mentor Program Creation Bug Fix#315

Merged
CodePokeX merged 1 commit into
IEEE-NITK:mainfrom
CodePokeX:SMP
May 9, 2026
Merged

Mentee to Mentor Program Creation Bug Fix#315
CodePokeX merged 1 commit into
IEEE-NITK:mainfrom
CodePokeX:SMP

Conversation

@CodePokeX

Copy link
Copy Markdown
Contributor

Description

Earlier each Executive Member could be a member and mentor in only one SMP program while the mentees could be in several programs. However the logic did not take into account that some of the 1st year mentees would become Executive members in their 2nd years, thus creating a new program as a mentor this time was throwing Execption to prevent Executive mebers from being in more than one SMP.

Simple fix done to check if the user requesting to create a new Program has any past programs as a Mentor. If not allow creation of program.

Fixes #314

Dependencies

List any dependencies that are required for this change.

Type of Change

What types of changes does your code introduce?
Put an x in the boxes that apply

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration. (for bug fix / breaking change)
Put an x in the boxes that apply

  • Test A
  • Test B

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@CodePokeX CodePokeX self-assigned this May 9, 2026
@CodePokeX CodePokeX added the bug Something isn't working label May 9, 2026
@CodePokeX CodePokeX added this to the v0.2 milestone May 9, 2026
@CodePokeX CodePokeX merged commit c4abed1 into IEEE-NITK:main May 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: SMP Creation Bug

2 participants