Page MenuHomeGitPull.it

Update DataValueQuantity to work without a unit (for non-Wikidata Wikibases)
Needs ReviewPublic

Authored by lucamauri on Jul 3 2023, 10:51.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 18, 12:25
Unknown Object (File)
Thu, Apr 18, 12:24
Unknown Object (File)
Thu, Apr 18, 12:24
Unknown Object (File)
Thu, Apr 18, 12:24
Unknown Object (File)
Tue, Apr 16, 06:54
Unknown Object (File)
Fri, Apr 12, 03:37
Unknown Object (File)
Thu, Apr 11, 23:48
Unknown Object (File)
Tue, Apr 9, 10:13
Subscribers
None

Details

Reviewers
valerio.bozzolan
Summary

Update SnakQuantity.php

Update StatementQuantity.php

Diff Detail

Repository
R21 boz-mw: MediaWiki API client
Branch
github-pr-lucamauri-lucamauri-UnitlessQuantity (branched from lucamauri-UnitlessQuantity)
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 434
Build 620: arc lint + arc unit

Event Timeline

valerio.bozzolan created this revision.

try to fix a substr() without a limit

Hi @lucamauri thanks again

  1. can you confirm that the comment inside DataValueQuantity still makes sense to you?
  1. can you also double-check this change? https://gitpull.it/D125?vs=401&id=402
  1. in particular, can you confirm that you like this change in order to obtain just the "Q" (one-length)?
-substr($wikidata_unit_id, 0)
+substr($wikidata_unit_id, 0, 1)

If yes, this is ready to land

valerio.bozzolan retitled this revision from Update DataValueQuantity.php to Update DataValueQuantity to work without a unit (for non-Wikidata Wikibases).Jul 3 2023, 11:06

Just a thing: it seems not possible, right now, to specify a custom unit URL like http://www.example.org/K123. Is that important to you now?