Add “updated” to metadata

Open
#111 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
backend, cli, web-dev

Research direction

Start by locating metadata handling, index-page and footer rendering, and the option parsing for datasette publish and datasette package. Trace how metadata reaches those views and how command options are defined. Done means an optional updated value appears on the index and footer, while both commands accept a date string or today.

Written by the indexing model from the issue text.

Description

metadata

To give an indication as to when the data was last updated.

This should be a field in the metadata that is then shown on the index page and in the footer, if it is set.

Also support setting it using an option to “datasette publish” and “datasette package” - which can either be a string or can be the magic string “today” to set it to today’s date:

datasette publish file.db --updated=today
Dominant language
Python
Stars
11.5k
Forks
904
Avg merge
4d 17h
Merged PRs (30d)
18

Contributor guide

Open the contributing guide

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 simonw/datasette

All issues in simonw/datasette

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.