Closed nhunzaker closed 6 years ago
Merging #488 into master will increase coverage by
0.14%
. The diff coverage isn/a
.
@@ Coverage Diff @@
## master #488 +/- ##
========================================
+ Coverage 97.86% 98% +0.14%
========================================
Files 29 29
Lines 702 702
Branches 137 137
========================================
+ Hits 687 688 +1
+ Misses 13 12 -1
Partials 2 2
Impacted Files | Coverage Δ | |
---|---|---|
packages/microcosm-dom/src/utilities.js | 100% <0%> (+7.14%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 537c4a4...1f1a60c. Read the comment docs.
Exciting!
This PR starts micromanage, what I consider to be the missing piece of Microcosm: a data management and querying layer. Domains work reasonably well enough as data-bags, however I'm not happy with how low level their data management operations are. Consider:
* Important: This is the microcosm 13 API.
This is too low level:
repo.domains.widgets.find(props.id)
, or something even shorter.We can do better. These are not valuable uses of project time. What if this were something like:
Querying for an entity is never null.
repo.domains.widgets.find
above could return:So here goes! This PR includes an initial outline of what I'd like. It's pretty high level, but I thought I'd send it out for transparency.