Quality writer rules: own-member lookup for observed_range
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- backend-api-design, testing
Research direction
Start in backend/src/services/quality-documents.ts at writerRuleBroken and inspect each data-keyed lookup in the writer rules and sibling checks. Find the related tests and add cases for a metric named constructor in distributions only and in both maps. Done means those lookups use own-member checks, the tests cover both cases, and the website copy in dataset-guards.ts remains byte-identical.
Written by the indexing model from the issue text.
Description
Follow-up from the website W5 review (nemarOrg/website#595, epic #2324). writerRuleBroken in backend/src/services/quality-documents.ts looks up entry.observed_range[name] with a plain member access keyed by data. The metricName pattern admits names such as constructor and toString, so the lookup reaches Object.prototype. It gives the right verdict today only because the inherited function has no .min.
- Use
Object.hasOwnfor every data-keyed lookup in the writer rules (and any sibling check) - Add a test with a metric named
constructorin the distributions only and in both maps - Keep the website copy (
dataset-guards.ts) byte-identical
Agentic AI tools were used in preparing this issue.
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 1
- Avg merge
- 6h 26m
- Merged PRs (30d)
- 249
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nemarOrg/nemar-cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
Maintainers usually reply within 1 day
All issues in nemarOrg/nemar-cli
Similar issues
-
agent-ready area: ui-server priority: p3 type: refactor
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
schlessera/brain-kit#4833 ·
Maintainers usually reply within 1 day
-
enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
backend enhancement priority:P3
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
geolens-io/geolens#4161 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
xdelmo/Portfolio-minimal#667 ·
Maintainers usually reply within 1 day
-
external-issue to-triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
supabase/supabase#54162 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day