Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/collect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
inputs.task == 'ingest'
permissions:
contents: read
uses: GetTechAPI/TechEngine/.github/workflows/ingest.yml@c625de435b939806859cc1a3b8a95db6747e654b # main, TechEngine #141
uses: GetTechAPI/TechEngine/.github/workflows/ingest.yml@395994c76184ed3de73c4f7001543d82ba815a55 # main, TechEngine #141
with:
category: ${{ inputs.category }}
limit: ${{ inputs.limit }}
Expand All @@ -86,7 +86,7 @@ jobs:
inputs.task == 'refresh'
permissions:
contents: read
uses: GetTechAPI/TechEngine/.github/workflows/refresh.yml@c625de435b939806859cc1a3b8a95db6747e654b # main, TechEngine #141
uses: GetTechAPI/TechEngine/.github/workflows/refresh.yml@395994c76184ed3de73c4f7001543d82ba815a55 # main, TechEngine #141
with:
sleep: ${{ inputs.sleep }}

Expand All @@ -96,7 +96,7 @@ jobs:
inputs.task == 'promote'
permissions:
contents: read
uses: GetTechAPI/TechEngine/.github/workflows/verify-promote.yml@c625de435b939806859cc1a3b8a95db6747e654b # main, TechEngine #141
uses: GetTechAPI/TechEngine/.github/workflows/verify-promote.yml@395994c76184ed3de73c4f7001543d82ba815a55 # main, TechEngine #141
with:
apply: ${{ inputs.apply }}
max_urls: ${{ inputs.max_urls }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ November 2026.
| `tablet` | `tablet/<brand>/<year>/<base_model>/<slug>.json` | 3,577 | `tablet/huawei/2020/matepad-t8/matepad-t8.json` |
| `watch` | `watch/<brand>/<year>/<base_model>/<slug>.json` | 580 | `watch/samsung/2024/galaxy-watch-fe/…` |
| `pda` | `pda/<brand>/<year>/<base_model>/<slug>.json` | 443 | `pda/hp/2000/ipaq-h3600/ipaq-h3600-base.json` |
| `laptop` | `laptop/<brand>/<year>/<base_model>/<slug>.json` | 4,239 | `laptop/dell/2017/dell-inspiron-5567/…` |
| `laptop` | `laptop/<brand>/<year>/<base_model>/<slug>.json` | 4,401 | `laptop/dell/2017/dell-inspiron-5567/…` |
| `monitor` | `monitor/<brand>/<year>/<base_model>/<slug>.json` | 440 | `monitor/samsung/2023/samsung-m50b/…` |
| `device_catalog` | `device_catalog/<brand>/<slug>.json` | 20,366 | `device_catalog/kazam/kazam-thunder-345-lte.json` |
| `software` | `software/<prefix>/<slug>.json` | 42,492 | `software/sw/sweble.json` |
Expand Down
9 changes: 6 additions & 3 deletions app/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,9 @@
# Categories a catalog entry can be promoted to (``promoted_to`` = "<category>/<slug>").
PROMOTION_TARGETS = {"smartphone", "tablet", "watch", "pda"}
DATE_PRECISIONS = {"day", "month", "year", "year_estimated"}
# A chip dated only to the month or the year keeps a full release_date; the parts
# its source does not state are stored as 01 and release_date_precision says so.
# A chip, laptop or monitor dated only to the month or the year keeps a full
# release_date; the parts its source does not state are stored as 01 and
# release_date_precision says so.
CHIP_DATE_PRECISIONS = ("day", "month", "year")
CHIP_DATE_PRECISION_SUFFIX = {"month": "-01", "year": "-01-01"}
RELEASE_YEAR_SOURCES = {"model_code", "record"}
Expand Down Expand Up @@ -251,7 +252,7 @@ def _check_identity_fields(name: str, record: dict[str, Any], errors: list[str])


def _check_chip_date_precision(name: str, record: dict[str, Any], errors: list[str]) -> None:
"""release_date_precision on a CPU, GPU or SoC: day | month | year (absent or null = day)."""
"""release_date_precision (chip, laptop, monitor): day | month | year; absent or null = day."""
precision = record.get("release_date_precision")
if precision is None:
return
Expand Down Expand Up @@ -605,6 +606,7 @@ def validate() -> list[str]:
_check_slug(fname, rec.get("slug"), errors)
if rec.get("release_date") is not None:
_check_date(fname, rec["release_date"], errors)
_check_chip_date_precision(fname, rec, errors)
# Lower bound 0.0001: 1980s portables shipped with 256 KB and weighed 7-8 kg.
_check_number(fname, "ram_gb", rec.get("ram_gb"), 0.0001, 256, errors)
if rec.get("storage_gb") is not None:
Expand All @@ -627,6 +629,7 @@ def validate() -> list[str]:
_check_slug(fname, rec.get("slug"), errors)
if rec.get("release_date") is not None:
_check_date(fname, rec["release_date"], errors)
_check_chip_date_precision(fname, rec, errors)
_check_range(fname, "size_inch", rec.get("size_inch"), 5, 120, errors)
_check_range(fname, "refresh_hz", rec.get("refresh_hz"), 24, 1000, errors)
if rec.get("ppi") is not None:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"slug": "dell-precision-386dx-33",
"base_model_slug": "dell-precision-386dx-33",
"name": "Dell Precision 386DX/33",
"brand": "dell",
"release_date": "1992-01-01",
"release_date_precision": "year",
"ram_gb": null,
"os": null,
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Dell_Precision"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"slug": "dell-precision-386sx-25",
"base_model_slug": "dell-precision-386sx-25",
"name": "Dell Precision 386SX/25",
"brand": "dell",
"release_date": "1992-01-01",
"release_date_precision": "year",
"ram_gb": null,
"os": null,
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Dell_Precision"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"slug": "dell-precision-433i",
"base_model_slug": "dell-precision-433i",
"name": "Dell Precision 433i",
"brand": "dell",
"release_date": "1993-01-01",
"release_date_precision": "year",
"ram_gb": null,
"os": null,
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Dell_Precision"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"slug": "dell-latitude-xpi-cd",
"base_model_slug": "dell-latitude-xpi-cd",
"name": "Dell Latitude XPi CD",
"brand": "dell",
"release_date": "1996-01-01",
"release_date_precision": "year",
"ram_gb": null,
"os": null,
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Dell_Latitude"
]
}
14 changes: 14 additions & 0 deletions data/laptop/dell/1999/dell-latitude-ls/dell-latitude-ls.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"slug": "dell-latitude-ls",
"base_model_slug": "dell-latitude-ls",
"name": "Dell Latitude LS",
"brand": "dell",
"release_date": "1999-01-01",
"release_date_precision": "year",
"ram_gb": null,
"os": null,
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Dell_Latitude"
]
}
14 changes: 14 additions & 0 deletions data/laptop/dell/1999/dell-latitude-lt/dell-latitude-lt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"slug": "dell-latitude-lt",
"base_model_slug": "dell-latitude-lt",
"name": "Dell Latitude LT",
"brand": "dell",
"release_date": "1999-01-01",
"release_date_precision": "year",
"ram_gb": null,
"os": null,
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Dell_Latitude"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"slug": "dell-precision-rack-7910",
"base_model_slug": "dell-precision-rack-7910",
"name": "Dell Precision Rack 7910",
"brand": "dell",
"release_date": "2014-01-01",
"release_date_precision": "year",
"ram_gb": null,
"os": null,
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Dell_Precision"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"slug": "dell-latitude-3390-2-in-1",
"base_model_slug": "dell-latitude-3390-2-in-1",
"name": "Dell Latitude 3390 (2-in-1)",
"brand": "dell",
"release_date": "2017-01-01",
"release_date_precision": "year",
"ram_gb": null,
"os": null,
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Dell_Latitude"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"slug": "dell-precision-rack-3930",
"base_model_slug": "dell-precision-rack-3930",
"name": "Dell Precision Rack 3930",
"brand": "dell",
"release_date": "2017-01-01",
"release_date_precision": "year",
"ram_gb": null,
"os": null,
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Dell_Precision"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"slug": "dell-latitude-5290-2-in-1",
"base_model_slug": "dell-latitude-5290-2-in-1",
"name": "Dell Latitude 5290 2-in-1",
"brand": "dell",
"release_date": "2018-01-01",
"release_date_precision": "year",
"ram_gb": null,
"os": null,
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Dell_Latitude"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"slug": "dell-latitude-3190-2-in-1",
"base_model_slug": "dell-latitude-3190-2-in-1",
"name": "Dell Latitude 3190 2-in-1",
"brand": "dell",
"release_date": "2019-01-01",
"release_date_precision": "year",
"ram_gb": null,
"os": null,
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Dell_Latitude"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"slug": "dell-latitude-3310-2-in-1",
"base_model_slug": "dell-latitude-3310-2-in-1",
"name": "Dell Latitude 3310 2-in-1",
"brand": "dell",
"release_date": "2019-01-01",
"release_date_precision": "year",
"ram_gb": null,
"os": null,
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Dell_Latitude"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"slug": "dell-latitude-5310-2-in-1",
"base_model_slug": "dell-latitude-5310-2-in-1",
"name": "Dell Latitude 5310 2-in-1",
"brand": "dell",
"release_date": "2020-01-01",
"release_date_precision": "year",
"ram_gb": null,
"os": null,
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Dell_Latitude"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"slug": "dell-latitude-3330-2022-model",
"base_model_slug": "dell-latitude-3330-2022-model",
"name": "Dell Latitude 3330 (2022 model)",
"brand": "dell",
"release_date": "2022-01-01",
"release_date_precision": "year",
"ram_gb": null,
"os": null,
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Dell_Latitude"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"slug": "framework-computer-chromebook",
"base_model_slug": "framework-computer-chromebook",
"name": "Framework Computer Chromebook",
"brand": "framework",
"release_date": "2022-11-01",
"release_date_precision": "month",
"ram_gb": null,
"os": null,
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Framework_Laptop"
]
}
14 changes: 14 additions & 0 deletions data/laptop/google/2013/google-pixel-lte/google-pixel-lte.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"slug": "google-pixel-lte",
"base_model_slug": "google-pixel-lte",
"name": "Google Pixel (LTE)",
"brand": "google",
"release_date": "2013-04-01",
"release_date_precision": "month",
"ram_gb": 4.0,
"os": null,
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Chromebook_Pixel"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"slug": "google-pixel-wi-fi",
"base_model_slug": "google-pixel-wi-fi",
"name": "Google Pixel (Wi-Fi)",
"brand": "google",
"release_date": "2013-02-01",
"release_date_precision": "month",
"ram_gb": 4.0,
"os": null,
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Chromebook_Pixel"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"slug": "google-pixel-2015",
"base_model_slug": "google-pixel-2015",
"name": "Google Pixel (2015)",
"brand": "google",
"release_date": "2015-03-01",
"release_date_precision": "month",
"ram_gb": 8.0,
"os": null,
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Chromebook_Pixel"
]
}
14 changes: 14 additions & 0 deletions data/laptop/google/2015/google-pixel-ls/google-pixel-ls.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"slug": "google-pixel-ls",
"base_model_slug": "google-pixel-ls",
"name": "Google Pixel (LS)",
"brand": "google",
"release_date": "2015-03-01",
"release_date_precision": "month",
"ram_gb": 16.0,
"os": null,
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Chromebook_Pixel"
]
}
14 changes: 14 additions & 0 deletions data/laptop/hp/1994/hp-omnibook-600c/hp-omnibook-600c.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"slug": "hp-omnibook-600c",
"base_model_slug": "hp-omnibook-600c",
"name": "HP OmniBook 600C",
"brand": "hp",
"release_date": "1994-11-01",
"release_date_precision": "month",
"ram_gb": null,
"os": null,
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/HP_OmniBook"
]
}
14 changes: 14 additions & 0 deletions data/laptop/hp/1995/hp-omnibook-600ct/hp-omnibook-600ct.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"slug": "hp-omnibook-600ct",
"base_model_slug": "hp-omnibook-600ct",
"name": "HP OmniBook 600CT",
"brand": "hp",
"release_date": "1995-07-01",
"release_date_precision": "month",
"ram_gb": null,
"os": null,
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/HP_OmniBook"
]
}
Loading