Prepare to run studies against EMIS
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 15/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- git, github, python, ubuntu
- 领域
- cli, devops, infrastructure
调研方向
该 issue 未指定具体的文件或测试,涉及 job-server、job-runner、EMIS 基础设施和 cohort-extractor。首先查看这些部分以及 playbooks/EMIS.md;在实现之前需要先确定一个经过 соглас定且有明确边界的范围,并为每个选定区域定义设置、后端或工作流要求。
由索引模型根据 Issue 内容生成。
描述
In order to run studies against EMIS with the same workflow that we use with TPP, we need to make changes to several parts of the system. This is my initial braindump of what we need to do and I'm sure I've missed things. Please edit to add your notes, and then let's discuss in a call on Tuesday or Wednesday this week.
- job-server (@ghickman)
- users need to be able to select which backend they run jobs
- initially, we want to hide the ability to run against EMIS by default, and have specific opt-ins for supported repos. Longer term we will need to bake-in the concept of which backends are required or able to run a given study definition (see below). Initial implementation could just be a database flag which is false by default and we manually enable for specific repos.
- /status/ will need to show information about multiple backends
- Think about error reporting / sentry / etc
- questions:
- should a user be able to run a job against multiple backends? (@sebbacon's best placed to know what users will expect)
- my (Seb's) view is that UI support would be via an extension of the usual "run" mechanism; "run all" would select everything as it currently does, but there are now N * M tickboxes where N is backends and M is actions. Users could uncheck a specific backend if they wanted (actions would be grouped visually by backend in the UI); if they want to completely exclude a backend from the UI they'd do this by editing their project.yaml (see below). "Supported backends" would show somewhere obvious on a workspace header.
- should a user be able to run a job against multiple backends? (@sebbacon's best placed to know what users will expect)
- users need to be able to select which backend they run jobs
- job-runner (@evansd)
- possibly no code changes?
- longer term we will need to bake-in the concept of which backends are required or able to run a given study definition. This will probably be on a per-column basis; you might be able to extract patient ages in emis but not SGSS status, for example. Users should also be able to define which backends are included or excluded in their project.yaml, i.e. to be able to skip TPP backend completely (for example, they just don't need it, so it's faster)
- we'll need to flesh out playbooks/EMIS.md
- EMIS infrastructure (@bloodearnest)
- user management (lower priority)
- set up unix groups for level 2/3/4 access
- create user accounts
- level 2 access should be limited to a handful of engineers with NHSE contracts
- level 3 access should be limited to researchers with appropriate NHSE contracts
- level 4 access can be wider
- what are the requirements here?
- set up directory structure necessary for high/medium privacy outputs
- ensure that we can pull repos from GH
- ensure that we can push output to GH
- ensure users can install
opensafelycli tool andos-releasescript (see docs.opensafely.org) - harden and buildout software installations
- consider asking for an ubuntu container within which we have root?
- job runner as a service - systemd?
- scripted installation - at least the basics we can build on, supplemented by installation narrative if needed as stopgap
- backups if necessary
- log rotation, disk space monitoring, root cron emails setup, etc, if we have root access. If not, conversation with EMIS about what they've set up
- work out how to support viewing, editing, publishing outputs
- For viewing outputs, a web browser should be fine (pdfs, svgs, html and text)
- For diffing outputs, command line git may be sufficient but visual would be ideal: Github Desktop or at a push, gitweb?
- For redacting outputs, a text editor is needed. We could consider mandating VS Code for simplicity, but worth canvassing
- For publishing outputs, we may need to install Github Desktop, although again we might be able to mandate command line git (if we provide adequate documentatin)
- I think it boils down to either (a) provisioning a Windows review server with access to L4 data or (b) providing a web browser and expecting command line tool usage. And I think (a) is probably unavoidable
- questions:
- can we be responsible for creating user accounts?
- user management (lower priority)
- cohort-extractor (@inglesp)
- questions:
- do we need to pass EMIS_ORGANISATION_HASH in as an environment variable, or can it be hard-coded?
- how do we support studies that use backends with different coding systems?
- it would be wonderful if we could use SNOMED in TPP
- how can we support more features from the TPP backend (eg date expressions) in EMIS?
- is there a half-way house for things we're willing to implement now while we await refactor?
- questions:
- 主要语言
- Python
- 星标
- 0
- 派生
- 0
- 平均合并
- 12 小时 47 分钟
- 30 天内合并 PR
- 2
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
opensafely-core/sysadmin 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 67/100
opensafely-core/sysadmin#297 ·
-
难度 4/5 3-5 天 新手友好度 50/100
opensafely-core/sysadmin#277 ·
-
难度 4/5 3-5 天 新手友好度 45/100
opensafely-core/sysadmin#267 ·
-
难度 4/5 3-5 天 新手友好度 35/100
opensafely-core/sysadmin#214 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
opensafely-core/sysadmin#200 · 1 条评论 ·
查看 opensafely-core/sysadmin 的全部 Issue
相似的 Issue
-
cli good first issue help wanted python up-for-grabs
难度 2/5 1-3 小时 新手友好度 75/100
andrewsiah/agentswarm-data-tasks#36 ·
维护者通常 1 天内回复
-
bug drawing-tools
难度 2/5 1-3 小时 新手友好度 76/100
cofade/open-garden-planner#827 ·
维护者通常 1 天内回复
-
Methodology page未关闭documentation site texts
难度 2/5 1-3 小时 新手友好度 67/100
Krasnopjorovs/temet#66 ·
-
bug
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复