Page MenuHomePhabricator

[L] Add UI support for time (date) Wikibase datatype for top-level statements and qualifiers
Open, Needs TriagePublic

Description

User story: As a uploader, I want 'time' support, so that I can specify the exact time the image was created/uploaded/etc

We have this:
On the front-end, we currently only support statements which take as their input Wikidata entities or quantities

We want this:
We should support time input.

The minimum requirement is just to be able to enter a date and time, without precision and without calendar.

The plan is to release this to beta/test and then to see if the community is ok with it without precision and calendar. We may have to do more work to include those if they don't think this is useful without those (will be another ticket)

See comments on T227112 for design input on the UI

Acceptance Criteria:

  • Users can add/edit/view date-and-time for statements that have 'time' values using the Commons UI
  • Users can add/edit/view date-and-time for qualifiers that have 'time' values using the Commons UI
  • on File page and in UploadWizard

Details

Related Gerrit Patches:
mediawiki/extensions/WikibaseMediaInfo : masterImplement support for time datavalue

Event Timeline

Cparle created this task.Sep 4 2019, 11:14 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 4 2019, 11:14 AM
Reedy renamed this task from Add UI support for time Wikibase datatype for top-level statements to Add UI support for time Wikibase datatype for top-level statements.Sep 4 2019, 4:25 PM

I would be happy to start without timezone support because currently we're not including that data either (we just assume local time). We do need a higher precision than just the date. Take for example https://commons.wikimedia.org/wiki/File:%22_Tomb_of_Sher_Shah_Suri_%22.jpg . Here it's relevant that it's taken at "16:52:56" because it's an indication of the time of the day. In the future I probably want to query for images of a certain location taken during the gold hour (https://en.wikipedia.org/wiki/Golden_hour_(photography)). If I recall correctly, the precision is in the configuration somewhere so could probably just be changed for Commons.

AnneT renamed this task from Add UI support for time Wikibase datatype for top-level statements to Add UI support for time Wikibase datatype for top-level statements and qualifiers.Dec 10 2019, 5:51 PM
AnneT added subscribers: SandraF_WMF, Volker_E, PDrouin-WMF.

@Cparle to clean up Acceptance Criteria and add [L] to reflect estimation

Cparle renamed this task from Add UI support for time Wikibase datatype for top-level statements and qualifiers to [L] Add UI support for time Wikibase datatype for top-level statements and qualifiers.Dec 10 2019, 6:02 PM
Cparle updated the task description. (Show Details)
Cparle updated the task description. (Show Details)
Multichill renamed this task from [L] Add UI support for time Wikibase datatype for top-level statements and qualifiers to [L] Add UI support for time (date) Wikibase datatype for top-level statements and qualifiers.Sat, Jan 4, 9:52 PM

Change 567125 had a related patch set uploaded (by Matthias Mullie; owner: Matthias Mullie):
[mediawiki/extensions/WikibaseMediaInfo@master] [WIP] Implement support for time datavalue

https://gerrit.wikimedia.org/r/567125