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

Removed rows from canceled course proposals #1246

Merged
merged 10 commits into from
Jul 31, 2024
Merged

Conversation

CollegeStevenLN
Copy link
Contributor

@CollegeStevenLN CollegeStevenLN commented Jun 26, 2024

We added an ajax request onto the cancelButton event handler that routes to a new route 'canceledProposal'. If the proposal has no course name and abbreviation, then the course row is deleted in the database as well as the dependent row from the course questions table.

Resolves #1210

app/controllers/serviceLearning/routes.py Outdated Show resolved Hide resolved
app/controllers/serviceLearning/routes.py Outdated Show resolved Hide resolved
app/controllers/serviceLearning/routes.py Show resolved Hide resolved
app/static/js/slcNewProposal.js Outdated Show resolved Hide resolved
app/static/js/slcNewProposal.js Outdated Show resolved Hide resolved
@@ -189,7 +189,12 @@ def withdrawProposal(courseID) -> None:
except DoesNotExist:
print(f"File, {AttachmentUpload.fileName}, does not exist.")

# delete course object
# deletes course
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment is not needed, the line right after describes what is going on pretty well in my opinion

Copy link

View Code Coverage

@BrianRamsay BrianRamsay merged commit 6bd7229 into development Jul 31, 2024
5 checks passed
@BrianRamsay BrianRamsay deleted the empty-course-row branch July 31, 2024 13:37
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.

mySQL creating empty rows in Course Proposals
3 participants