Skip to content

Commit 7ffdd0c

Browse files
authored
Merge pull request #42 from OpenDash-Team/m1-readme-and-scrum
Updated README.md, added PROVENANCE and SCRUM NOTES
2 parents 8024c90 + 4fdec73 commit 7ffdd0c

3 files changed

Lines changed: 206 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ The API provides the following endpoints:
8989
| GET | `/restaurants/{restaurant_id}` | `Retrieves a specific restaurant by its ID.` |
9090
| POST | `/restaurants` | `Creates a restaurant. Returns 201, 409 if the same name and address already exist, 422 for invalid input.` |
9191
| PATCH | `/restaurants/{restaurant_id}` | `Updates only the fields sent. Returns 200, 404 for an unknown ID, 409 for a duplicate, 422 for invalid input.` |
92+
| POST | `/restaurants/{restaurant_id}/menu-items` | `Creates a new menu item. Returns 201, 404 if the restaurant is not found, 422 for invalid input.` |
93+
| PATCH | `/restaurants/{restaurant_id}/menu-items/{menu_item_id}` | `Updates a menu item's fields. Returns 200, 404 if the item or restaurant is not found, 422 for invalid input.` |
94+
| DELETE | `/restaurants/{restaurant_id}/menu-items/{menu_item_id}` | `Deletes a specific menu item. Returns 204 on success, 404 if not found.` |
9295

9396

