From b7f37c0095318af1855673281fce9a6163186818 Mon Sep 17 00:00:00 2001 From: Dorian Portillo Date: Wed, 11 Dec 2024 15:15:39 -0800 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=94=A8=20sync=20main=20to=20stag?= =?UTF-8?q?ing=20(#118)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 🐛 Zenodo callback issue resolved with purging token before sign in (#116) * refactor: :recycle: transfer validation api to codefair repo (#106) * 🚚 chore: rename `validator-api` to `validator` * 👷 ci: add validator deploy * 👷 ci: add validator healthcheck * 👷 ci: add validator deploy for prod * refactor: :recycle: update codefair name * feat: ✨ Metadata + license validators + bug patches (#107) * merge: :twisted_rightwards_arrows: merge main to staging * refactor: ♻️ 🐛 Codefair 3.1.0 (#89) * fix: :bug: patch removing pull_request.closed bug on metadata pr merge * fix: :bug: don't update firstPublished in the codemeta file + better logs * fix: :bug: patch error on reading db entry when it doesn't exist * chore: :loud_sound: better log on successful Zenodo publish * style: :art: margins between text and icon * feat: :sparkles: links to the list of tools used for codefair in /codefair * refactor: :sparkles: :recycle: abstract the license validation fn * doc: :bookmark: update changelog * feat: :sparkles: :recycle: abstraction to zenodo workflow * wip: :construction: abstracting zenodo workflow * feat: :sparkles: add help link in the Zenodo release page * refactor: :recycle: :sparkles: abstract out github release functions * refactor: :loud_sound: :recycle: improve error tracing in metadata file * chore: :hammer: remove todo * refactor: :sparkles: :recycle: abstracted Zenodo workflow (bot) * wip: :construction: save custom license content when no assertion is provided * ✨ feat: add support for custom licenses (#90) * ✨ feat: add support for custom licenses * 🐛 fix: reset citation license field * 🐛 fix: update zenodo workflow for custom licenses * fix: :bug: license is valid with custom license * feat: :sparkles: custom license template * ✨ feat: update codemeta, license and cwl ui paths (#91) * ✨ feat: update meta paths for consistency * 🚚 fix: updatel icense request path * ✨ feat: add support for custom license title (#92) * refactor: :recycle: :sparkles: new patches for license, cwl, metadata UI's * refactor: :sparkles: :recycle: apply migrations from UI to bot * feat: :sparkles: request custom license title from user * refactor: :recycle: hide message box when custom license title is blank * refactor: :recycle: issue dashboard requests custom title * feat: ✨ Saving custom title (#93) * feat: :sparkles: save custom title option * refactor: :recyle: reuse saveLicenseDraft for storing custom license title * refactor: :recycle: join draft and save title buttons together * refactor: :recycle: use naive-ui's properties for styling * chore: :hammer: remove typo * chore: :hammer: remove unused variables * feat: :sparkles: toasts for custom title saved button * refactor: :recycle: function rename * feat: :sparkles: create Zenodo metadata fn handles custom licenses * feat: :sparkles: custom license reference for archival workflow * refactor: :recycle: stop creating identifiers for new db entries * refactor: :recycle: :bug: revert allowing custom licenses for zenodo * refactor: ♻️ Custom License Support (#94) * refactor: :recycle: :sparkles: custom title saved updates dashboard, disable create release btn when custom license * refactor: :recycle: block progress of fair release if license is custom * feat: :sparkles: listener for when custom license title is saved through UI * feat: :sparkles: prevent fair release if not fair compliant * refactor: :recycle: improve license validation and update template text for custom licenses * refactor: :recycle: re-render issue from ui side * refactor: :recycle: update to message explaining custom licenses * db calls running in parallel * fix: :bug: prevent Zendo section from being seen when the license is custom * fix: :bug: trim license content before comparison --------- Co-authored-by: Sanjay Soundarajan * refactor: :recycle: safety checks for protected middleware * refacotr: :recycle: update protectRoute to redirect to login when no user or session * feat: :fix: redirect to login if not signed in * refactor: :recycle: remove import * chore: :loud_sound: :hammer: remove logs * docs: :memo: update changelog * fix: :bug: check license content all times * fix: :bug: update on zenodo ui page * feat: :sparkles: delete branch after pr has been closed/merged * chore: :hammer: spacing in changelog * wip: :construction: individual validation requests for license and metadata * feat: :sparkles: license validation endpoint * wip: :construction: creating updated metadata validation * wip: :construction: patches for metadata revalidation workflow * wip: :construction: validation for codemeta * doc: :bookmark: jsdoc comments on fns * fix: 🐛 template renderer will stop using old links (#99) * fix: :bug: rerender template will stop using old links * doc: :memo: update CHANGELOG * doc: :memo: update metadata * fix: :bug: preserve authors and contributors from codemeta * feat: :sparkles: re-validated codemeta from repo dashboard * fix: :bug: await metadata validation * feat: :sparkles: codemeta validation extended with microservice validator * refactor: :recycle: update timestamps to be unix format * feat: :sparkles: clean privatekey env before use * refactor: :recycle: update cwl validation endpoint * wip: :construction: send validation message to db * feat: :sparkles: create migrations for metadata validation messages * wip: :construction: creating json schema for codemeta.json validations * 👷 ci: setup deployment environments (#101) * 👷 ci: setup for staging env (#103) Co-authored-by: Sanjay Soundarajan Co-authored-by: slugb0t fix: 🐛 template renderer will stop using old links (#99) * fix: :bug: adjust env variables used after env changes * 👷 ci: cleanup dockerfile * feat: :sparkles: codemeta schema first draft * 👷 ci: cleanup dockerfile * 👷 ci: cleanup dockerfile * 👷 ci: cleanup dockerfile * 👷 ci: setup for staging env * 👷 ci: setup for staging env * 👷 ci: setup for staging env * 👷 ci: setup for staging env * 👷 ci: cleanup dockerfile * 👷 ci: fix staging deploys (#104) * wip: :construction: abstracting cwl workflow * refactor: :recycle: update codemeta schema to validate against the raw codemeta.json files * refactor: :recycle: update codemeta schema for additional fields * feat: :sparkles: validating raw content of codemeta.json file for 3.0 * refactor: :recycle: create required fields for codemeta schema * wip: :construction: testing validation responses for db * handle codemeta.json 3.0 and 2.0 versioning * fix: :bug: correct branch watch for staging deployment action * doc: :bookmark: update changelog for 3.2.0 release * feat: :sparkles: align bot prisma with ui * fix: :bug: bug patch for cwl workflow * feat: :sparkles: metadata workflow update * refactor: :recycle: preserving authors and contributors * wip: :construction: update the metadata workflow after discussions * fix: :bug: don't create cwlobject twice * refactor: :recycle: send 200 status when invalid codemeta * refactor: :recycle: update codemeta validation schema * refactor: :recycle: do not revalidate metadata files for push events unless metadata files are updated themselves * wip: :construction: seperate rerun validation with regather information * wip: :construction: remove command from issue dashboard if error occurs (allows retry) * refactor: :recycle: update the issue body after successful validation (remove the command from the issue body) * refactor: :recycle: add additional key to codemeta schema * refactor: :recycle: remove the regather options from the UI as validation is still needed when regathering * fix: :bug: pr button updated with new links * fix: :bug: patch variable declaration not in scope * refactor: :recycle: update on the dropdown icons * refactor: :recycle: update the keys of the cwl object * refactor: :recycle: update the getcwlfiles function --------- Co-authored-by: Sanjay Soundarajan * fix: :bug: use the correct env variable for private key * fix: 🐛 Codefair v3.2.0 finalization (#113) * fix: :bug: correct cwlObject variables in push event * fix: :bug: better error message in metadata workflow + collect missing fields from codemeta.json * fix: :bug: apply await to async function call * refactor: :recycle: removed unused imports * refactor: :recycle: add try catch in then statement of promise * fix: :bug: missing fields in codemeta gathering + add error handling for convertCitationForDB fn * refactor: :recycle: add try catch to renderer to preserve errors * fix: :bug: preserve metadata validation results in db * wip: :construction: validation results being displayed through the repo dashboard * wip: :construction: displaying metadata validation results in seperate pages * feat: :sparkles: validation page for codemeta * fix: :bug: patch fundingCode not being preserved from codemeta * wip: :construction: final design for validation results * feat: :sparkles: add view validation results conditionally * test: :alembic: ensuring validation progresses accordingly * feat: :sparkles: popover messages for metadata badges * feat: :sparkles: if metadata file fails to parse then update validation message * fix: :bug: update schema to handle 2.0 and 3.0 authors * style: :art: formatting * fix: :bug: add releaseNotes key to schema for 3.0 versions * refactor: :pencil2: change wording * fix: :bug: validate metadata file that was updated only on push events * chore: :memo: remove test logs * fix: :bug: migrate db during deployment * fix: :bug: revert * fix: :bug: typo on dockerfile * refactor: :recycle: use npm instead of yarn for migration * refactor: :recycle: access db url during prisma build * refactor: :recycle: apply node env * 💚 ci: copy package json * 💚 ci: revert arg * 💚 ci: add prisma migrate to ci * 💚 ci: add prisma migrate to ci * 👷 ci: update dockerfile * refactor: :recycle: use deployed validator * fix: :bug: when license is updated validate metadata files * fix: :bug: validation returns codemeta version on errors * 🐛 fix: add basic logwatch * fix: :bug: add @type key for 2.0 codemeta.json files * refactor: :recycle: updated required fields for codemeta schmea * 🐛 fix: add logwatch support * 🐛 fix: add json to logwatch * fix: :bug: patch json parse issue * fix: :bug: update logging parameters * refactor: :recycle: point a folder above for codemeta-schema * refactor: :recycle: update dockerfile to include schema * fix: :bug: ensure authors have roles key * refactor: :recycle: :loud_sound: convert some consola logs to logwatch * fix: :bug: roles are optional in save request * chore: :loud_sound: remove dev logs * doc: :memo: update changelog * refactor: :recycle: revert roles key being optional * fix: :bug: add logwatch.start method * fix: :bug: ensure contrib and authros have roles * fix: :bug: CWL handles multiple installations * refactor: :recycle: update log error * feat: :sparkles: purge zenodo token when sign in is required * fix: :bug: make login fn asyncronous --------- Co-authored-by: Sanjay Soundarajan * refactor: 🎨 update view validation & edit metadata buttons (#117) * refactor: :recycle: transfer validation api to codefair repo (#106) * 🚚 chore: rename `validator-api` to `validator` * 👷 ci: add validator deploy * 👷 ci: add validator healthcheck * 👷 ci: add validator deploy for prod * refactor: :recycle: update codefair name * feat: ✨ Metadata + license validators + bug patches (#107) * merge: :twisted_rightwards_arrows: merge main to staging * refactor: ♻️ 🐛 Codefair 3.1.0 (#89) * fix: :bug: patch removing pull_request.closed bug on metadata pr merge * fix: :bug: don't update firstPublished in the codemeta file + better logs * fix: :bug: patch error on reading db entry when it doesn't exist * chore: :loud_sound: better log on successful Zenodo publish * style: :art: margins between text and icon * feat: :sparkles: links to the list of tools used for codefair in /codefair * refactor: :sparkles: :recycle: abstract the license validation fn * doc: :bookmark: update changelog * feat: :sparkles: :recycle: abstraction to zenodo workflow * wip: :construction: abstracting zenodo workflow * feat: :sparkles: add help link in the Zenodo release page * refactor: :recycle: :sparkles: abstract out github release functions * refactor: :loud_sound: :recycle: improve error tracing in metadata file * chore: :hammer: remove todo * refactor: :sparkles: :recycle: abstracted Zenodo workflow (bot) * wip: :construction: save custom license content when no assertion is provided * ✨ feat: add support for custom licenses (#90) * ✨ feat: add support for custom licenses * 🐛 fix: reset citation license field * 🐛 fix: update zenodo workflow for custom licenses * fix: :bug: license is valid with custom license * feat: :sparkles: custom license template * ✨ feat: update codemeta, license and cwl ui paths (#91) * ✨ feat: update meta paths for consistency * 🚚 fix: updatel icense request path * ✨ feat: add support for custom license title (#92) * refactor: :recycle: :sparkles: new patches for license, cwl, metadata UI's * refactor: :sparkles: :recycle: apply migrations from UI to bot * feat: :sparkles: request custom license title from user * refactor: :recycle: hide message box when custom license title is blank * refactor: :recycle: issue dashboard requests custom title * feat: ✨ Saving custom title (#93) * feat: :sparkles: save custom title option * refactor: :recyle: reuse saveLicenseDraft for storing custom license title * refactor: :recycle: join draft and save title buttons together * refactor: :recycle: use naive-ui's properties for styling * chore: :hammer: remove typo * chore: :hammer: remove unused variables * feat: :sparkles: toasts for custom title saved button * refactor: :recycle: function rename * feat: :sparkles: create Zenodo metadata fn handles custom licenses * feat: :sparkles: custom license reference for archival workflow * refactor: :recycle: stop creating identifiers for new db entries * refactor: :recycle: :bug: revert allowing custom licenses for zenodo * refactor: ♻️ Custom License Support (#94) * refactor: :recycle: :sparkles: custom title saved updates dashboard, disable create release btn when custom license * refactor: :recycle: block progress of fair release if license is custom * feat: :sparkles: listener for when custom license title is saved through UI * feat: :sparkles: prevent fair release if not fair compliant * refactor: :recycle: improve license validation and update template text for custom licenses * refactor: :recycle: re-render issue from ui side * refactor: :recycle: update to message explaining custom licenses * db calls running in parallel * fix: :bug: prevent Zendo section from being seen when the license is custom * fix: :bug: trim license content before comparison --------- Co-authored-by: Sanjay Soundarajan * refactor: :recycle: safety checks for protected middleware * refacotr: :recycle: update protectRoute to redirect to login when no user or session * feat: :fix: redirect to login if not signed in * refactor: :recycle: remove import * chore: :loud_sound: :hammer: remove logs * docs: :memo: update changelog * fix: :bug: check license content all times * fix: :bug: update on zenodo ui page * feat: :sparkles: delete branch after pr has been closed/merged * chore: :hammer: spacing in changelog * wip: :construction: individual validation requests for license and metadata * feat: :sparkles: license validation endpoint * wip: :construction: creating updated metadata validation * wip: :construction: patches for metadata revalidation workflow * wip: :construction: validation for codemeta * doc: :bookmark: jsdoc comments on fns * fix: 🐛 template renderer will stop using old links (#99) * fix: :bug: rerender template will stop using old links * doc: :memo: update CHANGELOG * doc: :memo: update metadata * fix: :bug: preserve authors and contributors from codemeta * feat: :sparkles: re-validated codemeta from repo dashboard * fix: :bug: await metadata validation * feat: :sparkles: codemeta validation extended with microservice validator * refactor: :recycle: update timestamps to be unix format * feat: :sparkles: clean privatekey env before use * refactor: :recycle: update cwl validation endpoint * wip: :construction: send validation message to db * feat: :sparkles: create migrations for metadata validation messages * wip: :construction: creating json schema for codemeta.json validations * 👷 ci: setup deployment environments (#101) * 👷 ci: setup for staging env (#103) Co-authored-by: Sanjay Soundarajan Co-authored-by: slugb0t fix: 🐛 template renderer will stop using old links (#99) * fix: :bug: adjust env variables used after env changes * 👷 ci: cleanup dockerfile * feat: :sparkles: codemeta schema first draft * 👷 ci: cleanup dockerfile * 👷 ci: cleanup dockerfile * 👷 ci: cleanup dockerfile * 👷 ci: setup for staging env * 👷 ci: setup for staging env * 👷 ci: setup for staging env * 👷 ci: setup for staging env * 👷 ci: cleanup dockerfile * 👷 ci: fix staging deploys (#104) * wip: :construction: abstracting cwl workflow * refactor: :recycle: update codemeta schema to validate against the raw codemeta.json files * refactor: :recycle: update codemeta schema for additional fields * feat: :sparkles: validating raw content of codemeta.json file for 3.0 * refactor: :recycle: create required fields for codemeta schema * wip: :construction: testing validation responses for db * handle codemeta.json 3.0 and 2.0 versioning * fix: :bug: correct branch watch for staging deployment action * doc: :bookmark: update changelog for 3.2.0 release * feat: :sparkles: align bot prisma with ui * fix: :bug: bug patch for cwl workflow * feat: :sparkles: metadata workflow update * refactor: :recycle: preserving authors and contributors * wip: :construction: update the metadata workflow after discussions * fix: :bug: don't create cwlobject twice * refactor: :recycle: send 200 status when invalid codemeta * refactor: :recycle: update codemeta validation schema * refactor: :recycle: do not revalidate metadata files for push events unless metadata files are updated themselves * wip: :construction: seperate rerun validation with regather information * wip: :construction: remove command from issue dashboard if error occurs (allows retry) * refactor: :recycle: update the issue body after successful validation (remove the command from the issue body) * refactor: :recycle: add additional key to codemeta schema * refactor: :recycle: remove the regather options from the UI as validation is still needed when regathering * fix: :bug: pr button updated with new links * fix: :bug: patch variable declaration not in scope * refactor: :recycle: update on the dropdown icons * refactor: :recycle: update the keys of the cwl object * refactor: :recycle: update the getcwlfiles function --------- Co-authored-by: Sanjay Soundarajan * fix: :bug: use the correct env variable for private key * fix: 🐛 Codefair v3.2.0 finalization (#113) * fix: :bug: correct cwlObject variables in push event * fix: :bug: better error message in metadata workflow + collect missing fields from codemeta.json * fix: :bug: apply await to async function call * refactor: :recycle: removed unused imports * refactor: :recycle: add try catch in then statement of promise * fix: :bug: missing fields in codemeta gathering + add error handling for convertCitationForDB fn * refactor: :recycle: add try catch to renderer to preserve errors * fix: :bug: preserve metadata validation results in db * wip: :construction: validation results being displayed through the repo dashboard * wip: :construction: displaying metadata validation results in seperate pages * feat: :sparkles: validation page for codemeta * fix: :bug: patch fundingCode not being preserved from codemeta * wip: :construction: final design for validation results * feat: :sparkles: add view validation results conditionally * test: :alembic: ensuring validation progresses accordingly * feat: :sparkles: popover messages for metadata badges * feat: :sparkles: if metadata file fails to parse then update validation message * fix: :bug: update schema to handle 2.0 and 3.0 authors * style: :art: formatting * fix: :bug: add releaseNotes key to schema for 3.0 versions * refactor: :pencil2: change wording * fix: :bug: validate metadata file that was updated only on push events * chore: :memo: remove test logs * fix: :bug: migrate db during deployment * fix: :bug: revert * fix: :bug: typo on dockerfile * refactor: :recycle: use npm instead of yarn for migration * refactor: :recycle: access db url during prisma build * refactor: :recycle: apply node env * 💚 ci: copy package json * 💚 ci: revert arg * 💚 ci: add prisma migrate to ci * 💚 ci: add prisma migrate to ci * 👷 ci: update dockerfile * refactor: :recycle: use deployed validator * fix: :bug: when license is updated validate metadata files * fix: :bug: validation returns codemeta version on errors * 🐛 fix: add basic logwatch * fix: :bug: add @type key for 2.0 codemeta.json files * refactor: :recycle: updated required fields for codemeta schmea * 🐛 fix: add logwatch support * 🐛 fix: add json to logwatch * fix: :bug: patch json parse issue * fix: :bug: update logging parameters * refactor: :recycle: point a folder above for codemeta-schema * refactor: :recycle: update dockerfile to include schema * fix: :bug: ensure authors have roles key * refactor: :recycle: :loud_sound: convert some consola logs to logwatch * fix: :bug: roles are optional in save request * chore: :loud_sound: remove dev logs * doc: :memo: update changelog * refactor: :recycle: revert roles key being optional * fix: :bug: add logwatch.start method * fix: :bug: ensure contrib and authros have roles * fix: :bug: CWL handles multiple installations * refactor: :recycle: update log error * feat: :sparkles: purge zenodo token when sign in is required * fix: :bug: make login fn asyncronous * refactor: :art: update spacing and color of validation results button --------- Co-authored-by: Sanjay Soundarajan * chore: 📝 Update CITATION.cff with Zenodo identifier * chore: 📝 Update codemeta.json with Zenodo identifier * fix: :bug: bad logwatch calls removed --------- Co-authored-by: Sanjay Soundarajan Co-authored-by: codefair-io[bot] <165336008+codefair-io[bot]@users.noreply.github.com> --- CITATION.cff | 10 +++++----- codemeta.json | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CITATION.cff b/CITATION.cff index b43a2a7..9c93aa5 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -15,15 +15,15 @@ authors: cff-version: 1.2.0 message: If you use this software, please cite it using the metadata from this file. type: software -doi: 10.5281/zenodo.14064362 -abstract: +doi: 10.5281/zenodo.14400138 +abstract: >- Codefair is a free and open source GitHub app that acts as your personal assistant when it comes to making your research software reusable and especially complying with the Findable, Accessible, Interoperable, Reusable (FAIR) Principles for Research Software (FAIR4RS Principles). Whether you are developing artificial intelligence (AI)/machine learning (ML) models with Python, data visualization tools with Jupyter notebook, or data analysis code - with R, Codefair is here to assist you. + with R, Codefair is here to assist you. keywords: - best-practices - fair @@ -32,5 +32,5 @@ keywords: - software license: MIT repository-code: https://github.com/fairdataihub/codefair-app -date-released: '2024-11-11' -version: 3.1.1 +date-released: '2024-12-11' +version: 3.2.0 diff --git a/codemeta.json b/codemeta.json index 8f6b025..b2fe42a 100644 --- a/codemeta.json +++ b/codemeta.json @@ -39,12 +39,12 @@ ], "codeRepository": "https://github.com/fairdataihub/codefair-app", "dateCreated": "2024-03-27", - "dateModified": "2024-11-11", + "dateModified": "2024-12-11", "datePublished": "2024-09-03", "description": "Codefair is a free and open source GitHub app that acts as your personal assistant when it comes to making your research software reusable and especially complying with the Findable, Accessible, Interoperable, Reusable (FAIR) Principles for Research Software (FAIR4RS Principles). Whether you are developing artificial intelligence (AI)/machine learning (ML) models with Python, data visualization tools with Jupyter notebook, or data analysis code with R, Codefair is here to assist you. ", "developmentStatus": "active", "downloadUrl": "https://github.com/marketplace/codefair-app", - "identifier": "10.5281/zenodo.14064362", + "identifier": "10.5281/zenodo.14400138", "issueTracker": "https://github.com/fairdataihub/codefair-app/issues", "keywords": [ "best-practices", @@ -66,6 +66,6 @@ "https://docs.codefair.io/" ], "schema:releaseNotes": "## v3.1.1 - 11-12-2024\n\n### Fixed\n\n- Remove outdated URL links in the template renderer to ensure the correct and current links are used for metadata, CWL, and license templates.", - "version": "3.1.1", + "version": "3.2.0", "type": "SoftwareSourceCode" } \ No newline at end of file