Meta data written to a path with no current data value is ignored

Open
#675 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
json
Domain
documentation

Research direction

Read the existing specification text for path values and metadata, then review the issue thread for any decisions about metadata on paths without data values. Done means the specification clearly states whether such metadata should create the path and what behavior is expected.

Written by the indexing model from the issue text.

Description

I have a plugin which initialises paths with meta values. If I write a value to a path which hasn't yet been initialised with a data value then neither the path to the key nor the associated meta value are created.

I think this is a problem since it seems reasonable to want to initialise meta data early, perhaps before real data values have begun to appear.

For example: if I write "electrical.switches.bank.usb0.1.state.meta" before writing "electrical.switches.bank.usb0.1.state.value" then the meta key is not created (nor is the "usb0.1" path component).

Dominant language
JavaScript
Stars
105
Forks
72
Avg merge
11h 49m
Merged PRs (30d)
5

Getting set up

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 SignalK/specification

All issues in SignalK/specification

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.