Skip to content

Conversation

@jon-dalton
Copy link
Contributor

@jon-dalton jon-dalton commented Jun 25, 2024

Describe the technical changes contained in this PR
duplicate_meal_plan postgres function and corresponding graphql function was changed to allow for name inputs. This was so that copy could be put at the end of duplicate meal plans and making changes to this easier for future maintainers.

Previous behaviour
Duplicate meal plans would have the exact same name as the meal plans it would copy from.
image

New behaviour
Duplicate meal plans have the word "copy" added to the end of their English name. This applies to duplicates of duplicates so a 3rd duplicate would be <plan> copy copy copy.
image

Steps to replicate
Log in to meal-planner ui
Create a meal
Click the copy/duplicate button on a meal plan card
Click the copy/duplicate button on the duplicate's meal plan card to observe duplicate of duplicates behaviour.

Related issues addressed by this PR
Fixes #672

Have the following been addressed?

  • Have test cases been created for all of the changes?
  • Do all of the test cases pass?
  • Has the testing been done using the default docker-compose environment?
  • Are documentation changes required?
  • Does this change break or alter existing behaviour?

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.

[FEATURE] Add the word copy to the newly copied meal plan

1 participant