GeriLife / GeriLife/wellbeing

Reorganize collections to allow them to be split across client/server

Open
#260 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
13
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Right now, the collection code is defined in 'both' directory. This, by naming convention, implies that the code should run on both client and server. However, there are some aspects of collections, such as indexes, that only need to be defined on the server.

# Task
- reorganize collection data to allow it to be explicitly split between client and server
- break out parts of collection into explicit files, such as permissions, schema, etc

Related task: #259

Contributor guide

Open the contributing guide

Research direction

Start by inspecting the collection code in the `both` directory and read related issue #259 for context. Map the existing collection data, including permissions, schema, and indexes, then reorganize it so client- and server-specific parts are explicit and separately located.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
full-stack
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.