opensafely-core / opensafely-core/opencodelists

Enhancement request: Allow "Under Review" codelists to be cloned

Open
#2,979 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Summary

Two users (@HelenCEBM here @chrisjwood16 in RSI user testing) have requested the ability to clone Under Review codelists. When originally implemented, only user codelists were allowed to be cloned, but #2799 changed this to allow all published codelists or any codelist that the user can edit (ones they own, or are owned by an org of which they are a member).

What would you like to achieve?

Allow cloning of Under Review codelists.

Who would benefit and how?

Both of these users have had to undertake extra work (start from scratch) /use workarounds with unpleasant side effects (downloading codelist and re-uploading). It would be nice for them to not have to do this.

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.

Research direction

Trace the existing codelist cloning flow and its checks for published or editable codelists. Update the behavior so an Under Review codelist can be cloned, then verify that cloning works for the requested status without changing the existing permissions.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.