Milimetric has submitted this change and it was merged.

Change subject: Alphabetically sorted project list
......................................................................


Alphabetically sorted project list

Default Project field in upload cohorts now displays autocomplete for projects 
alphabetically.

Change-Id: Ia6f203cb61af053f7995da9ca8e93275eb3d6c4d
---
M wikimetrics/controllers/cohorts.py
1 file changed, 1 insertion(+), 2 deletions(-)

Approvals:
  Milimetric: Verified; Looks good to me, approved



diff --git a/wikimetrics/controllers/cohorts.py 
b/wikimetrics/controllers/cohorts.py
index 5e3f89f..4addb40 100644
--- a/wikimetrics/controllers/cohorts.py
+++ b/wikimetrics/controllers/cohorts.py
@@ -169,14 +169,13 @@
                     url_for('cohorts_index'),
                     vc.cohort_id
                 ))
-        
         except Exception, e:
             app.logger.exception(str(e))
             flash('Server error while processing your upload', 'error')
     
     return render_template(
         'csv_upload.html',
-        projects=json.dumps(db.project_host_map.keys()),
+        projects=json.dumps(sorted(db.project_host_map.keys())),
         form=form,
     )
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia6f203cb61af053f7995da9ca8e93275eb3d6c4d
Gerrit-PatchSet: 2
Gerrit-Project: analytics/wikimetrics
Gerrit-Branch: master
Gerrit-Owner: Terrrydactyl <[email protected]>
Gerrit-Reviewer: Milimetric <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to