Loopback-next: Todo-List tutorial - model contains "color", data contains "dateModified"

Created on 5 Nov 2020  ·  3Comments  ·  Source: strongloop/loopback-next

Steps to reproduce

Tutorial for todo-list. Model has 3 fields - id, title, color. But the db.json file has id, title and dateModified.

Current Behaviour

Model and data fields do not match

Expected Behaviour

The data should use "color" rather than "dateModified"

Link to reproduction sandbox

Not applicable

Additional information

$ node -e 'console.log(process.platform, process.arch, process.versions.node)'
linux x64 12.19.0
$ npm ls --prod --depth 0 | grep loopback
[email protected] /home/xxxxxx/loopback4/todolist
├── @loopback/[email protected]
├── @loopback/[email protected]
├── @loopback/[email protected]
├── @loopback/[email protected]
├── @loopback/[email protected]
├── @loopback/[email protected]
├── @loopback/[email protected]
├── @loopback/[email protected]

Am happy to fork repo, apply fix and open pull request.
Files that need changing are docs/site/tutorials/todo-list/todo-list-tutorial-relations.md and data/db.json

Related Issues

none

Docs bug community-contribution help wanted

Most helpful comment

Just to add this is my first bug fix on github so please be gentle.

All 3 comments

@norricorp, if you could submit a PR to fix it, that would be great. Thanks!
There's an ongoing PR (I believe it's close to land) https://github.com/strongloop/loopback-next/pull/6598 that changes quite a lot of files in the todo-list example. You might want to check what's changed before making further changes.

Just to add this is my first bug fix on github so please be gentle.

PR #6733 has landed. Closing as resolved.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joeytwiddle picture joeytwiddle  ·  3Comments

mhdawson picture mhdawson  ·  3Comments

kesavkolla picture kesavkolla  ·  3Comments

shahulhameedp picture shahulhameedp  ·  3Comments

mightytyphoon picture mightytyphoon  ·  3Comments