Skip to content

CCE Minor Core Functionality (Edit/View/Withdraw/Modify)#1428

Open
bledsoef wants to merge 104 commits intodevelopmentfrom
1399_EditFunctionality
Open

CCE Minor Core Functionality (Edit/View/Withdraw/Modify)#1428
bledsoef wants to merge 104 commits intodevelopmentfrom
1399_EditFunctionality

Conversation

@bledsoef
Copy link
Contributor

@bledsoef bledsoef commented Mar 17, 2025

Issue Description

Fixes #1399

  • Once a proposal is submitted, we cannot currently modify its status (edit, view, withdraw or mark as completed). We need to add functionality to the action dropdown that will allow us to do so.

Changes

  • Implemented necessary permissions to allow students to view their minor profile and create proposals.
  • Updated all input fields in Request Other Engagement and Summer Experience forms to now populate with existing data, if possible.
  • Added new routes to minor/routes.py that load the page with proper permissions.
  • Updated the statuses for proposals to match that of Course Proposals.
  • Once a proposal is approved by an admin, it can no longer be edited by the student who put it in, only by an admin.
  • Added functionality to quickly approve or unapprove a proposal at any stage.

Testing

  • Reset database.
  • Go to the Minor Management page in the Admin dropdown.
  • Select any student's name and go to the Manage Proposals tab.
  • Create a new Other Engagement and Summer Experience.
  • Mess around with editing data, saving, and making sure it is populated when you go to edit or view it again.
  • Run the tests and ensure they work.

While testing, look out for a few things:

  • Is the PR functional? Are there any bugs?
  • Is page navigation intuitive? Are the required things for creating a proposal clear for our users?
  • Are color conventions and webpage design choices clear and in accordance with how we use colors in the rest of the app?

If the above look good, then the PR can be stepped towards merging.

@bledsoef bledsoef changed the title CCE Minor Edit Functionality CCE Minor Edit/View Functionality Mar 17, 2025
@ojmakinde
Copy link
Contributor

ojmakinde commented Mar 18, 2025

mid pr i'll be honest (i haven't looked at it)

@Kafui123 Kafui123 force-pushed the 1399_EditFunctionality branch from 4c30034 to 7f8682a Compare April 2, 2025 20:23
Base automatically changed from 1395_NewCCEMinorPortal to development April 4, 2025 20:23
@bledsoef bledsoef marked this pull request as ready for review April 7, 2025 21:22
@bledsoef bledsoef self-assigned this Apr 7, 2025
@bledsoef bledsoef requested a review from Copilot April 7, 2025 21:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 6 out of 12 changed files in this pull request and generated no comments.

Files not reviewed (6)
  • app/templates/minor/cceMinorProposalManagement.html: Language not supported
  • app/templates/minor/companyOrganizationInformation.html: Language not supported
  • app/templates/minor/profile.html: Language not supported
  • app/templates/minor/requestOtherEngagement.html: Language not supported
  • app/templates/minor/summerExperience.html: Language not supported
  • app/templates/minor/supervisorInformation.html: Language not supported
Comments suppressed due to low confidence (2)

app/controllers/minor/routes.py:88

  • [nitpick] The function name 'createSummerExperienceExperience' is redundant and may be unclear. Consider renaming it to something like 'createSummerExperienceRequest' to better reflect its purpose.
def createSummerExperienceExperience(username):

app/logic/minor.py:42

  • [nitpick] The error message in the updateSummerExperience function reads 'Error saving summer experience' which may be misleading in an update operation. Consider revising the message to indicate an update failure.
def updateSummerExperience(proposalID, formData):

@ojmakinde
Copy link
Contributor

when I try to submit a draft, it asks me to check the community and identity box, although I chose to check Power and Inequality.
Image

Hey, I had fixed this bug. Did you pull? I tried to reproduce this but I couldn't.

@ojmakinde ojmakinde requested a review from bakobagassas March 8, 2026 06:55
@RueHaile
Copy link
Contributor

RueHaile commented Mar 9, 2026

image Why is it taking 'e' alone as an input for that field that should be a number? Is it an exception? For the website filed make sure that we are accounting for all the inputs that the users can put, such as a single letter, so we need gardrales to only accept the fields that we want. which is a website, so have an expectation for a "www.xyz." The input value attribute we accept should specify an initial value for an input field. image

@RueHaile
Copy link
Contributor

RueHaile commented Mar 9, 2026

Steps

  1. Create a CCE minor request summer experience on studnet-side/ I picked Collins
  2. Go in as an admin and try to approve that cce minor. The admin, both Dr. Heggan and Brian, aren't able to approve, edit it, or mark it as complete. There is a logic issue it?
image

@bakobagassas
Copy link
Contributor

Related to Rue's latest comment:

I verified: edit, approve, mark as completed all work. You should try to pull and update the branch

@bakobagassas
Copy link
Contributor

image

We cannot input letters into the hours box, but we don't get an indication saying that it is not working because we need to input a number and not letter. Is that okay?

Gbayi added 2 commits March 15, 2026 21:02
…oblem, where attachments were not deleted even after the user clicked the trash icon.
@ojmakinde
Copy link
Contributor

image

We cannot input letters into the hours box, but we don't get an indication saying that it is not working because we need to input a number and not letter. Is that okay?

Yeah, it's okay because the text box is intuitive enough that the CELTS users will put numbers in the field, I think

@ojmakinde
Copy link
Contributor

ojmakinde commented Mar 16, 2026

Steps

1. Create a CCE minor request summer experience on studnet-side/ I picked Collins

2. Go in as an admin and try to approve that cce minor. The admin, both Dr. Heggan and Brian, aren't able to approve, edit it, or mark it as complete. There is a logic issue it?
image

The proposal must be submitted by the student (or any user, like Brian or Scott) before it can be approved.
Also, thank you for this observation: I will change the name from "Proposal Submitted by User" to "Proposal Submitted"

MImran2002
MImran2002 previously approved these changes Mar 16, 2026
Copy link
Contributor

@MImran2002 MImran2002 left a comment

Choose a reason for hiding this comment

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

I have checked for the changes I have requested and they are delivered.

…Dict calls with a regular, mutable MultiDict.
@ojmakinde ojmakinde dismissed bakobagassas’s stale review March 17, 2026 02:52

The changes requested were fixed months ago.

Gbayi added 2 commits March 17, 2026 12:48
@github-actions
Copy link

View Code Coverage

Copy link
Contributor

@bakobagassas bakobagassas left a comment

Choose a reason for hiding this comment

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

I was thinking that it might be good to have validity tags when I don't input a name and try to submit the proposal. Or perhaps it should be another issue?

Copy link
Contributor

@bakobagassas bakobagassas left a comment

Choose a reason for hiding this comment

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

When I input a letter at first it does not work, however, after I input a number then delete it to input a letter then it works.

Image

Copy link
Contributor

@bakobagassas bakobagassas left a comment

Choose a reason for hiding this comment

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

I am not able to save a draft if the name of the supervisor or the name of the company is not there. I wonder though, shouldn't we at least be able to save a draft to come back and continue later?

Image

@ojmakinde
Copy link
Contributor

I am not able to save a draft if the name of the supervisor or the name of the company is not there. I wonder though, shouldn't we at least be able to save a draft to come back and continue later?
Image

All fields need to be entered before a draft can be created

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.

Add an edit feature and distinguush between editing and creating a Summer Experience or Other Engagement

8 participants