opensafely-core / opensafely-core/opencodelists
Enhance sorting organisation codelists
@tomodwyer is already working on this.
Since May 26, 2026.
- 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
After
Like on a different page in https://github.com/opensafely-core/opencodelists/pull/3011
How will we know when it's done?
...
What are we doing?
...
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.