[#672] - Added copy to the end of duplicate meal plans #716
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe the technical changes contained in this PR
duplicate_meal_planpostgres 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.
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.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?