This pull request introduces changes to the project model and MongoDB utility functions to include a slug field in the API response for projects. The slug is generated by replacing spaces in the project name with hyphens, making it more URL-friendly.
Summary
Added an optional slug field to the ProjectModel in models.py.
Modified retrieve_project and retrieve_projects functions in mongodb_utils.py to generate a slug from the project name and include it in the project data returned.
The slug generation logic replaces spaces in the project name with hyphens (-).
These changes aim to enhance the API response with more structured and web-friendly project identifiers.
Fixes #1.
🎉 Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
PR Feedback (click)
Description
This pull request introduces changes to the project model and MongoDB utility functions to include a
slug
field in the API response for projects. The slug is generated by replacing spaces in the project name with hyphens, making it more URL-friendly.Summary
slug
field to theProjectModel
inmodels.py
.retrieve_project
andretrieve_projects
functions inmongodb_utils.py
to generate a slug from the project name and include it in the project data returned.-
).Fixes #1.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can:
This is an automated message generated by Sweep AI.