Skip to content

Conversation

@jhughes982
Copy link
Contributor

Works towards #11

  • This PR adds the ability to archive a project

  • Archive button:

Screenshot 2026-01-19 at 14 52 49
  • Archive modal (open to suggestions on wording):
Screenshot 2026-01-19 at 14 53 30
  • Archived projects appear at the bottom of the list:
Screenshot 2026-01-19 at 14 51 41
  • No edit button for archived projects:
Screenshot 2026-01-19 at 14 51 59

Checklist

  • Documentation has been updated

@jhughes982 jhughes982 self-assigned this Jan 19, 2026
Comment on lines +374 to +389
<p>
Are you sure you want to archive project <strong>{project?.name}</strong>?
</p>
<p>Archiving this project will:</p>
<ul>
<li>
Make the project <strong>read-only</strong> - no further edits will be allowed
</li>
<li>Keep all project data and configuration intact</li>
<li>Remove it from active project lists (but it will still be visible at the bottom)</li>
<li>Require administrator approval to unarchive in the future</li>
</ul>
<p>
<strong>Note:</strong> This is different from deleting - archived projects can be restored later if
needed.
</p>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open to suggestions on wording here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also mention as the IAO only they will be able to see it and request un-archival; it won't appear to project members or admins whilst in read-only

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, so study admins do receive the studyOwner role, that's how they are given access to see projects and studies they belong to. Implementation-wise I think it would be easiest to leave this how it currently works, unless there is a problem with study admins seeing an archived project?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will check with DSH but hopefully no qualms from them 🤞

@t-young31
Copy link
Member

currently the TRE doesn't support an archive state for a project, so not sure about this. cc: @gsvarovsky @finleybacon

@jhughes982
Copy link
Contributor Author

currently the TRE doesn't support an archive state for a project, so not sure about this. cc: @gsvarovsky @finleybacon

Ok, do we need to update the acceptance criteria for #11 ? Is archiving only for certain types of projects e.g. DSH?

@acholyn
Copy link
Contributor

acholyn commented Jan 19, 2026

currently the TRE doesn't support an archive state for a project, so not sure about this. cc: @gsvarovsky @finleybacon

do you just delete them? I thought it was an IG req that they be retained but read-only for IAOs

@t-young31
Copy link
Member

t-young31 commented Jan 19, 2026

discussed with @gsvarovsky sync and:

currently there is not an archive state for a TRE project: it's deployed or deleted. maybe in future there's a nice way of archiving a project's data, but not in near term. potentially other services have projects with an archive state

@finleybacon
Copy link
Collaborator

finleybacon commented Jan 19, 2026

Is archiving only for certain types of projects e.g. DSH?

@jhughes982 yes DSH projects can be archived, that's why this has snuck in. so worth keeping but need to make the button an environment specific thing in the manage project page, to only render for DSH projects

@jhughes982
Copy link
Contributor Author

I have made some tweaks so that archiving is only available to DSH projects. I have also removed the archiving requirement from #11 and moved it into #446.

@jhughes982 jhughes982 mentioned this pull request Jan 20, 2026
9 tasks
api.web.yaml Outdated
- Pending
- Approved
- Rejected
- Archived
Copy link
Member

@t-young31 t-young31 Jan 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imo Archived doesn't make sense for an ApprovalStatus. I would have environment-specific project statuses (as the meaning is environment specific and there will be some statuses that are available for some environments but not others)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we did consider this in an earlier discussion. Happy to implement as you suggested 👍

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry – should have commented earlier

@jhughes982
Copy link
Contributor Author

jhughes982 commented Jan 21, 2026

I have now removed some of the archive implementations based on @t-young31 's feedback:

imo Archived doesn't make sense for an ApprovalStatus

The issue now is that we are implementing details (i.e. archiving) for a feature that hasn't been fully scoped yet (i.e. the ProjectDSH type isn't active yet). So I'm hesitant to take this further before we have agreed on how ProjectDSH is going to be set up.

I have added some placeholder code for now, but am unsure how best to proceed. Any thoughts @acholyn ?

- Archived
description: Current approval status (used for studies, projects, etc.)

ProjectStatus:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking ProjectDshStatus and ProjectTreStatus etc.

@jhughes982
Copy link
Contributor Author

Setting this to draft for now until we are agreed on the DSH project requirements and have the ability to create DSH projects.

@jhughes982 jhughes982 marked this pull request as draft January 21, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants