Addshore has uploaded a new change for review.

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

Change subject: Update docblock
......................................................................

Update docblock

Taken from code in:
I42be8d7f6ee5a6873541fcf00ee6f3af98920981

Change-Id: I149043f22f84d70bab7e46785d9dd90e716331b5
---
M annotations.php
1 file changed, 9 insertions(+), 3 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/operations/software/grafana/simple-json-datasource-implementation
 refs/changes/89/324689/1

diff --git a/annotations.php b/annotations.php
index 563021b..394ae33 100644
--- a/annotations.php
+++ b/annotations.php
@@ -1,7 +1,13 @@
 <?php
 
 /**
- * TODO
+ * @author Addshore
+ * @license GPLv2+
+ *
+ * Simple endpoint conforming to spec laid out at
+ * https://github.com/grafana/simple-json-datasource
+ *
+ * @TODO
  *  - Only provide annotations for the given range?
  */
 
@@ -22,12 +28,12 @@
        }
 
        $query = trim( strtok( $request['annotation']['query'], ' ' ), '#' );
-       
+
        if ( strpos( $query, 'metawiki:' ) !== 0 ) {
                die( 'Couldn\'t find metawiki: prefix.' );
        }
        $pageTitle = substr( $query, 9 );
-       
+
        $pageUrl = 'https://meta.wikimedia.org/wiki/' . $pageTitle . 
'?action=raw';
        $pageBody = file_get_contents( $pageUrl );
 

-- 
To view, visit https://gerrit.wikimedia.org/r/324689
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I149043f22f84d70bab7e46785d9dd90e716331b5
Gerrit-PatchSet: 1
Gerrit-Project: 
operations/software/grafana/simple-json-datasource-implementation
Gerrit-Branch: master
Gerrit-Owner: Addshore <addshorew...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to