Description
We've encountered a case where the start_date or end_date field in the Project model is null in the database. This causes a 500 Internal Server Error on the project detail page in the frontend when attempting to render the project.
✅ Proposed Actions
- Add a fallback in the frontend/backend to handle cases where
start_date or end_date is null, to avoid runtime errors.
- Investigate the root cause of these fields being saved as
null.
null values should only be allowed for projects in draft status.
- For projects that are published or active, both
start_date and end_date should be required and properly validated.
✅ Expected Behavior
- Projects in draft status: may have missing (
null) date fields.
- Projects in published/active status: must have valid
start_date and end_date.
- Application must not crash due to missing date fields.
💥 Impact
This issue causes the frontend to break with a 500 error, impacting user access to project pages and overall app stability.
📝 Additional Notes
- Consider checking validation at both the model and serializer/form level.
- Review any migrations or data input sources that may allow saving projects without these fields.
Description
We've encountered a case where the
start_dateorend_datefield in theProjectmodel isnullin the database. This causes a500 Internal Server Erroron the project detail page in the frontend when attempting to render the project.✅ Proposed Actions
start_dateorend_dateisnull, to avoid runtime errors.null.nullvalues should only be allowed for projects in draft status.start_dateandend_dateshould be required and properly validated.✅ Expected Behavior
null) date fields.start_dateandend_date.💥 Impact
This issue causes the frontend to break with a
500error, impacting user access to project pages and overall app stability.📝 Additional Notes