From 699da90616d9e0d50692fad34258ff9a3644b77b Mon Sep 17 00:00:00 2001 From: Khoroshevskyi Date: Tue, 20 May 2025 10:51:51 -0400 Subject: [PATCH 1/2] schema bug fix --- pephub/const.py | 2 +- pephub/routers/api/v1/namespace.py | 2 +- web/src/components/forms/project-upload-form.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pephub/const.py b/pephub/const.py index 89af9111..d54c536a 100644 --- a/pephub/const.py +++ b/pephub/const.py @@ -132,7 +132,7 @@ CALLBACK_ENDPOINT = "/auth/callback" -DEFAULT_PEP_SCHEMA = "databio/pep-2.1.0" +DEFAULT_PEP_SCHEMA = "databio/pep:2.1.0" DEFAULT_TAG = "default" DEFAULT_QDRANT_SCORE_THRESHOLD = ( diff --git a/pephub/routers/api/v1/namespace.py b/pephub/routers/api/v1/namespace.py index f0a249b6..4f831af7 100644 --- a/pephub/routers/api/v1/namespace.py +++ b/pephub/routers/api/v1/namespace.py @@ -194,7 +194,7 @@ async def create_pep( tag=tag, description=description, is_private=is_private, - pep_schema=pep_schema or "databio/pep-2.1.0", + pep_schema=pep_schema or "databio/pep:2.1.0", ) except ProjectUniqueNameError: raise HTTPException( diff --git a/web/src/components/forms/project-upload-form.tsx b/web/src/components/forms/project-upload-form.tsx index 381de3b8..cad4afc7 100644 --- a/web/src/components/forms/project-upload-form.tsx +++ b/web/src/components/forms/project-upload-form.tsx @@ -203,7 +203,7 @@ export const ProjectUploadForm = ({ onHide, defaultNamespace }: Props) => { isPrivate, description, files: uploadFiles, - pepSchema: pepSchema || 'databio/pep-2.1.0', + pepSchema: pepSchema || 'databio/pep:2.1.0', }, { onSuccess: () => { From 42c6fc213e2e0a990621b6b18da142aa974d3951 Mon Sep 17 00:00:00 2001 From: Khoroshevskyi Date: Tue, 20 May 2025 10:53:58 -0400 Subject: [PATCH 2/2] Added template for Prs --- .github/pull_request_template.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .github/pull_request_template.md diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 00000000..e7efacb6 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,7 @@ +## Changes: +- ... + + +## TODO: +- [ ] Update the version of pephub in the `__version__.py` file +- [ ] Update the changelog \ No newline at end of file