Skip to content

Commit

Permalink
Merge pull request #134 from wmde/todoComments
Browse files Browse the repository at this point in the history
Add TODOs to various diff(er)s and patchers
  • Loading branch information
JonasKress committed Apr 27, 2016
2 parents 6404325 + 2c23e1f commit f3f2996
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Diff/EntityDiff.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ protected function fixSubstructureDiff( array &$operations, $key ) {
}

/**
* FIXME: Not all entities do have aliases!
*
* Returns a Diff object with the aliases differences.
*
* @return Diff
Expand All @@ -85,6 +87,8 @@ public function getAliasesDiff() {
}

/**
* FIXME: Not all entities do have labels!
*
* Returns a Diff object with the labels differences.
*
* @return Diff
Expand All @@ -94,6 +98,8 @@ public function getLabelsDiff() {
}

/**
* FIXME: Not all entities do have descriptions!
*
* Returns a Diff object with the descriptions differences.
*
* @return Diff
Expand All @@ -103,6 +109,8 @@ public function getDescriptionsDiff() {
}

/**
* FIXME: Not all entities do have claims a.k.a. statements!
*
* Returns a Diff object with the claim differences.
*
* @return Diff
Expand Down
3 changes: 3 additions & 0 deletions src/Diff/Internal/FingerprintPatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
use Wikibase\DataModel\Term\TermList;

/**
* TODO: Class should be public (or split, and these should be public).
* TODO: Should this support actual edit conflict detection?
*
* Package private.
*
* @license GPL-2.0+
Expand Down
3 changes: 3 additions & 0 deletions src/Diff/Internal/SiteLinkListPatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
use Wikibase\DataModel\SiteLinkList;

/**
* TODO: Class should be public.
* TODO: Should this support actual edit conflict detection?
*
* Package private.
*
* @license GPL-2.0+
Expand Down
2 changes: 2 additions & 0 deletions src/Diff/Internal/StatementListDiffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
use Wikibase\DataModel\Statement\StatementList;

/**
* TODO: Class must be public.
*
* Package private.
*
* @since 1.0
Expand Down
3 changes: 3 additions & 0 deletions src/Diff/Internal/StatementListPatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
use Wikibase\DataModel\Statement\StatementList;

/**
* TODO: Class must be public.
* TODO: Should this support actual edit conflict detection?
*
* Package private.
*
* @since 1.0
Expand Down

0 comments on commit f3f2996

Please sign in to comment.