Support LAST as qualifier and source value
AcceptedPublic

Authored by 1-Byte on Aug 24 2018, 2:09 PM.

Details

Reviewers
Magnus
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
Unit Tests Skipped
1-Byte requested review of this revision.Aug 24 2018, 2:09 PM
1-Byte created this revision.
Magnus accepted this revision.Aug 24 2018, 4:55 PM

Applied. Untested.

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.