barajs / barajs/bara

feat(core): add id system and portion lookup

Open
#177 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
0
Forks
2
PR merge metrics
No merged PRs in 30d

Description

At this time, the fastest way to lookup for a portion instance is via its unique name, but this method is not enough for a large scale Bara application. We should organize the Portion by assigning each one a unique id and search through its id.

- [ ] Remove `name` property from a Portion if possible.
- [ ] Add `id` and search index for quickly portion accessing.
- [ ] Support multi portion instances #175.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files, tests, or entry points. Start by locating Portion instances and the current name-based lookup in the core code, then clarify the id, search-index, and multi-instance requirements. Done means the intended lookup behavior and compatibility expectations are defined and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.