9497
## API Documentation
@@ -126,6 +129,8 @@ OpenEats/
126129
│ │ └── test-data/ # Test data
127130
│ └── requirements.txt # Python dependencies
128131
├── frontend/
132+
├── docs/PROVENANCE.md
133+
├── scrum/
129134
├── README.md
130135
└── .gitignore
131136
```

‎docs/PROVENANCE.md‎

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
Entry 1
2+
- Student(s): Mustafa
3+
- Artifact: backend/app/schemas/restaurant_request.py, backend/app/services/restaurant_service.py, backend/app/api/routes.py, backend/tests/test_restaurant_request.py
4+
- Label: AI-ASSISTED
5+
- AI tool: ChatGPT / Gemini
6+
- Purpose: Help identify test cases, edge cases (length boundaries, blank/missing fields, duplicates), and structure repetitive testing patterns for restaurant creation and updating.
7+
- Influence: Used the AI-suggested test structures and edge cases when writing and building the test suite.
8+
- Validation: Reviewed all generated test logic, manually verified coverage, and ran the full test suite and CI pipeline on every change.
9+
- PR: #38, #41
10+
11+
Entry 2
12+
- Student(s): Casey
13+
- Artifact: backend/app/api/routes.py
14+
- Label: AI-ASSISTED
15+
- AI tool: ChatGPT
16+
- Purpose: Implement fixes for making menu creation, updating, and deleting endpoints.
17+
- Influence: Referenced and adapted the generated implementation to fix route logic.
18+
- Validation: Manual checking, unit tests, and teammate review.
19+
- PR: #39
20+
21+
Entry 3
22+
- Student(s): Casey
23+
- Artifact: backend/app/repositories/restaurant_repository.py
24+
- Label: AI-ASSISTED
25+
- AI tool: ChatGPT
26+
- Purpose: Adding temporary files to prevent broken JSON and atomic saving.
27+
- Influence: Referenced and adapted the generated implementation for atomic file replacement.
28+
- Validation: Manual checking, unit tests, and teammate review.
29+
- PR: #39
30+
31+
Entry 4
32+
- Student(s): Casey
33+
- Artifact: backend/app/services/restaurant_service.py, backend/app/api/routes.py
34+
- Label: AI-GENERATED
35+
- AI tool: ChatGPT
36+
- Purpose: To debug errors while trying to make menu operations independent from `section_id`.
37+
- Influence: Used and adapted the generated implementation to fix the routing and recursive service layer search logic.
38+
- Validation: Manual checking, unit tests, and teammate review.
39+
- PR: #39
40+
41+
Entry 5
42+
- Student(s): Casey
43+
- Artifact: backend/tests/test_menu_item_routes.py
44+
- Label: AI-GENERATED
45+
- AI tool: ChatGPT
46+
- Purpose: Implement the JSON files and dummy data for testing the routes.
47+
- Influence: Used and adapted the generated implementation to seed the test cases.
48+
- Validation: Manual checking, unit tests, and teammate review.
49+
- PR: #39
50+
51+
Entry 6
52+
- Student(s): Casey
53+
- Artifact: backend/tests/test_restaurant_service.py
54+
- Label: AI-ASSISTED
55+
- AI tool: ChatGPT
56+
- Purpose: Explore approaches on how to implement testing for the service layer logic.
57+
- Influence: Used the suggested approach when implementing the testing logic and assertions.
58+
- Validation: Manual checking, unit tests, and teammate review.
59+
- PR: #39
60+
61+
Entry 7
62+
- Student(s): Nathan
63+
- Artifact: backend/tests/test_restaurant_id_endpoint.py, backend/tests/test_restaurant_id_repository.py, backend/tests/test_restaurants_endpoint.py, backend/tests/test_restaurants_repository.py, backend/tests/test_restaurants_service.py
64+
- Label: AI-ASSISTED
65+
- AI tool: Gemini
66+
- Purpose: Ensure correct test coverage and structure for all endpoints, service, and repository tests.
67+
- Influence: Used the generated test cases and suggestions for tests.
68+
- Validation: Manual checking, verified test coverage, ran the full test suite, and integrated via Pull Requests.
69+
- PR: #40

‎scrum/m1-scrum-notes.md‎

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
# Sprint Planning 1
2+
3+
## Sprint Information
4+
5+
- **Sprint / Milestone:** Milestone 1
6+
- **Sprint dates:** 2026-10-05 to 2026-10-16
7+
- **Planning meeting date:** 2026-10-05
8+
- **Facilitator:** Nathan
9+
10+
### Team Members
11+
12+
- [x] Nathan
13+
- [x] Rameez
14+
- [x] Casey
15+
- [x] Mustafa
16+
17+
---
18+
19+
## 1. Sprint Goal
20+
21+
> What should the team have working by the end of this sprint?
22+
23+
**Sprint Goal:**
24+
25+
Implement first backend vertical slice.
26+
27+
---
28+
29+
## 2. Sprint Backlog
30+
31+
Select the user stories that the team commits to working on during this sprint.
32+
33+
| User Story | Description | Priority | Primary Owner | Dependencies |
34+
|---|---|---|---|---|
35+
| #16 | [USER STORY] [US 1.1 See Restaurant Details] | High | Nathan | |
36+
| #26 | [USER STORY] [US 1.2 Filtering Restaurants] | High | Nathan | |
37+
| #21 | [USER STORY] [US 2.1 Creating Restaurant] | High | Mustafa | |
38+
| #22 | [USER STORY] [US 2.2 Updating Restaurant Information] | High | Mustafa | |
39+
| #23 | [USER STORY] [US 2.3 Adding Menu Items] | High | Casey | |
40+
| #24 | [USER STORY] US 2.4 Editing Menu Items] | High | Casey | |
41+
42+
43+
Front End implementation | Medium | Rameez
44+
45+
> **Important:** Primary ownership means that the student is responsible for coordinating the work. It does not mean that the student works alone or that other team members cannot contribute.
46+
47+
---
48+
49+
## 3. Task Decomposition
50+
51+
Break larger user stories into smaller tasks that can be implemented, reviewed, and tested.
52+
53+
### User Story Tasks
54+
55+
- [x] #19 [TASK] Provide customer with restaurant details
56+
- [x] #18 [TASK] Implement /restaurants endpoint with restaurant ID
57+
- [x] #36 [TASK] Sorted Restaurant Endpoint
58+
- [x] #29 [TASK] Create restaurant management endpoints
59+
- [x] #34 [TASK] Pydantic model for creation and modification of menu items
60+
- [x] #35 [TASK] Menu Item creation and modification endpoints
61+
62+
### Chores & Tests
63+
64+
- [x] #32 [CHORE] CI Infrastructure
65+
- [x] #4 [Task] Test Health endpoint with pytest
66+
- [x] #7 [Task] Add pytest tests for GET /restaurants and repository layer
67+
- [x] #5 Incomplete README File
68+
- [x] [Task] Frontend
69+
70+
---
71+
72+
## 4. Dependencies and Integration
73+
74+
Identify work that depends on another team member, subsystem, or component.
75+
76+
| Dependency | Related User Stories | Who is Responsible? | Planned Resolution |
77+
|---|---|---|---|
78+
| File Persistence | #16, #26, #21, #22, #23, #24 | Nathan / Mustafa | Finish JSON repository first |
79+
| Pydantic Models | #23, #24 | Casey | Build schemas first |
80+
81+
### Integration Plan
82+
83+
Merge backend routes to `main` via Pull Requests.
84+
85+
---
86+
87+
## 5. Risks and Potential Blockers
88+
89+
Identify anything that could prevent the team from achieving the sprint goal.
90+
91+
| Risk / Blocker | Impact | Planned Action | Owner |
92+
|---|---|---|---|
93+
| JSON Validation | High | Use `TypeAdapter` | Casey / Mustafa |
94+
| File overwrite | High | Use atomic writes | Nathan |
95+
96+
---
97+
98+
## 6. Definition of Done
99+
100+
For work to be considered **DONE**, the team agrees that it must satisfy the following:
101+
102+
- [x] Requirements/acceptance criteria are satisfied.
103+
- [x] Business logic is implemented in the appropriate service layer.
104+
- [x] Persistence is handled through the repository layer.
105+
- [x] Appropriate unit tests are included.
106+
- [x] Appropriate integration/API tests are included.
107+
- [x] Tests pass.
108+
- [x] Code has been reviewed by at least one teammate.
109+
- [x] Review feedback has been addressed.
110+
- [x] Documentation has been updated where necessary.
111+
- [x] The change is integrated into the team's working version.
112+
- [x] No known critical defects remain.
113+
114+
---
115+
116+
## 7. Sprint Commitment
117+
118+
Before ending the meeting, each team member should confirm their understanding of the sprint plan.
119+
120+
| Team Member | Initial Responsibilities | Confirmed |
121+
|---|---|---|
122+
| Nathan | US 1.1, US 1.2, CI, Tests | [x] |
123+
| Mustafa | US 2.1, US 2.2 | [x] |
124+
| Casey | US 2.3, US 2.4 | [x] |
125+
| Rameez | README and Frontend | [x] |
126+
127+
---
128+
129+
## Meeting Notes
130+
131+
- Use `restaurants.json`.
132+
- Rameez responsible for entire frontend

0 commit comments

Comments
 (0)