cqframework / cqframework/cql-execution

Refactor Context and Library

Open
#283 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
84
Forks
38
Avg merge
1d 20h
Merged PRs (30d)
1

Description

The Context and Library classes can be confusing to understand, especially in relationship to each other. In addition, it seems there may be some theoretical issues with a Library being a parent of a Context. We should consider how we might refactor this code to be more straight-forward and type-friendly. See also: https://github.com/cqframework/cql-execution/pull/282#discussion_r1003443141

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the Context and Library class definitions and the discussion linked from pull request #282. Map how the two classes relate, including the concern about Library being a parent of Context, before proposing a simpler, type-friendly design. Done means the relationship is agreed and the refactor has appropriate validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Refactor
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.