Skip to content

BountiesService.approve/reject and MilestonesService.allocateBudget are unimplemented no-op stubs that never touch the database #253

Closed

Description

@abayomicornelius

BountiesService.approve/reject (src/bounties/bounties.service.ts) and MilestonesService.allocateBudget (src/milestones/milestones.service.ts) are:

approve(id: string) {
  return Promise.resolve({ id, status: 'approved' });
}
reject(id: string) {
  return Promise.resolve({ id, status: 'rejected' });
}
allocateBudget(id: string) {
  return Promise.resolve({ id, status: 'budget_allocated' });
}

None of the three queries the DB, checks the state machine, or even verifies id refers to a real row — a completely bogus UUID gets a 200 with {id, status: 'approved'}. BountyStatus (src/common/enums/index.ts) has no APPROVED/REJECTED value at all, so POST /bounties/:id/approve and /reject cannot possibly be wired to any real transition — they're dead ends. All three routes are wrapped in @UseGuards(JwtAuthGuard, RolesGuard) + @Roles(MAINTAINER) and (for approve/reject) @Idempotent(...), which makes them look like real, audited, money-adjacent actions to any API consumer or integrator, when in fact calling them accomplishes nothing.

Fix: either wire these to real state transitions (e.g. an APPROVED pre-funding gate, or remove approve/reject/allocateBudget entirely if they're vestigial) or delete the routes/stub methods so the API surface doesn't lie about what it does.

Activity

  1. shobhamerabacha-star commented on Sep 16, 2026

    @shobhamerabacha-star

    Hey maintainers,

    I would love to take this on. My planned approach:

    • Structure the service layer for BountiesService.approve/reject and MilestonesService.allocateBudget are unimplemented no-op stubs that never touch the database with secure data access and transaction boundaries.
    • Verify API response schemas, authentication middleware, and database rollback safety.

    Looking forward to collaborating on this—please assign!

  2. EmperorNexus commented on Sep 23, 2026

    @EmperorNexus

    @EmperorNexus has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    GM maintainer, can i get assigned to work on this issue
    ETA - 48 hours

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @EmperorNexus to this issue.

  3. Audukuma commented on Sep 23, 2026

    @Audukuma

    @Audukuma has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    I would love to work on this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Audukuma to this issue.

  4. floraispretty commented on Sep 23, 2026

    @floraispretty
    Contributor

    @floraispretty has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    hi maintainer, please assign me this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @floraispretty to this issue.

  5. drips-wave commented on Sep 23, 2026

    @drips-wave

    Congratulations, @floraispretty! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.

    🧑‍💻 @floraispretty: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  6. drips-wave commented on Sep 23, 2026

    @drips-wave

    This issue has been completed by @floraispretty as part of the Stellar Wave Program's 9th Wave 🥳

    😎 @floraispretty: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programarchitectureArchitecture/design issuebugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions