Page MenuHomePhabricator

Support LAST as qualifier and source value
AcceptedPublic

Authored by 1-Byte on Aug 24 2018, 2:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 28, 9:08 PM
Unknown Object (File)
Aug 13 2023, 5:01 AM
Unknown Object (File)
Aug 5 2023, 5:32 PM
Unknown Object (File)
Jun 26 2023, 8:13 PM
Unknown Object (File)
Feb 20 2023, 1:09 PM
Unknown Object (File)
Feb 15 2023, 3:04 PM
Unknown Object (File)
Feb 14 2023, 2:03 PM
Unknown Object (File)
Feb 9 2023, 4:06 PM
Subscribers
None

Details

Reviewers
Magnus
Commits
rMWc9b4abef2e6b: Update patch set 1
Patch without arc
git checkout -b D1101 && curl -L https://phabricator.wikimedia.org/D1101?download=true | git apply
Summary

This patch adds support for using LAST as qualifier and source value. In addition, the foreground mode should work correctly by now.

Implementation Remarks: $last_item always points to the item most recently created. It remains empty as long as no new item gets created.

Example:

CREATE
LAST	Len	"Example"
Q10	P20	Q30	P40	LAST
Q10	P50	Q60	S40	LAST

The feature was tested on test.wikidata.org in background mode.

Diff Detail

Repository
R2010 tool-quickstatements
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

1-Byte created this revision.
This revision is now accepted and ready to land.Aug 24 2018, 4:55 PM

Thank you! At the first glance, the foreground mode seems to work correctly now.