makampos / fit-sync

Build your workout plan and synchronize it with the calendar that suits you best.
MIT License
0 stars 0 forks source link

Extend Workout Entity by Adding New Fields #14

Open makampos opened 2 weeks ago

makampos commented 2 weeks ago

User Story

As a: User
I want: Create a custom workout. Then Set as a field 'visibility' as public(community) or private. So that: I can search for the workout created previously by filtering for public, private (created by my own).

Tips

Acceptance Criteria


Test Scenarios

Outline the scenarios that will be tested to ensure this user history is implemented correctly. Include both positive and negative test cases.

  1. Scenario 1: Success.

    • Given: a custom workout filled in
    • When: created
    • Then: the workout should be created with visibility 'private'
  2. Scenario 2: Success.

    • Given: a custom workout is get by ID or all
    • When: user filter by visibility
    • Then: only the workouts with target visibility should be returned

Definition of Done

Clearly define what it means for this user history to be considered complete. Include criteria such as coding standards, testing requirements, and documentation.


igorbusto commented 1 week ago

A question, i created the visibility, i need additional the variable in the methods "put" and "get" ?

makampos commented 1 week ago

A question, i created the visibility, i need additional the variable in the methods "put" and "get" ?

Yes, once you add a new property in WorkoutEntity you will need also to update the mappers in FitSync.Application.Extensions for each WorkoutViewModel.

Some extra steps are needed;

  1. The new property should be visible when users create workouts; (update AddWorkoutDto to include it)
  2. The new property should be visible when users update workouts; (update UpdateWorkoutDto to include it)