Date of new todos is the date of when the multi-container-app boots

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

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
docker, javascript
Domain
backend

Research direction

Compare the date logic in app/models/Todo.js with the todo creation flow in app/routes/front.js, using the linked lines as the starting points. Reproduce the issue with docker-compose up -d, add todos several minutes apart, and verify that each todo displays its own creation timestamp.

Written by the indexing model from the issue text.

Description

Description

As I was following the short tutorial for the multi-container-app, I noticed that all todos have the same date next to them, which is also the date of when the app boots.

Reproduce
  1. docker-compose up -d
  2. Add some todos over a span of 2-3 minutes.
Expected behavior

Each todo has its own timestamp for the time it was created. I believe the logic from models/Todo.js should move to routes/front.js.

Dominant language
EJS
Stars
234
Forks
658
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 docker/multi-container-app

All issues in docker/multi-container-app

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.