Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Breaks: Document id same as attribute key

Open
#6 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
web-dev

Research direction

Start by reviewing commit 744b12633a76dea4c516363bee60c9e407385268 and reproduce the edit failure with a document id and attribute both named "title". Check the referenced template and attribute-key changes, then verify that editing works without corruption and assess the stated backwards-compatibility impact.

Written by the indexing model from the issue text.

Description

A document with an id that is the same as an attribute id can't be edited - e. g. create a document with the id 'title' where the document contains an attribute 'title'. When going into edit mode, it will appear corrupted depending on the attribute level editors used in that document.

I have pushed a fix that breaks backwards compatibility:
https://github.com/developmentseed/bones-document/commit/744b12633a76dea4c516363bee60c9e407385268

This fix breaks backwards compatibility. Existing templates need to be updated and attribute keys need to be prefixed with editable- so that for instance the class title becomes editable-title.

Needs review.

Dominant language
JavaScript
Stars
4
Forks
2
PR merge metrics
No merged PRs in 30d

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.

More from developmentseed/bones-document

All issues in developmentseed/bones-document

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.