Improve database handling of model indices #7

Closed
opened 2025-05-27 18:18:17 +00:00 by MahmoudEmad · 2 comments
Member

Task

  • Ensure all model types always have a primary key index entry.
  • Simplify get_all() implementation by relying on primary key index.
  • Remove redundant code in get_all() for finding all object IDs.
  • Improve error handling and clarity in database operations.
### Task - Ensure all model types always have a primary key index entry. - Simplify `get_all()` implementation by relying on primary key index. - Remove redundant code in `get_all()` for finding all object IDs. - Improve error handling and clarity in database operations.
MahmoudEmad self-assigned this 2025-05-27 18:18:28 +00:00
Author
Member

This PR implements this issue

This [PR](https://git.ourworld.tf/herocode/db/pulls/6) implements this issue
Author
Member

Issue Update

Fixed an issue in the calendar example where missing object fields caused errors. The problem was identified and corrected. After the fix, the tests ran successfully without any issues.

Changes

  • Added missing object fields in the calendar example
  • Verified the fix by rerunning the tests successfully
### Issue Update Fixed an issue in the calendar example where missing object fields caused errors. The problem was identified and corrected. After the fix, the tests ran successfully without any issues. ### Changes * Added missing object fields in the calendar example * Verified the fix by rerunning the tests successfully
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: herocode/db#7
No description provided.