Skip to content

Implement project lifecycle management - #78

Merged
ayshadogo merged 1 commit into
Dfunder:mainfrom
LaGodxy:feature/project-lifecycle-management
Mar 24, 2026
Merged

Implement project lifecycle management#78
ayshadogo merged 1 commit into
Dfunder:mainfrom
LaGodxy:feature/project-lifecycle-management

Conversation

@LaGodxy

@LaGodxy LaGodxy commented Mar 24, 2026

Copy link
Copy Markdown
Contributor

Description

This PR introduces a comprehensive project lifecycle management system, enabling controlled transitions between active, paused, and completed states.

Key Features:

  • Added endpoints:

    • PATCH /projects/:id/pause
    • PATCH /projects/:id/resume
    • POST /projects/:id/complete
  • Enforced valid status transitions:

    • active → paused → active
    • active → completed
    • paused → completed
  • Implemented role-based authorization (creator/admin only)

  • Added automatic project completion when deadlines pass

  • Prevented donations to paused or completed projects

  • Implemented status history tracking for auditability

This improves consistency, security, and traceability across project operations.


Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Test addition/improvement

Checklist

  • I have run npm run build successfully with no errors
  • I have run npm test and all tests pass
  • If I added new test files, they all pass
  • My code follows the project's style guidelines
  • I have performed a self-review of my code

CI/CD Requirements

The following checks will run automatically on this PR:

  1. Build Check - Ensures the project builds successfully
  2. Test Check - Ensures all tests pass (including any new test files)

Screenshots (if applicable)

N/A


closes #72

@drips-wave

drips-wave Bot commented Mar 24, 2026

Copy link
Copy Markdown

@LaGodxy Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@ayshadogo
ayshadogo merged commit 2ae4f52 into Dfunder:main Mar 24, 2026
2 checks passed
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.

Implement Project Status Management

2 participants