Skip to content

Add allergen data to sample dishes in data.sql - #49

Closed
kingazm with Copilot wants to merge 4 commits into
mainfrom
copilot/add-allergen-data-to-sample-dishes
Closed

Add allergen data to sample dishes in data.sql#49
kingazm with Copilot wants to merge 4 commits into
mainfrom
copilot/add-allergen-data-to-sample-dishes

Conversation

Copilot AI commented Dec 22, 2025

Copy link
Copy Markdown

Sample dishes in data.sql lacked allergen data, preventing proper testing of allergen-based dish filtering.

Changes

  • Added allergen mappings for all 15 sample dishes across 5 restaurants

    • 20 INSERT statements populating dish_allergens table
    • Allergens assigned based on realistic ingredients: GLUTEN (bread, soy sauce), LACTOSE (cheese, cream), MEAT (chicken, pork, fish)
  • Updated .gitignore to exclude Maven target/ directory

Example Data

-- Bistro by Jelonek allergens
INSERT INTO dish_allergens (dish_id, allergen) VALUES
('d2222222-aaaa-bbbb-cccc-000000000001', 'GLUTEN'),    -- Chicken Teriyaki Bowl (soy sauce)
('d2222222-aaaa-bbbb-cccc-000000000001', 'MEAT'),      -- Chicken Teriyaki Bowl (chicken)
('d2222222-aaaa-bbbb-cccc-000000000002', 'GLUTEN'),    -- Miso Soup (miso paste)
('d2222222-aaaa-bbbb-cccc-000000000003', 'MEAT');      -- Salmon Rice Bowl (fish)

Note: Fish/seafood mapped to MEAT allergen due to enum constraints (Dish.Allergens only defines NUTS, GLUTEN, MEAT, LACTOSE).

Original prompt

Make sure the sample dishes added in data.sql have allergen data, so that the dish filtering by the allergens can be seen properly.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits December 22, 2025 13:29
Co-authored-by: kingazm <66728641+kingazm@users.noreply.github.com>
Co-authored-by: kingazm <66728641+kingazm@users.noreply.github.com>
Co-authored-by: kingazm <66728641+kingazm@users.noreply.github.com>
Copilot AI changed the title [WIP] Add allergen data to sample dishes in data.sql Add allergen data to sample dishes in data.sql Dec 22, 2025
Copilot AI requested a review from kingazm December 22, 2025 13:34
@kingazm kingazm closed this Dec 22, 2025
@kingazm
kingazm deleted the copilot/add-allergen-data-to-sample-dishes branch December 22, 2025 14:01
@JUCanEat JUCanEat deleted a comment from Copilot AI Dec 22, 2025
@kingazm
kingazm removed their request for review December 22, 2025 14:03
@JUCanEat JUCanEat locked as resolved and limited conversation to collaborators Dec 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants