Skip to content

Feature: Replace Mock User Helpers with Profile API #133

Description

@3m1n3nc3

Description

Replace hard-coded user controller helpers with Prisma-backed account/profile reads and updates.

File Location

learnault-api/src/controllers/user.controller.ts, profile service/schemas/routes, and tests

Design Reference

API Roadmap Phase 1: Replace Mock User Helpers with Profile API.

Dependencies

Tasks

  • Remove mock user/password/wallet helper implementations
  • Add owner account/profile aggregate read
  • Add validated audited profile update
  • Add consent-aware public profile read or explicitly defer it
  • Return profile completion and onboarding state
  • Test auth, not found, conflict, privacy, and update

Acceptance Criteria

  • No production user route returns hard-coded users
  • Owners update only allowed fields
  • Private data never enters public response
  • Audit/validation is tested
  • OpenAPI passes

Verification Evidence

  • Attach mock scan, redacted curl, and profile integration tests

Difficulty

Advanced

Activity

  1. added theissue type on Aug 19, 2026
  2. Santia2004 commented on Aug 27, 2026

    @Santia2004

    Hi @maintainer! I'd like to work on this issue.

    I have checked the requirements and can implement the proposed solution. Could you please assign it to me? Thanks!

  3. feyishola commented on Aug 28, 2026

    @feyishola
    Contributor

    Hi im Feyishola a software engineer with over 5 years of experience. Please i would love to handle this issue

  4. grantfox-oss commented on Aug 28, 2026

    @grantfox-oss

    🦊 GrantFox — @feyishola has been assigned to this issue as part of the Third Campaign campaign!

    Next steps:

    1. Open a Pull Request referencing this issue (e.g., Closes #133)
    2. Your PR will be reviewed by the learnault maintainers

    Good luck! Track your progress on GrantFox.

  5. grantfox-oss commented on Aug 29, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox as part of the Third Campaign campaign!

    @feyishola's PR #154 was approved and merged by @3m1n3nc3.

    🏆 @feyishola: You earned 40 FoxPoints for this contribution! Your current tier: Builder (1,145 total points). Track your full progress on GrantFox.

    👏 Great work, @feyishola! Keep contributing to learnault.

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

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions