• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

scriptype / writ-cms / 18160146944
39%

Build:
DEFAULT BRANCH: master
Ran 01 Oct 2025 11:06AM UTC
Jobs 7
Files 109
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Oct 2025 10:55AM UTC coverage: 72.83% (-2.7%) from 75.488%
18160146944

push

github

scriptype
[CM2] Introduce facets

An interactive rebase of months worth of thinking, doing and not doing.

Faceting is similar to the earlier tag indexing. With facets, posts can be indexed by any fields, not just tags.

With this, tag indexing is no longer a special case. There's no need for modelling or rendering tags.

Facets are created based on 'facetKeys' of a contentType. A simple array of keys works.

Now, each collection has a new route: '/by' which is listing all available facet views in the collection.

And each facet view has a route: /by/facet-name. E.g. /by/author, /by/date, /by/tags. In that page, possible values for the facet can be listed.

And each possible value for the facet has the route: /by/facet-name/value. E.g. /by/author/enes, /by/date/1970-11-23, /by/tags/css. There, posts matching the criteria can be shown.

These new render targets should be implemented inside the theme, and that's what should come soon. So far, working with a local laboratory that has a custom theme.

A notable side-effect of turning a field into a facet is that the field becomes an object in the shape of: { value, facetPermalink }. So, if 'date' field is a facet, templates should do: {{date.value}} to display its value and {{date.facetPermalink}} to render a link to the facet value page in the collection. The name 'facetPermalink' is so ugly tho.

If a facet field links to another entry, then the field's value, which is populated with the linked entry, just gets a 'facetPermalink', to make it possible to render links both to the linked entry and to the facet value page.

Facets work across deep category tree. So, all of the mentioned routes exist at each stop.

E.g.
site.com/photos/by/subject,
site.com/photos/astro/by/subject,
site.com/photos/astro/deep-space/by-subject

An 'afterEffects' mechanism is invented for models. Facets needed to be collected after the tree-building and linking are finished. So, all the way from the root, each model does whatever side-eff... (continued)

495 of 810 branches covered (61.11%)

Branch coverage included in aggregate %.

45 of 144 new or added lines in 8 files covered. (31.25%)

8 existing lines in 3 files now uncovered.

2282 of 3003 relevant lines covered (75.99%)

242.7 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
87.1
0.89% src/compiler/contentModel2/helpers.js
1
68.75
-1.25% src/compiler/contentModel2/models/homepage.js
2
53.66
-2.75% src/compiler/contentModel2/models/subpage.js
4
45.83
2.08% src/compiler/contentModel2/index.js
8
59.88
-3.03% src/compiler/contentModel2/models/collection/category.js
9
71.61
-5.69% src/compiler/contentModel2/models/collection/index.js
74
10.57
src/compiler/contentModel2/models/collection/facet.js

Uncovered Existing Lines

Lines Coverage ∆ File
1
59.88
-3.03% src/compiler/contentModel2/models/collection/category.js
2
71.61
-5.69% src/compiler/contentModel2/models/collection/index.js
5
19.05
-23.81% src/compiler/contentModel2/models/collection/tag.js
Jobs
ID Job ID Ran Files Coverage
1 18160146944.1 01 Oct 2025 11:06AM UTC 109
72.8
GitHub Action Run
2 18160146944.2 01 Oct 2025 11:06AM UTC 109
72.8
GitHub Action Run
3 18160146944.3 01 Oct 2025 11:06AM UTC 109
72.8
GitHub Action Run
4 18160146944.4 01 Oct 2025 11:07AM UTC 109
72.8
GitHub Action Run
5 18160146944.5 01 Oct 2025 11:07AM UTC 109
72.8
GitHub Action Run
6 18160146944.6 01 Oct 2025 11:07AM UTC 109
72.8
GitHub Action Run
7 18160146944.7 01 Oct 2025 11:07AM UTC 109
72.8
GitHub Action Run
Source Files on build 18160146944
  • Tree
  • List 109
  • Changed 10
  • Source Changed 9
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #18160146944
  • 30316503 on github
  • Prev Build on master (#14481949487)
  • Next Build on master (#18189769398)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc