Skip to content

Commit

Permalink
Case-insensitive sort for credential and service lists (#182)
Browse files Browse the repository at this point in the history
Case-insensitive sort for credential and service lists
  • Loading branch information
ryan-lane authored Jan 23, 2019
1 parent 85bf298 commit fb87e2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ RUN virtualenv /venv && \
pip install -r piptools_requirements.txt && \
pip install -r requirements.txt

RUN gem install compass && \
RUN gem install rb-inotify -v 0.9.10 && \
gem install compass -v 1.0.3 && \
npm install grunt-cli && \
npm install

Expand Down
3 changes: 2 additions & 1 deletion confidant/routes/v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def get_service_list():
'modified_date': service.modified_date,
'modified_by': service.modified_by
})
services = sorted(services, key=lambda k: k['id'].lower())
return jsonify({'services': services})


Expand Down Expand Up @@ -359,7 +360,7 @@ def get_credential_list():
'documentation': cred.documentation
})

credentials = sorted(credentials, key=lambda k: k['name'])
credentials = sorted(credentials, key=lambda k: k['name'].lower())
return jsonify({'credentials': credentials})


Expand Down

0 comments on commit fb87e2c

Please sign in to comment.