opensafely-core / opensafely-core/opencodelists

Enhance sorting organisation codelists

Open
#3,058 0 comments 0 reactions 1 assignee View on GitHub

@tomodwyer is already working on this.

Since May 26, 2026.

enhancement ui
Dominant language
Python
Stars
60
Forks
16
Avg merge
4d 12h
Merged PRs (30d)
17

Description

Why are we doing this?

The organisation codelist page (https://www.opencodelists.org/codelist/opensafely/, that uses a path in the index page) and the organisation under review codelist page (https://www.opencodelists.org/codelist/opensafely/under-review/, that uses codelists/under_review_index.html) both present a very basic list of codelist versions with no metadata and provide search only by name, and no sorting options. This makes them harder to use and find relevant codelists in different workflows compared to presenting in a table with metadata and better sorting options.

We recently improved several other pages that list codelists in https://github.com/opensafely-core/opencodelists/issues/2981, maybe we can do similar changes here.

These pages do get use by logged in users, in the last 60 days (Honeycomb) codelist/<slug:organisation_slug>/ was hit 334 times (5-6 times a day) by such users, and codelist/<slug:organisation_slug>/under-review/ 90 times (1-2 times a day). Though somewhat less than users/<slug:username>/ that was improved in https://github.com/opensafely-core/opencodelists/issues/2981, which got 1704 hits (~30/day).

Screenshots - click to expand
Before
Image Image
After

Like on a different page in https://github.com/opensafely-core/opencodelists/pull/3011

Image

How will we know when it's done?

...

What are we doing?

...


Defining delivery tasks guidance

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.