Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: ♻️ Custom License Support #94

Merged
merged 8 commits into from
Nov 1, 2024

Conversation

slugb0t
Copy link
Member

@slugb0t slugb0t commented Nov 1, 2024

Summary by Sourcery

Enhancements:

  • Add support for handling custom licenses in the issue dashboard, including rendering and updating license information.

Copy link

Thank you for submitting this pull request! We appreciate your contribution to the project. Before we can merge it, we need to review the changes you've made to ensure they align with our code standards and meet the requirements of the project. We'll get back to you as soon as we can with feedback. Thanks again!

Copy link

sourcery-ai bot commented Nov 1, 2024

Reviewer's Guide by Sourcery

This PR implements custom license support with significant changes to how licenses are validated, displayed, and handled in the system. The main changes include improved license validation logic, updated UI components to handle custom licenses, and new API endpoints for managing custom license titles. The implementation also adds restrictions for Zenodo publishing when using custom licenses.

Sequence diagram for updating issue with custom license

sequenceDiagram
    participant User
    participant Bot
    participant Database
    participant Zenodo

    User->>Bot: Request to update issue with custom license
    Bot->>Database: Fetch licenseRequest, codeMetadata, cwlValidation
    Database-->>Bot: Return license details
    Bot->>Bot: Check license, citation, codemeta, cwl
    Bot->>Bot: Render issue body with license details
    Bot->>Zenodo: Attempt to publish with custom license
    Zenodo-->>Bot: Error due to custom license
    Bot->>User: Notify about custom license restriction
Loading

Updated class diagram for license validation

classDiagram
    class LicenseRequest {
        +String license_id
        +String license_content
        +String custom_license_title
    }
    class LicenseValidator {
        +validateLicense(licenseRequest, existingLicense)
    }
    class LicenseHandler {
        +createLicense(context, owner, repo, license)
        +applyLicenseTemplate(subjects, licenseId, existingLicense)
    }
    LicenseRequest <|-- LicenseValidator
    LicenseValidator <|-- LicenseHandler
    note for LicenseValidator "Handles validation of custom licenses"
Loading

File-Level Changes

Change Details Files
Enhanced license validation logic with improved handling of custom licenses
  • Added more robust license content decoding with error handling
  • Updated NOASSERTION handling logic to better handle custom licenses
  • Improved validation flow to maintain existing custom license information
bot/license/index.js
Updated UI to support custom license workflow
  • Added warning tag for custom license limitations
  • Disabled Zenodo publishing button when using custom licenses
  • Updated license warning messages to be more informative
  • Added custom license title display in the dashboard
ui/pages/dashboard/[owner]/[repo]/index.vue
ui/pages/dashboard/[owner]/[repo]/release/zenodo.vue
ui/pages/dashboard/[owner]/[repo]/edit/license.vue
Added new API endpoint for custom license title management
  • Created new PUT endpoint for updating custom license titles
  • Implemented authorization checks and validation
  • Added dashboard re-rendering functionality
ui/server/api/[owner]/[repo]/license/custom_title.put.ts
Enhanced dashboard rendering and issue management
  • Added support for custom license flag in issue rendering
  • Implemented dashboard re-rendering command handling
  • Updated issue templates for custom license scenarios
bot/index.js
bot/utils/renderer/index.js
bot/archival/index.js

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

Thanks for making updates to your pull request. Our team will take a look and provide feedback as soon as possible. Please wait for any GitHub Actions to complete before editing your pull request. If you have any additional questions or concerns, feel free to let us know. Thank you for your contributions!

Copy link

what-the-diff bot commented Nov 1, 2024

PR Summary

  • Enhanced Badge Definition: The badgeURL definition in the archival bot system was adjusted to ensure a consistent definition post initialization of the title. This promotes uniformity and reduces issues related to object definition.
  • Leaner Console Output: Debug output related to the issue body update has been temporarily disabled for a cleaner console interface. This helps focus on relevant system messages during testing and debugging.
  • Dynamic Issue Dashboard Rendering: Introduced logic in bot system to refresh the issue dashboard when a specific comment is detected. Additional database checks and metadata collection about the repository was added to support this change.
  • Improved License Validation: The license validation process was refined to include a check for empty content and adaptive updates in custom license scenarios. This ensures complete and accurate license data.
  • Better License Template Communication: License template messages are made clearer for users particularly in relation to the use of custom licenses with Zenodo.
  • Flag for Custom Licenses: An alteration to the issue rendering enables flags for custom licenses, offering a visual cue when a custom license is used.
  • New TypeScript Components: Now new TypeScript components such as NCollapseTransition and NDatePicker have been defined in the UI components.
  • Specific API Endpoint: A more precise API endpoint was set for saving custom license titles, resulting in better control and management of the operation.
  • Easier-to-understand License Warning Message: The warning message related to custom licenses in the user interface is updated to clearer language improving user understanding.
  • API Endpoint for License Custom Title Updates: A new API endpoint was created to handle updates of custom license titles, equipped with logic for validation and error handling. Now users can change the titles of their custom licenses with peace of mind.

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @slugb0t - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

bot/index.js Outdated Show resolved Hide resolved
bot/index.js Show resolved Hide resolved
bot/index.js Show resolved Hide resolved
bot/index.js Show resolved Hide resolved
bot/index.js Show resolved Hide resolved
@slugb0t slugb0t merged commit fbad7d8 into 3.0.1 Nov 1, 2024
Copy link

Thanks for closing this pull request! If you have any further questions, please feel free to open a new issue. We are always happy to help!

slugb0t added a commit that referenced this pull request Nov 1, 2024
* fix: 🐛 patch removing pull_request.closed bug on metadata pr merge

* fix: 🐛 don't update firstPublished in the codemeta file + better logs

* fix: 🐛 patch error on reading db entry when it doesn't exist

* chore: 🔊 better log on successful Zenodo publish

* style: 🎨 margins between text and icon

* feat: ✨ links to the list of tools used for codefair in /codefair

* refactor: ✨ ♻️ abstract the license validation fn

* doc: 🔖 update changelog

* feat: ✨ ♻️ abstraction to zenodo workflow

* wip: 🚧 abstracting zenodo workflow

* feat: ✨ add help link in the Zenodo release page

* refactor: ♻️ ✨ abstract out github release functions

* refactor: 🔊 ♻️ improve error tracing in metadata file

* chore: 🔨 remove todo

* refactor: ✨ ♻️ abstracted Zenodo workflow (bot)

* wip: 🚧 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: 🐛 license is valid with custom license

* feat: ✨ 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: ♻️ ✨ new patches for license, cwl, metadata UI's

* refactor: ✨ ♻️ apply migrations from UI to bot

* feat: ✨ request custom license title from user

* refactor: ♻️ hide message box when custom license title is blank

* refactor: ♻️ issue dashboard requests custom title

* feat: ✨ Saving custom title (#93)

* feat: ✨ save custom title option

* refactor: :recyle: reuse saveLicenseDraft for storing custom license title

* refactor: ♻️ join draft and save title buttons together

* refactor: ♻️ use naive-ui's properties for styling

* chore: 🔨 remove typo

* chore: 🔨 remove unused variables

* feat: ✨ toasts for custom title saved button

* refactor: ♻️ function rename

* feat: ✨ create Zenodo metadata fn handles custom licenses

* feat: ✨ custom license reference for archival workflow

* refactor: ♻️ stop creating identifiers for new db entries

* refactor: ♻️ 🐛 revert allowing custom licenses for zenodo

* refactor: ♻️ Custom License Support (#94)

* refactor: ♻️ ✨ custom title saved updates dashboard, disable create release btn when custom license

* refactor: ♻️ block progress of fair release if license is custom

* feat: ✨ listener for when custom license title is saved through UI

* feat: ✨ prevent fair release if not fair compliant

* refactor: ♻️ improve license validation and update template text for custom licenses

* refactor: ♻️ re-render issue from ui side

* refactor: ♻️ update to message explaining custom licenses

* db calls running in parallel

* fix: 🐛 prevent Zendo section from being seen when the license is custom

* fix: 🐛 trim license content before comparison

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>
slugb0t added a commit that referenced this pull request Nov 5, 2024
* merge: 🔀 merge main to staging

* refactor: ♻️ 🐛 Codefair 3.1.0 (#89)

* fix: 🐛 patch removing pull_request.closed bug on metadata pr merge

* fix: 🐛 don't update firstPublished in the codemeta file + better logs

* fix: 🐛 patch error on reading db entry when it doesn't exist

* chore: 🔊 better log on successful Zenodo publish

* style: 🎨 margins between text and icon

* feat: ✨ links to the list of tools used for codefair in /codefair

* refactor: ✨ ♻️ abstract the license validation fn

* doc: 🔖 update changelog

* feat: ✨ ♻️ abstraction to zenodo workflow

* wip: 🚧 abstracting zenodo workflow

* feat: ✨ add help link in the Zenodo release page

* refactor: ♻️ ✨ abstract out github release functions

* refactor: 🔊 ♻️ improve error tracing in metadata file

* chore: 🔨 remove todo

* refactor: ✨ ♻️ abstracted Zenodo workflow (bot)

* wip: 🚧 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: 🐛 license is valid with custom license

* feat: ✨ 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: ♻️ ✨ new patches for license, cwl, metadata UI's

* refactor: ✨ ♻️ apply migrations from UI to bot

* feat: ✨ request custom license title from user

* refactor: ♻️ hide message box when custom license title is blank

* refactor: ♻️ issue dashboard requests custom title

* feat: ✨ Saving custom title (#93)

* feat: ✨ save custom title option

* refactor: :recyle: reuse saveLicenseDraft for storing custom license title

* refactor: ♻️ join draft and save title buttons together

* refactor: ♻️ use naive-ui's properties for styling

* chore: 🔨 remove typo

* chore: 🔨 remove unused variables

* feat: ✨ toasts for custom title saved button

* refactor: ♻️ function rename

* feat: ✨ create Zenodo metadata fn handles custom licenses

* feat: ✨ custom license reference for archival workflow

* refactor: ♻️ stop creating identifiers for new db entries

* refactor: ♻️ 🐛 revert allowing custom licenses for zenodo

* refactor: ♻️ Custom License Support (#94)

* refactor: ♻️ ✨ custom title saved updates dashboard, disable create release btn when custom license

* refactor: ♻️ block progress of fair release if license is custom

* feat: ✨ listener for when custom license title is saved through UI

* feat: ✨ prevent fair release if not fair compliant

* refactor: ♻️ improve license validation and update template text for custom licenses

* refactor: ♻️ re-render issue from ui side

* refactor: ♻️ update to message explaining custom licenses

* db calls running in parallel

* fix: 🐛 prevent Zendo section from being seen when the license is custom

* fix: 🐛 trim license content before comparison

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* refactor: ♻️ safety checks for protected middleware

* refacotr: ♻️ update protectRoute to redirect to login when no user or session

* feat: :fix: redirect to login if not signed in

* refactor: ♻️ remove import

* chore: 🔊 🔨 remove logs

* docs: 📝 update changelog

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>
slugb0t added a commit that referenced this pull request Nov 5, 2024
commit 1bd8d1c
Author: slugb0t <wheresdorian@gmail.com>
Date:   Tue Nov 5 11:08:12 2024 -0800

    fix: :bug: check license content all times

commit 2a86142
Merge: 0633f39 be31908
Author: Dorian Portillo <wheresdorian@gmail.com>
Date:   Tue Nov 5 10:26:45 2024 -0800

    Merge branch 'main' into staging

commit 0633f39
Author: slugb0t <wheresdorian@gmail.com>
Date:   Tue Nov 5 10:23:15 2024 -0800

    docs: :memo: update changelog

commit 73075f0
Author: slugb0t <wheresdorian@gmail.com>
Date:   Tue Nov 5 09:55:32 2024 -0800

    chore: :loud_sound: :hammer: remove logs

commit 5a3d124
Author: slugb0t <wheresdorian@gmail.com>
Date:   Fri Nov 1 15:53:25 2024 -0700

    refactor: :recycle: remove import

commit f22515e
Author: slugb0t <wheresdorian@gmail.com>
Date:   Fri Nov 1 14:10:50 2024 -0700

    feat: :fix: redirect to login if not signed in

commit 07c61bc
Author: slugb0t <wheresdorian@gmail.com>
Date:   Fri Nov 1 13:43:29 2024 -0700

    refacotr: :recycle: update protectRoute to redirect to login when no user or session

commit 26d715b
Author: slugb0t <wheresdorian@gmail.com>
Date:   Fri Nov 1 13:11:22 2024 -0700

    refactor: :recycle: safety checks for protected middleware

commit 45d8f15
Author: Dorian Portillo <wheresdorian@gmail.com>
Date:   Fri Nov 1 12:30:41 2024 -0700

    refactor: ♻️ 🐛 Codefair 3.1.0 (#89)

    * fix: 🐛 patch removing pull_request.closed bug on metadata pr merge

    * fix: 🐛 don't update firstPublished in the codemeta file + better logs

    * fix: 🐛 patch error on reading db entry when it doesn't exist

    * chore: 🔊 better log on successful Zenodo publish

    * style: 🎨 margins between text and icon

    * feat: ✨ links to the list of tools used for codefair in /codefair

    * refactor: ✨ ♻️ abstract the license validation fn

    * doc: 🔖 update changelog

    * feat: ✨ ♻️ abstraction to zenodo workflow

    * wip: 🚧 abstracting zenodo workflow

    * feat: ✨ add help link in the Zenodo release page

    * refactor: ♻️ ✨ abstract out github release functions

    * refactor: 🔊 ♻️ improve error tracing in metadata file

    * chore: 🔨 remove todo

    * refactor: ✨ ♻️ abstracted Zenodo workflow (bot)

    * wip: 🚧 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: 🐛 license is valid with custom license

    * feat: ✨ 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: ♻️ ✨ new patches for license, cwl, metadata UI's

    * refactor: ✨ ♻️ apply migrations from UI to bot

    * feat: ✨ request custom license title from user

    * refactor: ♻️ hide message box when custom license title is blank

    * refactor: ♻️ issue dashboard requests custom title

    * feat: ✨ Saving custom title (#93)

    * feat: ✨ save custom title option

    * refactor: :recyle: reuse saveLicenseDraft for storing custom license title

    * refactor: ♻️ join draft and save title buttons together

    * refactor: ♻️ use naive-ui's properties for styling

    * chore: 🔨 remove typo

    * chore: 🔨 remove unused variables

    * feat: ✨ toasts for custom title saved button

    * refactor: ♻️ function rename

    * feat: ✨ create Zenodo metadata fn handles custom licenses

    * feat: ✨ custom license reference for archival workflow

    * refactor: ♻️ stop creating identifiers for new db entries

    * refactor: ♻️ 🐛 revert allowing custom licenses for zenodo

    * refactor: ♻️ Custom License Support (#94)

    * refactor: ♻️ ✨ custom title saved updates dashboard, disable create release btn when custom license

    * refactor: ♻️ block progress of fair release if license is custom

    * feat: ✨ listener for when custom license title is saved through UI

    * feat: ✨ prevent fair release if not fair compliant

    * refactor: ♻️ improve license validation and update template text for custom licenses

    * refactor: ♻️ re-render issue from ui side

    * refactor: ♻️ update to message explaining custom licenses

    * db calls running in parallel

    * fix: 🐛 prevent Zendo section from being seen when the license is custom

    * fix: 🐛 trim license content before comparison

    ---------

    Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

commit 604e4db
Author: slugb0t <wheresdorian@gmail.com>
Date:   Thu Oct 17 10:52:34 2024 -0700

    merge: :twisted_rightwards_arrows: merge main to staging
slugb0t added a commit that referenced this pull request Nov 5, 2024
* merge: 🔀 merge main to staging

* refactor: ♻️ 🐛 Codefair 3.1.0 (#89)

* fix: 🐛 patch removing pull_request.closed bug on metadata pr merge

* fix: 🐛 don't update firstPublished in the codemeta file + better logs

* fix: 🐛 patch error on reading db entry when it doesn't exist

* chore: 🔊 better log on successful Zenodo publish

* style: 🎨 margins between text and icon

* feat: ✨ links to the list of tools used for codefair in /codefair

* refactor: ✨ ♻️ abstract the license validation fn

* doc: 🔖 update changelog

* feat: ✨ ♻️ abstraction to zenodo workflow

* wip: 🚧 abstracting zenodo workflow

* feat: ✨ add help link in the Zenodo release page

* refactor: ♻️ ✨ abstract out github release functions

* refactor: 🔊 ♻️ improve error tracing in metadata file

* chore: 🔨 remove todo

* refactor: ✨ ♻️ abstracted Zenodo workflow (bot)

* wip: 🚧 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: 🐛 license is valid with custom license

* feat: ✨ 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: ♻️ ✨ new patches for license, cwl, metadata UI's

* refactor: ✨ ♻️ apply migrations from UI to bot

* feat: ✨ request custom license title from user

* refactor: ♻️ hide message box when custom license title is blank

* refactor: ♻️ issue dashboard requests custom title

* feat: ✨ Saving custom title (#93)

* feat: ✨ save custom title option

* refactor: :recyle: reuse saveLicenseDraft for storing custom license title

* refactor: ♻️ join draft and save title buttons together

* refactor: ♻️ use naive-ui's properties for styling

* chore: 🔨 remove typo

* chore: 🔨 remove unused variables

* feat: ✨ toasts for custom title saved button

* refactor: ♻️ function rename

* feat: ✨ create Zenodo metadata fn handles custom licenses

* feat: ✨ custom license reference for archival workflow

* refactor: ♻️ stop creating identifiers for new db entries

* refactor: ♻️ 🐛 revert allowing custom licenses for zenodo

* refactor: ♻️ Custom License Support (#94)

* refactor: ♻️ ✨ custom title saved updates dashboard, disable create release btn when custom license

* refactor: ♻️ block progress of fair release if license is custom

* feat: ✨ listener for when custom license title is saved through UI

* feat: ✨ prevent fair release if not fair compliant

* refactor: ♻️ improve license validation and update template text for custom licenses

* refactor: ♻️ re-render issue from ui side

* refactor: ♻️ update to message explaining custom licenses

* db calls running in parallel

* fix: 🐛 prevent Zendo section from being seen when the license is custom

* fix: 🐛 trim license content before comparison

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* refactor: ♻️ safety checks for protected middleware

* refacotr: ♻️ update protectRoute to redirect to login when no user or session

* feat: :fix: redirect to login if not signed in

* refactor: ♻️ remove import

* chore: 🔊 🔨 remove logs

* docs: 📝 update changelog

* fix: 🐛 check license content all times

* fix: 🐛 update on zenodo ui page

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>
slugb0t added a commit that referenced this pull request Nov 12, 2024
* merge: 🔀 merge main to staging

* refactor: ♻️ 🐛 Codefair 3.1.0 (#89)

* fix: 🐛 patch removing pull_request.closed bug on metadata pr merge

* fix: 🐛 don't update firstPublished in the codemeta file + better logs

* fix: 🐛 patch error on reading db entry when it doesn't exist

* chore: 🔊 better log on successful Zenodo publish

* style: 🎨 margins between text and icon

* feat: ✨ links to the list of tools used for codefair in /codefair

* refactor: ✨ ♻️ abstract the license validation fn

* doc: 🔖 update changelog

* feat: ✨ ♻️ abstraction to zenodo workflow

* wip: 🚧 abstracting zenodo workflow

* feat: ✨ add help link in the Zenodo release page

* refactor: ♻️ ✨ abstract out github release functions

* refactor: 🔊 ♻️ improve error tracing in metadata file

* chore: 🔨 remove todo

* refactor: ✨ ♻️ abstracted Zenodo workflow (bot)

* wip: 🚧 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: 🐛 license is valid with custom license

* feat: ✨ 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: ♻️ ✨ new patches for license, cwl, metadata UI's

* refactor: ✨ ♻️ apply migrations from UI to bot

* feat: ✨ request custom license title from user

* refactor: ♻️ hide message box when custom license title is blank

* refactor: ♻️ issue dashboard requests custom title

* feat: ✨ Saving custom title (#93)

* feat: ✨ save custom title option

* refactor: :recyle: reuse saveLicenseDraft for storing custom license title

* refactor: ♻️ join draft and save title buttons together

* refactor: ♻️ use naive-ui's properties for styling

* chore: 🔨 remove typo

* chore: 🔨 remove unused variables

* feat: ✨ toasts for custom title saved button

* refactor: ♻️ function rename

* feat: ✨ create Zenodo metadata fn handles custom licenses

* feat: ✨ custom license reference for archival workflow

* refactor: ♻️ stop creating identifiers for new db entries

* refactor: ♻️ 🐛 revert allowing custom licenses for zenodo

* refactor: ♻️ Custom License Support (#94)

* refactor: ♻️ ✨ custom title saved updates dashboard, disable create release btn when custom license

* refactor: ♻️ block progress of fair release if license is custom

* feat: ✨ listener for when custom license title is saved through UI

* feat: ✨ prevent fair release if not fair compliant

* refactor: ♻️ improve license validation and update template text for custom licenses

* refactor: ♻️ re-render issue from ui side

* refactor: ♻️ update to message explaining custom licenses

* db calls running in parallel

* fix: 🐛 prevent Zendo section from being seen when the license is custom

* fix: 🐛 trim license content before comparison

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* refactor: ♻️ safety checks for protected middleware

* refacotr: ♻️ update protectRoute to redirect to login when no user or session

* feat: :fix: redirect to login if not signed in

* refactor: ♻️ remove import

* chore: 🔊 🔨 remove logs

* docs: 📝 update changelog

* fix: 🐛 check license content all times

* fix: 🐛 update on zenodo ui page

* fix: 🐛 template renderer will stop using old links (#99)

* fix: 🐛 rerender template will stop using old links

* doc: 📝 update CHANGELOG

* doc: 📝 update metadata

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>
@megasanjay megasanjay deleted the revert-custom-license-release branch November 15, 2024 18:54
slugb0t added a commit that referenced this pull request Dec 2, 2024
* merge: 🔀 merge main to staging

* refactor: ♻️ 🐛 Codefair 3.1.0 (#89)

* fix: 🐛 patch removing pull_request.closed bug on metadata pr merge

* fix: 🐛 don't update firstPublished in the codemeta file + better logs

* fix: 🐛 patch error on reading db entry when it doesn't exist

* chore: 🔊 better log on successful Zenodo publish

* style: 🎨 margins between text and icon

* feat: ✨ links to the list of tools used for codefair in /codefair

* refactor: ✨ ♻️ abstract the license validation fn

* doc: 🔖 update changelog

* feat: ✨ ♻️ abstraction to zenodo workflow

* wip: 🚧 abstracting zenodo workflow

* feat: ✨ add help link in the Zenodo release page

* refactor: ♻️ ✨ abstract out github release functions

* refactor: 🔊 ♻️ improve error tracing in metadata file

* chore: 🔨 remove todo

* refactor: ✨ ♻️ abstracted Zenodo workflow (bot)

* wip: 🚧 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: 🐛 license is valid with custom license

* feat: ✨ 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: ♻️ ✨ new patches for license, cwl, metadata UI's

* refactor: ✨ ♻️ apply migrations from UI to bot

* feat: ✨ request custom license title from user

* refactor: ♻️ hide message box when custom license title is blank

* refactor: ♻️ issue dashboard requests custom title

* feat: ✨ Saving custom title (#93)

* feat: ✨ save custom title option

* refactor: :recyle: reuse saveLicenseDraft for storing custom license title

* refactor: ♻️ join draft and save title buttons together

* refactor: ♻️ use naive-ui's properties for styling

* chore: 🔨 remove typo

* chore: 🔨 remove unused variables

* feat: ✨ toasts for custom title saved button

* refactor: ♻️ function rename

* feat: ✨ create Zenodo metadata fn handles custom licenses

* feat: ✨ custom license reference for archival workflow

* refactor: ♻️ stop creating identifiers for new db entries

* refactor: ♻️ 🐛 revert allowing custom licenses for zenodo

* refactor: ♻️ Custom License Support (#94)

* refactor: ♻️ ✨ custom title saved updates dashboard, disable create release btn when custom license

* refactor: ♻️ block progress of fair release if license is custom

* feat: ✨ listener for when custom license title is saved through UI

* feat: ✨ prevent fair release if not fair compliant

* refactor: ♻️ improve license validation and update template text for custom licenses

* refactor: ♻️ re-render issue from ui side

* refactor: ♻️ update to message explaining custom licenses

* db calls running in parallel

* fix: 🐛 prevent Zendo section from being seen when the license is custom

* fix: 🐛 trim license content before comparison

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* refactor: ♻️ safety checks for protected middleware

* refacotr: ♻️ update protectRoute to redirect to login when no user or session

* feat: :fix: redirect to login if not signed in

* refactor: ♻️ remove import

* chore: 🔊 🔨 remove logs

* docs: 📝 update changelog

* fix: 🐛 check license content all times

* fix: 🐛 update on zenodo ui page

* feat: ✨ delete branch after pr has been closed/merged

* chore: 🔨 spacing in changelog

* wip: 🚧 individual validation requests for license and metadata

* feat: ✨ license validation endpoint

* wip: 🚧 creating updated metadata validation

* wip: 🚧 patches for metadata revalidation workflow

* wip: 🚧 validation for codemeta

* doc: 🔖 jsdoc comments on fns

* fix: 🐛 template renderer will stop using old links (#99)

* fix: 🐛 rerender template will stop using old links

* doc: 📝 update CHANGELOG

* doc: 📝 update metadata

* fix: 🐛 preserve authors and contributors from codemeta

* feat: ✨ re-validated codemeta from repo dashboard

* fix: 🐛 await metadata validation

* feat: ✨ codemeta validation extended with microservice validator

* refactor: ♻️ update timestamps to be unix format

* feat: ✨ clean privatekey env before use

* refactor: ♻️ update cwl validation endpoint

* wip: 🚧 send validation message to db

* feat: ✨ create migrations for metadata validation messages

* wip: 🚧 creating json schema for codemeta.json validations

* 👷 ci: setup deployment environments (#101)

* 👷 ci: setup for staging env (#103)

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>
Co-authored-by: slugb0t <wheresdorian@gmail.com>
fix: 🐛 template renderer will stop using old links (#99)

* fix: 🐛 adjust env variables used after env changes

* 👷 ci: cleanup dockerfile

* feat: ✨ 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: 🚧 abstracting cwl workflow

* refactor: ♻️ update codemeta schema to validate against the raw codemeta.json files

* refactor: ♻️ update codemeta schema for additional fields

* feat: ✨ validating raw content of codemeta.json file for 3.0

* refactor: ♻️ create required fields for codemeta schema

* wip: 🚧 testing validation responses for db

* handle codemeta.json 3.0 and 2.0 versioning

* fix: 🐛 correct branch watch for staging deployment action

* doc: 🔖 update changelog for 3.2.0 release

* feat: ✨ align bot prisma with ui

* fix: 🐛 bug patch for cwl workflow

* feat: ✨ metadata workflow update

* refactor: ♻️ preserving authors and contributors

* wip: 🚧 update the metadata workflow after discussions

* fix: 🐛 don't create cwlobject twice

* refactor: ♻️ send 200 status when invalid codemeta

* refactor: ♻️ update codemeta validation schema

* refactor: ♻️ do not revalidate metadata files for push events unless metadata files are updated themselves

* wip: 🚧 seperate rerun validation with regather information

* wip: 🚧 remove command from issue dashboard if error occurs (allows retry)

* refactor: ♻️ update the issue body after successful validation (remove the command from the issue body)

* refactor: ♻️ add additional key to codemeta schema

* refactor: ♻️ remove the regather options from the UI as validation is still needed when regathering

* fix: 🐛 pr button updated with new links

* fix: 🐛 patch variable declaration not in scope

* refactor: ♻️ update on the dropdown icons

* refactor: ♻️ update the keys of the cwl object

* refactor: ♻️ update the getcwlfiles function

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>
slugb0t added a commit that referenced this pull request Dec 10, 2024
* refactor: ♻️ 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: ♻️ update codefair name

* feat: ✨ Metadata + license validators + bug patches (#107)

* merge: 🔀 merge main to staging

* refactor: ♻️ 🐛 Codefair 3.1.0 (#89)

* fix: 🐛 patch removing pull_request.closed bug on metadata pr merge

* fix: 🐛 don't update firstPublished in the codemeta file + better logs

* fix: 🐛 patch error on reading db entry when it doesn't exist

* chore: 🔊 better log on successful Zenodo publish

* style: 🎨 margins between text and icon

* feat: ✨ links to the list of tools used for codefair in /codefair

* refactor: ✨ ♻️ abstract the license validation fn

* doc: 🔖 update changelog

* feat: ✨ ♻️ abstraction to zenodo workflow

* wip: 🚧 abstracting zenodo workflow

* feat: ✨ add help link in the Zenodo release page

* refactor: ♻️ ✨ abstract out github release functions

* refactor: 🔊 ♻️ improve error tracing in metadata file

* chore: 🔨 remove todo

* refactor: ✨ ♻️ abstracted Zenodo workflow (bot)

* wip: 🚧 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: 🐛 license is valid with custom license

* feat: ✨ 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: ♻️ ✨ new patches for license, cwl, metadata UI's

* refactor: ✨ ♻️ apply migrations from UI to bot

* feat: ✨ request custom license title from user

* refactor: ♻️ hide message box when custom license title is blank

* refactor: ♻️ issue dashboard requests custom title

* feat: ✨ Saving custom title (#93)

* feat: ✨ save custom title option

* refactor: :recyle: reuse saveLicenseDraft for storing custom license title

* refactor: ♻️ join draft and save title buttons together

* refactor: ♻️ use naive-ui's properties for styling

* chore: 🔨 remove typo

* chore: 🔨 remove unused variables

* feat: ✨ toasts for custom title saved button

* refactor: ♻️ function rename

* feat: ✨ create Zenodo metadata fn handles custom licenses

* feat: ✨ custom license reference for archival workflow

* refactor: ♻️ stop creating identifiers for new db entries

* refactor: ♻️ 🐛 revert allowing custom licenses for zenodo

* refactor: ♻️ Custom License Support (#94)

* refactor: ♻️ ✨ custom title saved updates dashboard, disable create release btn when custom license

* refactor: ♻️ block progress of fair release if license is custom

* feat: ✨ listener for when custom license title is saved through UI

* feat: ✨ prevent fair release if not fair compliant

* refactor: ♻️ improve license validation and update template text for custom licenses

* refactor: ♻️ re-render issue from ui side

* refactor: ♻️ update to message explaining custom licenses

* db calls running in parallel

* fix: 🐛 prevent Zendo section from being seen when the license is custom

* fix: 🐛 trim license content before comparison

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* refactor: ♻️ safety checks for protected middleware

* refacotr: ♻️ update protectRoute to redirect to login when no user or session

* feat: :fix: redirect to login if not signed in

* refactor: ♻️ remove import

* chore: 🔊 🔨 remove logs

* docs: 📝 update changelog

* fix: 🐛 check license content all times

* fix: 🐛 update on zenodo ui page

* feat: ✨ delete branch after pr has been closed/merged

* chore: 🔨 spacing in changelog

* wip: 🚧 individual validation requests for license and metadata

* feat: ✨ license validation endpoint

* wip: 🚧 creating updated metadata validation

* wip: 🚧 patches for metadata revalidation workflow

* wip: 🚧 validation for codemeta

* doc: 🔖 jsdoc comments on fns

* fix: 🐛 template renderer will stop using old links (#99)

* fix: 🐛 rerender template will stop using old links

* doc: 📝 update CHANGELOG

* doc: 📝 update metadata

* fix: 🐛 preserve authors and contributors from codemeta

* feat: ✨ re-validated codemeta from repo dashboard

* fix: 🐛 await metadata validation

* feat: ✨ codemeta validation extended with microservice validator

* refactor: ♻️ update timestamps to be unix format

* feat: ✨ clean privatekey env before use

* refactor: ♻️ update cwl validation endpoint

* wip: 🚧 send validation message to db

* feat: ✨ create migrations for metadata validation messages

* wip: 🚧 creating json schema for codemeta.json validations

* 👷 ci: setup deployment environments (#101)

* 👷 ci: setup for staging env (#103)

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>
Co-authored-by: slugb0t <wheresdorian@gmail.com>
fix: 🐛 template renderer will stop using old links (#99)

* fix: 🐛 adjust env variables used after env changes

* 👷 ci: cleanup dockerfile

* feat: ✨ 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: 🚧 abstracting cwl workflow

* refactor: ♻️ update codemeta schema to validate against the raw codemeta.json files

* refactor: ♻️ update codemeta schema for additional fields

* feat: ✨ validating raw content of codemeta.json file for 3.0

* refactor: ♻️ create required fields for codemeta schema

* wip: 🚧 testing validation responses for db

* handle codemeta.json 3.0 and 2.0 versioning

* fix: 🐛 correct branch watch for staging deployment action

* doc: 🔖 update changelog for 3.2.0 release

* feat: ✨ align bot prisma with ui

* fix: 🐛 bug patch for cwl workflow

* feat: ✨ metadata workflow update

* refactor: ♻️ preserving authors and contributors

* wip: 🚧 update the metadata workflow after discussions

* fix: 🐛 don't create cwlobject twice

* refactor: ♻️ send 200 status when invalid codemeta

* refactor: ♻️ update codemeta validation schema

* refactor: ♻️ do not revalidate metadata files for push events unless metadata files are updated themselves

* wip: 🚧 seperate rerun validation with regather information

* wip: 🚧 remove command from issue dashboard if error occurs (allows retry)

* refactor: ♻️ update the issue body after successful validation (remove the command from the issue body)

* refactor: ♻️ add additional key to codemeta schema

* refactor: ♻️ remove the regather options from the UI as validation is still needed when regathering

* fix: 🐛 pr button updated with new links

* fix: 🐛 patch variable declaration not in scope

* refactor: ♻️ update on the dropdown icons

* refactor: ♻️ update the keys of the cwl object

* refactor: ♻️ update the getcwlfiles function

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* fix: 🐛 use the correct env variable for private key

* fix: 🐛 Codefair v3.2.0 finalization (#113)

* fix: 🐛 correct cwlObject variables in push event

* fix: 🐛 better error message in metadata workflow + collect missing fields from codemeta.json

* fix: 🐛 apply await to async function call

* refactor: ♻️ removed unused imports

* refactor: ♻️ add try catch in then statement of promise

* fix: 🐛 missing fields in codemeta gathering + add error handling for convertCitationForDB fn

* refactor: ♻️ add try catch to renderer to preserve errors

* fix: 🐛 preserve metadata validation results in db

* wip: 🚧 validation results being displayed through the repo dashboard

* wip: 🚧 displaying metadata validation results in seperate pages

* feat: ✨ validation page for codemeta

* fix: 🐛 patch fundingCode not being preserved from codemeta

* wip: 🚧 final design for validation results

* feat: ✨ add view validation results conditionally

* test: ⚗️ ensuring validation progresses accordingly

* feat: ✨ popover messages for metadata badges

* feat: ✨ if metadata file fails to parse then update validation message

* fix: 🐛 update schema to handle 2.0 and 3.0 authors

* style: 🎨 formatting

* fix: 🐛 add releaseNotes key to schema for 3.0 versions

* refactor: ✏️ change wording

* fix: 🐛 validate metadata file that was updated only on push events

* chore: 📝 remove test logs

* fix: 🐛 migrate db during deployment

* fix: 🐛 revert

* fix: 🐛 typo on dockerfile

* refactor: ♻️ use npm instead of yarn for migration

* refactor: ♻️ access db url during prisma build

* refactor: ♻️ 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: ♻️ use deployed validator

* fix: 🐛 when license is updated validate metadata files

* fix: 🐛 validation returns codemeta version on errors

* 🐛 fix: add basic logwatch

* fix: 🐛 add @type key for 2.0 codemeta.json files

* refactor: ♻️ updated required fields for codemeta schmea

* 🐛 fix: add logwatch support

* 🐛 fix: add json to logwatch

* fix: 🐛 patch json parse issue

* fix: 🐛 update logging parameters

* refactor: ♻️ point a folder above for codemeta-schema

* refactor: ♻️ update dockerfile to include schema

* fix: 🐛 ensure authors have roles key

* refactor: ♻️ 🔊 convert some consola logs to logwatch

* fix: 🐛 roles are optional in save request

* chore: 🔊 remove dev logs

* doc: 📝 update changelog

* refactor: ♻️ revert roles key being optional

* fix: 🐛 add logwatch.start method

* fix: 🐛 ensure contrib and authros have roles

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>
slugb0t added a commit that referenced this pull request Dec 10, 2024
* refactor: ♻️ 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: ♻️ update codefair name

* feat: ✨ Metadata + license validators + bug patches (#107)

* merge: 🔀 merge main to staging

* refactor: ♻️ 🐛 Codefair 3.1.0 (#89)

* fix: 🐛 patch removing pull_request.closed bug on metadata pr merge

* fix: 🐛 don't update firstPublished in the codemeta file + better logs

* fix: 🐛 patch error on reading db entry when it doesn't exist

* chore: 🔊 better log on successful Zenodo publish

* style: 🎨 margins between text and icon

* feat: ✨ links to the list of tools used for codefair in /codefair

* refactor: ✨ ♻️ abstract the license validation fn

* doc: 🔖 update changelog

* feat: ✨ ♻️ abstraction to zenodo workflow

* wip: 🚧 abstracting zenodo workflow

* feat: ✨ add help link in the Zenodo release page

* refactor: ♻️ ✨ abstract out github release functions

* refactor: 🔊 ♻️ improve error tracing in metadata file

* chore: 🔨 remove todo

* refactor: ✨ ♻️ abstracted Zenodo workflow (bot)

* wip: 🚧 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: 🐛 license is valid with custom license

* feat: ✨ 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: ♻️ ✨ new patches for license, cwl, metadata UI's

* refactor: ✨ ♻️ apply migrations from UI to bot

* feat: ✨ request custom license title from user

* refactor: ♻️ hide message box when custom license title is blank

* refactor: ♻️ issue dashboard requests custom title

* feat: ✨ Saving custom title (#93)

* feat: ✨ save custom title option

* refactor: :recyle: reuse saveLicenseDraft for storing custom license title

* refactor: ♻️ join draft and save title buttons together

* refactor: ♻️ use naive-ui's properties for styling

* chore: 🔨 remove typo

* chore: 🔨 remove unused variables

* feat: ✨ toasts for custom title saved button

* refactor: ♻️ function rename

* feat: ✨ create Zenodo metadata fn handles custom licenses

* feat: ✨ custom license reference for archival workflow

* refactor: ♻️ stop creating identifiers for new db entries

* refactor: ♻️ 🐛 revert allowing custom licenses for zenodo

* refactor: ♻️ Custom License Support (#94)

* refactor: ♻️ ✨ custom title saved updates dashboard, disable create release btn when custom license

* refactor: ♻️ block progress of fair release if license is custom

* feat: ✨ listener for when custom license title is saved through UI

* feat: ✨ prevent fair release if not fair compliant

* refactor: ♻️ improve license validation and update template text for custom licenses

* refactor: ♻️ re-render issue from ui side

* refactor: ♻️ update to message explaining custom licenses

* db calls running in parallel

* fix: 🐛 prevent Zendo section from being seen when the license is custom

* fix: 🐛 trim license content before comparison

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* refactor: ♻️ safety checks for protected middleware

* refacotr: ♻️ update protectRoute to redirect to login when no user or session

* feat: :fix: redirect to login if not signed in

* refactor: ♻️ remove import

* chore: 🔊 🔨 remove logs

* docs: 📝 update changelog

* fix: 🐛 check license content all times

* fix: 🐛 update on zenodo ui page

* feat: ✨ delete branch after pr has been closed/merged

* chore: 🔨 spacing in changelog

* wip: 🚧 individual validation requests for license and metadata

* feat: ✨ license validation endpoint

* wip: 🚧 creating updated metadata validation

* wip: 🚧 patches for metadata revalidation workflow

* wip: 🚧 validation for codemeta

* doc: 🔖 jsdoc comments on fns

* fix: 🐛 template renderer will stop using old links (#99)

* fix: 🐛 rerender template will stop using old links

* doc: 📝 update CHANGELOG

* doc: 📝 update metadata

* fix: 🐛 preserve authors and contributors from codemeta

* feat: ✨ re-validated codemeta from repo dashboard

* fix: 🐛 await metadata validation

* feat: ✨ codemeta validation extended with microservice validator

* refactor: ♻️ update timestamps to be unix format

* feat: ✨ clean privatekey env before use

* refactor: ♻️ update cwl validation endpoint

* wip: 🚧 send validation message to db

* feat: ✨ create migrations for metadata validation messages

* wip: 🚧 creating json schema for codemeta.json validations

* 👷 ci: setup deployment environments (#101)

* 👷 ci: setup for staging env (#103)

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>
Co-authored-by: slugb0t <wheresdorian@gmail.com>
fix: 🐛 template renderer will stop using old links (#99)

* fix: 🐛 adjust env variables used after env changes

* 👷 ci: cleanup dockerfile

* feat: ✨ 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: 🚧 abstracting cwl workflow

* refactor: ♻️ update codemeta schema to validate against the raw codemeta.json files

* refactor: ♻️ update codemeta schema for additional fields

* feat: ✨ validating raw content of codemeta.json file for 3.0

* refactor: ♻️ create required fields for codemeta schema

* wip: 🚧 testing validation responses for db

* handle codemeta.json 3.0 and 2.0 versioning

* fix: 🐛 correct branch watch for staging deployment action

* doc: 🔖 update changelog for 3.2.0 release

* feat: ✨ align bot prisma with ui

* fix: 🐛 bug patch for cwl workflow

* feat: ✨ metadata workflow update

* refactor: ♻️ preserving authors and contributors

* wip: 🚧 update the metadata workflow after discussions

* fix: 🐛 don't create cwlobject twice

* refactor: ♻️ send 200 status when invalid codemeta

* refactor: ♻️ update codemeta validation schema

* refactor: ♻️ do not revalidate metadata files for push events unless metadata files are updated themselves

* wip: 🚧 seperate rerun validation with regather information

* wip: 🚧 remove command from issue dashboard if error occurs (allows retry)

* refactor: ♻️ update the issue body after successful validation (remove the command from the issue body)

* refactor: ♻️ add additional key to codemeta schema

* refactor: ♻️ remove the regather options from the UI as validation is still needed when regathering

* fix: 🐛 pr button updated with new links

* fix: 🐛 patch variable declaration not in scope

* refactor: ♻️ update on the dropdown icons

* refactor: ♻️ update the keys of the cwl object

* refactor: ♻️ update the getcwlfiles function

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* fix: 🐛 use the correct env variable for private key

* fix: 🐛 Codefair v3.2.0 finalization (#113)

* fix: 🐛 correct cwlObject variables in push event

* fix: 🐛 better error message in metadata workflow + collect missing fields from codemeta.json

* fix: 🐛 apply await to async function call

* refactor: ♻️ removed unused imports

* refactor: ♻️ add try catch in then statement of promise

* fix: 🐛 missing fields in codemeta gathering + add error handling for convertCitationForDB fn

* refactor: ♻️ add try catch to renderer to preserve errors

* fix: 🐛 preserve metadata validation results in db

* wip: 🚧 validation results being displayed through the repo dashboard

* wip: 🚧 displaying metadata validation results in seperate pages

* feat: ✨ validation page for codemeta

* fix: 🐛 patch fundingCode not being preserved from codemeta

* wip: 🚧 final design for validation results

* feat: ✨ add view validation results conditionally

* test: ⚗️ ensuring validation progresses accordingly

* feat: ✨ popover messages for metadata badges

* feat: ✨ if metadata file fails to parse then update validation message

* fix: 🐛 update schema to handle 2.0 and 3.0 authors

* style: 🎨 formatting

* fix: 🐛 add releaseNotes key to schema for 3.0 versions

* refactor: ✏️ change wording

* fix: 🐛 validate metadata file that was updated only on push events

* chore: 📝 remove test logs

* fix: 🐛 migrate db during deployment

* fix: 🐛 revert

* fix: 🐛 typo on dockerfile

* refactor: ♻️ use npm instead of yarn for migration

* refactor: ♻️ access db url during prisma build

* refactor: ♻️ 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: ♻️ use deployed validator

* fix: 🐛 when license is updated validate metadata files

* fix: 🐛 validation returns codemeta version on errors

* 🐛 fix: add basic logwatch

* fix: 🐛 add @type key for 2.0 codemeta.json files

* refactor: ♻️ updated required fields for codemeta schmea

* 🐛 fix: add logwatch support

* 🐛 fix: add json to logwatch

* fix: 🐛 patch json parse issue

* fix: 🐛 update logging parameters

* refactor: ♻️ point a folder above for codemeta-schema

* refactor: ♻️ update dockerfile to include schema

* fix: 🐛 ensure authors have roles key

* refactor: ♻️ 🔊 convert some consola logs to logwatch

* fix: 🐛 roles are optional in save request

* chore: 🔊 remove dev logs

* doc: 📝 update changelog

* refactor: ♻️ revert roles key being optional

* fix: 🐛 add logwatch.start method

* fix: 🐛 ensure contrib and authros have roles

* fix: 🐛 CWL handles multiple installations

* refactor: ♻️ update log error

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>
slugb0t added a commit that referenced this pull request Dec 11, 2024
…in (#116)

* refactor: ♻️ 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: ♻️ update codefair name

* feat: ✨ Metadata + license validators + bug patches (#107)

* merge: 🔀 merge main to staging

* refactor: ♻️ 🐛 Codefair 3.1.0 (#89)

* fix: 🐛 patch removing pull_request.closed bug on metadata pr merge

* fix: 🐛 don't update firstPublished in the codemeta file + better logs

* fix: 🐛 patch error on reading db entry when it doesn't exist

* chore: 🔊 better log on successful Zenodo publish

* style: 🎨 margins between text and icon

* feat: ✨ links to the list of tools used for codefair in /codefair

* refactor: ✨ ♻️ abstract the license validation fn

* doc: 🔖 update changelog

* feat: ✨ ♻️ abstraction to zenodo workflow

* wip: 🚧 abstracting zenodo workflow

* feat: ✨ add help link in the Zenodo release page

* refactor: ♻️ ✨ abstract out github release functions

* refactor: 🔊 ♻️ improve error tracing in metadata file

* chore: 🔨 remove todo

* refactor: ✨ ♻️ abstracted Zenodo workflow (bot)

* wip: 🚧 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: 🐛 license is valid with custom license

* feat: ✨ 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: ♻️ ✨ new patches for license, cwl, metadata UI's

* refactor: ✨ ♻️ apply migrations from UI to bot

* feat: ✨ request custom license title from user

* refactor: ♻️ hide message box when custom license title is blank

* refactor: ♻️ issue dashboard requests custom title

* feat: ✨ Saving custom title (#93)

* feat: ✨ save custom title option

* refactor: :recyle: reuse saveLicenseDraft for storing custom license title

* refactor: ♻️ join draft and save title buttons together

* refactor: ♻️ use naive-ui's properties for styling

* chore: 🔨 remove typo

* chore: 🔨 remove unused variables

* feat: ✨ toasts for custom title saved button

* refactor: ♻️ function rename

* feat: ✨ create Zenodo metadata fn handles custom licenses

* feat: ✨ custom license reference for archival workflow

* refactor: ♻️ stop creating identifiers for new db entries

* refactor: ♻️ 🐛 revert allowing custom licenses for zenodo

* refactor: ♻️ Custom License Support (#94)

* refactor: ♻️ ✨ custom title saved updates dashboard, disable create release btn when custom license

* refactor: ♻️ block progress of fair release if license is custom

* feat: ✨ listener for when custom license title is saved through UI

* feat: ✨ prevent fair release if not fair compliant

* refactor: ♻️ improve license validation and update template text for custom licenses

* refactor: ♻️ re-render issue from ui side

* refactor: ♻️ update to message explaining custom licenses

* db calls running in parallel

* fix: 🐛 prevent Zendo section from being seen when the license is custom

* fix: 🐛 trim license content before comparison

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* refactor: ♻️ safety checks for protected middleware

* refacotr: ♻️ update protectRoute to redirect to login when no user or session

* feat: :fix: redirect to login if not signed in

* refactor: ♻️ remove import

* chore: 🔊 🔨 remove logs

* docs: 📝 update changelog

* fix: 🐛 check license content all times

* fix: 🐛 update on zenodo ui page

* feat: ✨ delete branch after pr has been closed/merged

* chore: 🔨 spacing in changelog

* wip: 🚧 individual validation requests for license and metadata

* feat: ✨ license validation endpoint

* wip: 🚧 creating updated metadata validation

* wip: 🚧 patches for metadata revalidation workflow

* wip: 🚧 validation for codemeta

* doc: 🔖 jsdoc comments on fns

* fix: 🐛 template renderer will stop using old links (#99)

* fix: 🐛 rerender template will stop using old links

* doc: 📝 update CHANGELOG

* doc: 📝 update metadata

* fix: 🐛 preserve authors and contributors from codemeta

* feat: ✨ re-validated codemeta from repo dashboard

* fix: 🐛 await metadata validation

* feat: ✨ codemeta validation extended with microservice validator

* refactor: ♻️ update timestamps to be unix format

* feat: ✨ clean privatekey env before use

* refactor: ♻️ update cwl validation endpoint

* wip: 🚧 send validation message to db

* feat: ✨ create migrations for metadata validation messages

* wip: 🚧 creating json schema for codemeta.json validations

* 👷 ci: setup deployment environments (#101)

* 👷 ci: setup for staging env (#103)

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>
Co-authored-by: slugb0t <wheresdorian@gmail.com>
fix: 🐛 template renderer will stop using old links (#99)

* fix: 🐛 adjust env variables used after env changes

* 👷 ci: cleanup dockerfile

* feat: ✨ 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: 🚧 abstracting cwl workflow

* refactor: ♻️ update codemeta schema to validate against the raw codemeta.json files

* refactor: ♻️ update codemeta schema for additional fields

* feat: ✨ validating raw content of codemeta.json file for 3.0

* refactor: ♻️ create required fields for codemeta schema

* wip: 🚧 testing validation responses for db

* handle codemeta.json 3.0 and 2.0 versioning

* fix: 🐛 correct branch watch for staging deployment action

* doc: 🔖 update changelog for 3.2.0 release

* feat: ✨ align bot prisma with ui

* fix: 🐛 bug patch for cwl workflow

* feat: ✨ metadata workflow update

* refactor: ♻️ preserving authors and contributors

* wip: 🚧 update the metadata workflow after discussions

* fix: 🐛 don't create cwlobject twice

* refactor: ♻️ send 200 status when invalid codemeta

* refactor: ♻️ update codemeta validation schema

* refactor: ♻️ do not revalidate metadata files for push events unless metadata files are updated themselves

* wip: 🚧 seperate rerun validation with regather information

* wip: 🚧 remove command from issue dashboard if error occurs (allows retry)

* refactor: ♻️ update the issue body after successful validation (remove the command from the issue body)

* refactor: ♻️ add additional key to codemeta schema

* refactor: ♻️ remove the regather options from the UI as validation is still needed when regathering

* fix: 🐛 pr button updated with new links

* fix: 🐛 patch variable declaration not in scope

* refactor: ♻️ update on the dropdown icons

* refactor: ♻️ update the keys of the cwl object

* refactor: ♻️ update the getcwlfiles function

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* fix: 🐛 use the correct env variable for private key

* fix: 🐛 Codefair v3.2.0 finalization (#113)

* fix: 🐛 correct cwlObject variables in push event

* fix: 🐛 better error message in metadata workflow + collect missing fields from codemeta.json

* fix: 🐛 apply await to async function call

* refactor: ♻️ removed unused imports

* refactor: ♻️ add try catch in then statement of promise

* fix: 🐛 missing fields in codemeta gathering + add error handling for convertCitationForDB fn

* refactor: ♻️ add try catch to renderer to preserve errors

* fix: 🐛 preserve metadata validation results in db

* wip: 🚧 validation results being displayed through the repo dashboard

* wip: 🚧 displaying metadata validation results in seperate pages

* feat: ✨ validation page for codemeta

* fix: 🐛 patch fundingCode not being preserved from codemeta

* wip: 🚧 final design for validation results

* feat: ✨ add view validation results conditionally

* test: ⚗️ ensuring validation progresses accordingly

* feat: ✨ popover messages for metadata badges

* feat: ✨ if metadata file fails to parse then update validation message

* fix: 🐛 update schema to handle 2.0 and 3.0 authors

* style: 🎨 formatting

* fix: 🐛 add releaseNotes key to schema for 3.0 versions

* refactor: ✏️ change wording

* fix: 🐛 validate metadata file that was updated only on push events

* chore: 📝 remove test logs

* fix: 🐛 migrate db during deployment

* fix: 🐛 revert

* fix: 🐛 typo on dockerfile

* refactor: ♻️ use npm instead of yarn for migration

* refactor: ♻️ access db url during prisma build

* refactor: ♻️ 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: ♻️ use deployed validator

* fix: 🐛 when license is updated validate metadata files

* fix: 🐛 validation returns codemeta version on errors

* 🐛 fix: add basic logwatch

* fix: 🐛 add @type key for 2.0 codemeta.json files

* refactor: ♻️ updated required fields for codemeta schmea

* 🐛 fix: add logwatch support

* 🐛 fix: add json to logwatch

* fix: 🐛 patch json parse issue

* fix: 🐛 update logging parameters

* refactor: ♻️ point a folder above for codemeta-schema

* refactor: ♻️ update dockerfile to include schema

* fix: 🐛 ensure authors have roles key

* refactor: ♻️ 🔊 convert some consola logs to logwatch

* fix: 🐛 roles are optional in save request

* chore: 🔊 remove dev logs

* doc: 📝 update changelog

* refactor: ♻️ revert roles key being optional

* fix: 🐛 add logwatch.start method

* fix: 🐛 ensure contrib and authros have roles

* fix: 🐛 CWL handles multiple installations

* refactor: ♻️ update log error

* feat: ✨ purge zenodo token when sign in is required

* fix: 🐛 make login fn asyncronous

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>
slugb0t added a commit that referenced this pull request Dec 11, 2024
* refactor: ♻️ 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: ♻️ update codefair name

* feat: ✨ Metadata + license validators + bug patches (#107)

* merge: 🔀 merge main to staging

* refactor: ♻️ 🐛 Codefair 3.1.0 (#89)

* fix: 🐛 patch removing pull_request.closed bug on metadata pr merge

* fix: 🐛 don't update firstPublished in the codemeta file + better logs

* fix: 🐛 patch error on reading db entry when it doesn't exist

* chore: 🔊 better log on successful Zenodo publish

* style: 🎨 margins between text and icon

* feat: ✨ links to the list of tools used for codefair in /codefair

* refactor: ✨ ♻️ abstract the license validation fn

* doc: 🔖 update changelog

* feat: ✨ ♻️ abstraction to zenodo workflow

* wip: 🚧 abstracting zenodo workflow

* feat: ✨ add help link in the Zenodo release page

* refactor: ♻️ ✨ abstract out github release functions

* refactor: 🔊 ♻️ improve error tracing in metadata file

* chore: 🔨 remove todo

* refactor: ✨ ♻️ abstracted Zenodo workflow (bot)

* wip: 🚧 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: 🐛 license is valid with custom license

* feat: ✨ 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: ♻️ ✨ new patches for license, cwl, metadata UI's

* refactor: ✨ ♻️ apply migrations from UI to bot

* feat: ✨ request custom license title from user

* refactor: ♻️ hide message box when custom license title is blank

* refactor: ♻️ issue dashboard requests custom title

* feat: ✨ Saving custom title (#93)

* feat: ✨ save custom title option

* refactor: :recyle: reuse saveLicenseDraft for storing custom license title

* refactor: ♻️ join draft and save title buttons together

* refactor: ♻️ use naive-ui's properties for styling

* chore: 🔨 remove typo

* chore: 🔨 remove unused variables

* feat: ✨ toasts for custom title saved button

* refactor: ♻️ function rename

* feat: ✨ create Zenodo metadata fn handles custom licenses

* feat: ✨ custom license reference for archival workflow

* refactor: ♻️ stop creating identifiers for new db entries

* refactor: ♻️ 🐛 revert allowing custom licenses for zenodo

* refactor: ♻️ Custom License Support (#94)

* refactor: ♻️ ✨ custom title saved updates dashboard, disable create release btn when custom license

* refactor: ♻️ block progress of fair release if license is custom

* feat: ✨ listener for when custom license title is saved through UI

* feat: ✨ prevent fair release if not fair compliant

* refactor: ♻️ improve license validation and update template text for custom licenses

* refactor: ♻️ re-render issue from ui side

* refactor: ♻️ update to message explaining custom licenses

* db calls running in parallel

* fix: 🐛 prevent Zendo section from being seen when the license is custom

* fix: 🐛 trim license content before comparison

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* refactor: ♻️ safety checks for protected middleware

* refacotr: ♻️ update protectRoute to redirect to login when no user or session

* feat: :fix: redirect to login if not signed in

* refactor: ♻️ remove import

* chore: 🔊 🔨 remove logs

* docs: 📝 update changelog

* fix: 🐛 check license content all times

* fix: 🐛 update on zenodo ui page

* feat: ✨ delete branch after pr has been closed/merged

* chore: 🔨 spacing in changelog

* wip: 🚧 individual validation requests for license and metadata

* feat: ✨ license validation endpoint

* wip: 🚧 creating updated metadata validation

* wip: 🚧 patches for metadata revalidation workflow

* wip: 🚧 validation for codemeta

* doc: 🔖 jsdoc comments on fns

* fix: 🐛 template renderer will stop using old links (#99)

* fix: 🐛 rerender template will stop using old links

* doc: 📝 update CHANGELOG

* doc: 📝 update metadata

* fix: 🐛 preserve authors and contributors from codemeta

* feat: ✨ re-validated codemeta from repo dashboard

* fix: 🐛 await metadata validation

* feat: ✨ codemeta validation extended with microservice validator

* refactor: ♻️ update timestamps to be unix format

* feat: ✨ clean privatekey env before use

* refactor: ♻️ update cwl validation endpoint

* wip: 🚧 send validation message to db

* feat: ✨ create migrations for metadata validation messages

* wip: 🚧 creating json schema for codemeta.json validations

* 👷 ci: setup deployment environments (#101)

* 👷 ci: setup for staging env (#103)

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>
Co-authored-by: slugb0t <wheresdorian@gmail.com>
fix: 🐛 template renderer will stop using old links (#99)

* fix: 🐛 adjust env variables used after env changes

* 👷 ci: cleanup dockerfile

* feat: ✨ 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: 🚧 abstracting cwl workflow

* refactor: ♻️ update codemeta schema to validate against the raw codemeta.json files

* refactor: ♻️ update codemeta schema for additional fields

* feat: ✨ validating raw content of codemeta.json file for 3.0

* refactor: ♻️ create required fields for codemeta schema

* wip: 🚧 testing validation responses for db

* handle codemeta.json 3.0 and 2.0 versioning

* fix: 🐛 correct branch watch for staging deployment action

* doc: 🔖 update changelog for 3.2.0 release

* feat: ✨ align bot prisma with ui

* fix: 🐛 bug patch for cwl workflow

* feat: ✨ metadata workflow update

* refactor: ♻️ preserving authors and contributors

* wip: 🚧 update the metadata workflow after discussions

* fix: 🐛 don't create cwlobject twice

* refactor: ♻️ send 200 status when invalid codemeta

* refactor: ♻️ update codemeta validation schema

* refactor: ♻️ do not revalidate metadata files for push events unless metadata files are updated themselves

* wip: 🚧 seperate rerun validation with regather information

* wip: 🚧 remove command from issue dashboard if error occurs (allows retry)

* refactor: ♻️ update the issue body after successful validation (remove the command from the issue body)

* refactor: ♻️ add additional key to codemeta schema

* refactor: ♻️ remove the regather options from the UI as validation is still needed when regathering

* fix: 🐛 pr button updated with new links

* fix: 🐛 patch variable declaration not in scope

* refactor: ♻️ update on the dropdown icons

* refactor: ♻️ update the keys of the cwl object

* refactor: ♻️ update the getcwlfiles function

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* fix: 🐛 use the correct env variable for private key

* fix: 🐛 Codefair v3.2.0 finalization (#113)

* fix: 🐛 correct cwlObject variables in push event

* fix: 🐛 better error message in metadata workflow + collect missing fields from codemeta.json

* fix: 🐛 apply await to async function call

* refactor: ♻️ removed unused imports

* refactor: ♻️ add try catch in then statement of promise

* fix: 🐛 missing fields in codemeta gathering + add error handling for convertCitationForDB fn

* refactor: ♻️ add try catch to renderer to preserve errors

* fix: 🐛 preserve metadata validation results in db

* wip: 🚧 validation results being displayed through the repo dashboard

* wip: 🚧 displaying metadata validation results in seperate pages

* feat: ✨ validation page for codemeta

* fix: 🐛 patch fundingCode not being preserved from codemeta

* wip: 🚧 final design for validation results

* feat: ✨ add view validation results conditionally

* test: ⚗️ ensuring validation progresses accordingly

* feat: ✨ popover messages for metadata badges

* feat: ✨ if metadata file fails to parse then update validation message

* fix: 🐛 update schema to handle 2.0 and 3.0 authors

* style: 🎨 formatting

* fix: 🐛 add releaseNotes key to schema for 3.0 versions

* refactor: ✏️ change wording

* fix: 🐛 validate metadata file that was updated only on push events

* chore: 📝 remove test logs

* fix: 🐛 migrate db during deployment

* fix: 🐛 revert

* fix: 🐛 typo on dockerfile

* refactor: ♻️ use npm instead of yarn for migration

* refactor: ♻️ access db url during prisma build

* refactor: ♻️ 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: ♻️ use deployed validator

* fix: 🐛 when license is updated validate metadata files

* fix: 🐛 validation returns codemeta version on errors

* 🐛 fix: add basic logwatch

* fix: 🐛 add @type key for 2.0 codemeta.json files

* refactor: ♻️ updated required fields for codemeta schmea

* 🐛 fix: add logwatch support

* 🐛 fix: add json to logwatch

* fix: 🐛 patch json parse issue

* fix: 🐛 update logging parameters

* refactor: ♻️ point a folder above for codemeta-schema

* refactor: ♻️ update dockerfile to include schema

* fix: 🐛 ensure authors have roles key

* refactor: ♻️ 🔊 convert some consola logs to logwatch

* fix: 🐛 roles are optional in save request

* chore: 🔊 remove dev logs

* doc: 📝 update changelog

* refactor: ♻️ revert roles key being optional

* fix: 🐛 add logwatch.start method

* fix: 🐛 ensure contrib and authros have roles

* fix: 🐛 CWL handles multiple installations

* refactor: ♻️ update log error

* feat: ✨ purge zenodo token when sign in is required

* fix: 🐛 make login fn asyncronous

* refactor: 🎨 update spacing and color of validation results button

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>
slugb0t added a commit that referenced this pull request Dec 11, 2024
* fix: 🐛 Zenodo callback issue resolved with purging token before sign in (#116)

* refactor: ♻️ 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: ♻️ update codefair name

* feat: ✨ Metadata + license validators + bug patches (#107)

* merge: 🔀 merge main to staging

* refactor: ♻️ 🐛 Codefair 3.1.0 (#89)

* fix: 🐛 patch removing pull_request.closed bug on metadata pr merge

* fix: 🐛 don't update firstPublished in the codemeta file + better logs

* fix: 🐛 patch error on reading db entry when it doesn't exist

* chore: 🔊 better log on successful Zenodo publish

* style: 🎨 margins between text and icon

* feat: ✨ links to the list of tools used for codefair in /codefair

* refactor: ✨ ♻️ abstract the license validation fn

* doc: 🔖 update changelog

* feat: ✨ ♻️ abstraction to zenodo workflow

* wip: 🚧 abstracting zenodo workflow

* feat: ✨ add help link in the Zenodo release page

* refactor: ♻️ ✨ abstract out github release functions

* refactor: 🔊 ♻️ improve error tracing in metadata file

* chore: 🔨 remove todo

* refactor: ✨ ♻️ abstracted Zenodo workflow (bot)

* wip: 🚧 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: 🐛 license is valid with custom license

* feat: ✨ 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: ♻️ ✨ new patches for license, cwl, metadata UI's

* refactor: ✨ ♻️ apply migrations from UI to bot

* feat: ✨ request custom license title from user

* refactor: ♻️ hide message box when custom license title is blank

* refactor: ♻️ issue dashboard requests custom title

* feat: ✨ Saving custom title (#93)

* feat: ✨ save custom title option

* refactor: :recyle: reuse saveLicenseDraft for storing custom license title

* refactor: ♻️ join draft and save title buttons together

* refactor: ♻️ use naive-ui's properties for styling

* chore: 🔨 remove typo

* chore: 🔨 remove unused variables

* feat: ✨ toasts for custom title saved button

* refactor: ♻️ function rename

* feat: ✨ create Zenodo metadata fn handles custom licenses

* feat: ✨ custom license reference for archival workflow

* refactor: ♻️ stop creating identifiers for new db entries

* refactor: ♻️ 🐛 revert allowing custom licenses for zenodo

* refactor: ♻️ Custom License Support (#94)

* refactor: ♻️ ✨ custom title saved updates dashboard, disable create release btn when custom license

* refactor: ♻️ block progress of fair release if license is custom

* feat: ✨ listener for when custom license title is saved through UI

* feat: ✨ prevent fair release if not fair compliant

* refactor: ♻️ improve license validation and update template text for custom licenses

* refactor: ♻️ re-render issue from ui side

* refactor: ♻️ update to message explaining custom licenses

* db calls running in parallel

* fix: 🐛 prevent Zendo section from being seen when the license is custom

* fix: 🐛 trim license content before comparison

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* refactor: ♻️ safety checks for protected middleware

* refacotr: ♻️ update protectRoute to redirect to login when no user or session

* feat: :fix: redirect to login if not signed in

* refactor: ♻️ remove import

* chore: 🔊 🔨 remove logs

* docs: 📝 update changelog

* fix: 🐛 check license content all times

* fix: 🐛 update on zenodo ui page

* feat: ✨ delete branch after pr has been closed/merged

* chore: 🔨 spacing in changelog

* wip: 🚧 individual validation requests for license and metadata

* feat: ✨ license validation endpoint

* wip: 🚧 creating updated metadata validation

* wip: 🚧 patches for metadata revalidation workflow

* wip: 🚧 validation for codemeta

* doc: 🔖 jsdoc comments on fns

* fix: 🐛 template renderer will stop using old links (#99)

* fix: 🐛 rerender template will stop using old links

* doc: 📝 update CHANGELOG

* doc: 📝 update metadata

* fix: 🐛 preserve authors and contributors from codemeta

* feat: ✨ re-validated codemeta from repo dashboard

* fix: 🐛 await metadata validation

* feat: ✨ codemeta validation extended with microservice validator

* refactor: ♻️ update timestamps to be unix format

* feat: ✨ clean privatekey env before use

* refactor: ♻️ update cwl validation endpoint

* wip: 🚧 send validation message to db

* feat: ✨ create migrations for metadata validation messages

* wip: 🚧 creating json schema for codemeta.json validations

* 👷 ci: setup deployment environments (#101)

* 👷 ci: setup for staging env (#103)

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>
Co-authored-by: slugb0t <wheresdorian@gmail.com>
fix: 🐛 template renderer will stop using old links (#99)

* fix: 🐛 adjust env variables used after env changes

* 👷 ci: cleanup dockerfile

* feat: ✨ 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: 🚧 abstracting cwl workflow

* refactor: ♻️ update codemeta schema to validate against the raw codemeta.json files

* refactor: ♻️ update codemeta schema for additional fields

* feat: ✨ validating raw content of codemeta.json file for 3.0

* refactor: ♻️ create required fields for codemeta schema

* wip: 🚧 testing validation responses for db

* handle codemeta.json 3.0 and 2.0 versioning

* fix: 🐛 correct branch watch for staging deployment action

* doc: 🔖 update changelog for 3.2.0 release

* feat: ✨ align bot prisma with ui

* fix: 🐛 bug patch for cwl workflow

* feat: ✨ metadata workflow update

* refactor: ♻️ preserving authors and contributors

* wip: 🚧 update the metadata workflow after discussions

* fix: 🐛 don't create cwlobject twice

* refactor: ♻️ send 200 status when invalid codemeta

* refactor: ♻️ update codemeta validation schema

* refactor: ♻️ do not revalidate metadata files for push events unless metadata files are updated themselves

* wip: 🚧 seperate rerun validation with regather information

* wip: 🚧 remove command from issue dashboard if error occurs (allows retry)

* refactor: ♻️ update the issue body after successful validation (remove the command from the issue body)

* refactor: ♻️ add additional key to codemeta schema

* refactor: ♻️ remove the regather options from the UI as validation is still needed when regathering

* fix: 🐛 pr button updated with new links

* fix: 🐛 patch variable declaration not in scope

* refactor: ♻️ update on the dropdown icons

* refactor: ♻️ update the keys of the cwl object

* refactor: ♻️ update the getcwlfiles function

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* fix: 🐛 use the correct env variable for private key

* fix: 🐛 Codefair v3.2.0 finalization (#113)

* fix: 🐛 correct cwlObject variables in push event

* fix: 🐛 better error message in metadata workflow + collect missing fields from codemeta.json

* fix: 🐛 apply await to async function call

* refactor: ♻️ removed unused imports

* refactor: ♻️ add try catch in then statement of promise

* fix: 🐛 missing fields in codemeta gathering + add error handling for convertCitationForDB fn

* refactor: ♻️ add try catch to renderer to preserve errors

* fix: 🐛 preserve metadata validation results in db

* wip: 🚧 validation results being displayed through the repo dashboard

* wip: 🚧 displaying metadata validation results in seperate pages

* feat: ✨ validation page for codemeta

* fix: 🐛 patch fundingCode not being preserved from codemeta

* wip: 🚧 final design for validation results

* feat: ✨ add view validation results conditionally

* test: ⚗️ ensuring validation progresses accordingly

* feat: ✨ popover messages for metadata badges

* feat: ✨ if metadata file fails to parse then update validation message

* fix: 🐛 update schema to handle 2.0 and 3.0 authors

* style: 🎨 formatting

* fix: 🐛 add releaseNotes key to schema for 3.0 versions

* refactor: ✏️ change wording

* fix: 🐛 validate metadata file that was updated only on push events

* chore: 📝 remove test logs

* fix: 🐛 migrate db during deployment

* fix: 🐛 revert

* fix: 🐛 typo on dockerfile

* refactor: ♻️ use npm instead of yarn for migration

* refactor: ♻️ access db url during prisma build

* refactor: ♻️ 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: ♻️ use deployed validator

* fix: 🐛 when license is updated validate metadata files

* fix: 🐛 validation returns codemeta version on errors

* 🐛 fix: add basic logwatch

* fix: 🐛 add @type key for 2.0 codemeta.json files

* refactor: ♻️ updated required fields for codemeta schmea

* 🐛 fix: add logwatch support

* 🐛 fix: add json to logwatch

* fix: 🐛 patch json parse issue

* fix: 🐛 update logging parameters

* refactor: ♻️ point a folder above for codemeta-schema

* refactor: ♻️ update dockerfile to include schema

* fix: 🐛 ensure authors have roles key

* refactor: ♻️ 🔊 convert some consola logs to logwatch

* fix: 🐛 roles are optional in save request

* chore: 🔊 remove dev logs

* doc: 📝 update changelog

* refactor: ♻️ revert roles key being optional

* fix: 🐛 add logwatch.start method

* fix: 🐛 ensure contrib and authros have roles

* fix: 🐛 CWL handles multiple installations

* refactor: ♻️ update log error

* feat: ✨ purge zenodo token when sign in is required

* fix: 🐛 make login fn asyncronous

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* refactor: 🎨 update view validation & edit metadata buttons (#117)

* refactor: ♻️ 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: ♻️ update codefair name

* feat: ✨ Metadata + license validators + bug patches (#107)

* merge: 🔀 merge main to staging

* refactor: ♻️ 🐛 Codefair 3.1.0 (#89)

* fix: 🐛 patch removing pull_request.closed bug on metadata pr merge

* fix: 🐛 don't update firstPublished in the codemeta file + better logs

* fix: 🐛 patch error on reading db entry when it doesn't exist

* chore: 🔊 better log on successful Zenodo publish

* style: 🎨 margins between text and icon

* feat: ✨ links to the list of tools used for codefair in /codefair

* refactor: ✨ ♻️ abstract the license validation fn

* doc: 🔖 update changelog

* feat: ✨ ♻️ abstraction to zenodo workflow

* wip: 🚧 abstracting zenodo workflow

* feat: ✨ add help link in the Zenodo release page

* refactor: ♻️ ✨ abstract out github release functions

* refactor: 🔊 ♻️ improve error tracing in metadata file

* chore: 🔨 remove todo

* refactor: ✨ ♻️ abstracted Zenodo workflow (bot)

* wip: 🚧 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: 🐛 license is valid with custom license

* feat: ✨ 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: ♻️ ✨ new patches for license, cwl, metadata UI's

* refactor: ✨ ♻️ apply migrations from UI to bot

* feat: ✨ request custom license title from user

* refactor: ♻️ hide message box when custom license title is blank

* refactor: ♻️ issue dashboard requests custom title

* feat: ✨ Saving custom title (#93)

* feat: ✨ save custom title option

* refactor: :recyle: reuse saveLicenseDraft for storing custom license title

* refactor: ♻️ join draft and save title buttons together

* refactor: ♻️ use naive-ui's properties for styling

* chore: 🔨 remove typo

* chore: 🔨 remove unused variables

* feat: ✨ toasts for custom title saved button

* refactor: ♻️ function rename

* feat: ✨ create Zenodo metadata fn handles custom licenses

* feat: ✨ custom license reference for archival workflow

* refactor: ♻️ stop creating identifiers for new db entries

* refactor: ♻️ 🐛 revert allowing custom licenses for zenodo

* refactor: ♻️ Custom License Support (#94)

* refactor: ♻️ ✨ custom title saved updates dashboard, disable create release btn when custom license

* refactor: ♻️ block progress of fair release if license is custom

* feat: ✨ listener for when custom license title is saved through UI

* feat: ✨ prevent fair release if not fair compliant

* refactor: ♻️ improve license validation and update template text for custom licenses

* refactor: ♻️ re-render issue from ui side

* refactor: ♻️ update to message explaining custom licenses

* db calls running in parallel

* fix: 🐛 prevent Zendo section from being seen when the license is custom

* fix: 🐛 trim license content before comparison

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* refactor: ♻️ safety checks for protected middleware

* refacotr: ♻️ update protectRoute to redirect to login when no user or session

* feat: :fix: redirect to login if not signed in

* refactor: ♻️ remove import

* chore: 🔊 🔨 remove logs

* docs: 📝 update changelog

* fix: 🐛 check license content all times

* fix: 🐛 update on zenodo ui page

* feat: ✨ delete branch after pr has been closed/merged

* chore: 🔨 spacing in changelog

* wip: 🚧 individual validation requests for license and metadata

* feat: ✨ license validation endpoint

* wip: 🚧 creating updated metadata validation

* wip: 🚧 patches for metadata revalidation workflow

* wip: 🚧 validation for codemeta

* doc: 🔖 jsdoc comments on fns

* fix: 🐛 template renderer will stop using old links (#99)

* fix: 🐛 rerender template will stop using old links

* doc: 📝 update CHANGELOG

* doc: 📝 update metadata

* fix: 🐛 preserve authors and contributors from codemeta

* feat: ✨ re-validated codemeta from repo dashboard

* fix: 🐛 await metadata validation

* feat: ✨ codemeta validation extended with microservice validator

* refactor: ♻️ update timestamps to be unix format

* feat: ✨ clean privatekey env before use

* refactor: ♻️ update cwl validation endpoint

* wip: 🚧 send validation message to db

* feat: ✨ create migrations for metadata validation messages

* wip: 🚧 creating json schema for codemeta.json validations

* 👷 ci: setup deployment environments (#101)

* 👷 ci: setup for staging env (#103)

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>
Co-authored-by: slugb0t <wheresdorian@gmail.com>
fix: 🐛 template renderer will stop using old links (#99)

* fix: 🐛 adjust env variables used after env changes

* 👷 ci: cleanup dockerfile

* feat: ✨ 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: 🚧 abstracting cwl workflow

* refactor: ♻️ update codemeta schema to validate against the raw codemeta.json files

* refactor: ♻️ update codemeta schema for additional fields

* feat: ✨ validating raw content of codemeta.json file for 3.0

* refactor: ♻️ create required fields for codemeta schema

* wip: 🚧 testing validation responses for db

* handle codemeta.json 3.0 and 2.0 versioning

* fix: 🐛 correct branch watch for staging deployment action

* doc: 🔖 update changelog for 3.2.0 release

* feat: ✨ align bot prisma with ui

* fix: 🐛 bug patch for cwl workflow

* feat: ✨ metadata workflow update

* refactor: ♻️ preserving authors and contributors

* wip: 🚧 update the metadata workflow after discussions

* fix: 🐛 don't create cwlobject twice

* refactor: ♻️ send 200 status when invalid codemeta

* refactor: ♻️ update codemeta validation schema

* refactor: ♻️ do not revalidate metadata files for push events unless metadata files are updated themselves

* wip: 🚧 seperate rerun validation with regather information

* wip: 🚧 remove command from issue dashboard if error occurs (allows retry)

* refactor: ♻️ update the issue body after successful validation (remove the command from the issue body)

* refactor: ♻️ add additional key to codemeta schema

* refactor: ♻️ remove the regather options from the UI as validation is still needed when regathering

* fix: 🐛 pr button updated with new links

* fix: 🐛 patch variable declaration not in scope

* refactor: ♻️ update on the dropdown icons

* refactor: ♻️ update the keys of the cwl object

* refactor: ♻️ update the getcwlfiles function

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* fix: 🐛 use the correct env variable for private key

* fix: 🐛 Codefair v3.2.0 finalization (#113)

* fix: 🐛 correct cwlObject variables in push event

* fix: 🐛 better error message in metadata workflow + collect missing fields from codemeta.json

* fix: 🐛 apply await to async function call

* refactor: ♻️ removed unused imports

* refactor: ♻️ add try catch in then statement of promise

* fix: 🐛 missing fields in codemeta gathering + add error handling for convertCitationForDB fn

* refactor: ♻️ add try catch to renderer to preserve errors

* fix: 🐛 preserve metadata validation results in db

* wip: 🚧 validation results being displayed through the repo dashboard

* wip: 🚧 displaying metadata validation results in seperate pages

* feat: ✨ validation page for codemeta

* fix: 🐛 patch fundingCode not being preserved from codemeta

* wip: 🚧 final design for validation results

* feat: ✨ add view validation results conditionally

* test: ⚗️ ensuring validation progresses accordingly

* feat: ✨ popover messages for metadata badges

* feat: ✨ if metadata file fails to parse then update validation message

* fix: 🐛 update schema to handle 2.0 and 3.0 authors

* style: 🎨 formatting

* fix: 🐛 add releaseNotes key to schema for 3.0 versions

* refactor: ✏️ change wording

* fix: 🐛 validate metadata file that was updated only on push events

* chore: 📝 remove test logs

* fix: 🐛 migrate db during deployment

* fix: 🐛 revert

* fix: 🐛 typo on dockerfile

* refactor: ♻️ use npm instead of yarn for migration

* refactor: ♻️ access db url during prisma build

* refactor: ♻️ 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: ♻️ use deployed validator

* fix: 🐛 when license is updated validate metadata files

* fix: 🐛 validation returns codemeta version on errors

* 🐛 fix: add basic logwatch

* fix: 🐛 add @type key for 2.0 codemeta.json files

* refactor: ♻️ updated required fields for codemeta schmea

* 🐛 fix: add logwatch support

* 🐛 fix: add json to logwatch

* fix: 🐛 patch json parse issue

* fix: 🐛 update logging parameters

* refactor: ♻️ point a folder above for codemeta-schema

* refactor: ♻️ update dockerfile to include schema

* fix: 🐛 ensure authors have roles key

* refactor: ♻️ 🔊 convert some consola logs to logwatch

* fix: 🐛 roles are optional in save request

* chore: 🔊 remove dev logs

* doc: 📝 update changelog

* refactor: ♻️ revert roles key being optional

* fix: 🐛 add logwatch.start method

* fix: 🐛 ensure contrib and authros have roles

* fix: 🐛 CWL handles multiple installations

* refactor: ♻️ update log error

* feat: ✨ purge zenodo token when sign in is required

* fix: 🐛 make login fn asyncronous

* refactor: 🎨 update spacing and color of validation results button

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* chore: 📝 Update CITATION.cff with Zenodo identifier

* chore: 📝 Update codemeta.json with Zenodo identifier

* fix: 🐛 bad logwatch calls removed

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>
Co-authored-by: codefair-io[bot] <165336008+codefair-io[bot]@users.noreply.github.com>
slugb0t added a commit that referenced this pull request Dec 12, 2024
… Use Logwatch (#120)

* refactor: ♻️ 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: ♻️ update codefair name

* feat: ✨ Metadata + license validators + bug patches (#107)

* merge: 🔀 merge main to staging

* refactor: ♻️ 🐛 Codefair 3.1.0 (#89)

* fix: 🐛 patch removing pull_request.closed bug on metadata pr merge

* fix: 🐛 don't update firstPublished in the codemeta file + better logs

* fix: 🐛 patch error on reading db entry when it doesn't exist

* chore: 🔊 better log on successful Zenodo publish

* style: 🎨 margins between text and icon

* feat: ✨ links to the list of tools used for codefair in /codefair

* refactor: ✨ ♻️ abstract the license validation fn

* doc: 🔖 update changelog

* feat: ✨ ♻️ abstraction to zenodo workflow

* wip: 🚧 abstracting zenodo workflow

* feat: ✨ add help link in the Zenodo release page

* refactor: ♻️ ✨ abstract out github release functions

* refactor: 🔊 ♻️ improve error tracing in metadata file

* chore: 🔨 remove todo

* refactor: ✨ ♻️ abstracted Zenodo workflow (bot)

* wip: 🚧 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: 🐛 license is valid with custom license

* feat: ✨ 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: ♻️ ✨ new patches for license, cwl, metadata UI's

* refactor: ✨ ♻️ apply migrations from UI to bot

* feat: ✨ request custom license title from user

* refactor: ♻️ hide message box when custom license title is blank

* refactor: ♻️ issue dashboard requests custom title

* feat: ✨ Saving custom title (#93)

* feat: ✨ save custom title option

* refactor: :recyle: reuse saveLicenseDraft for storing custom license title

* refactor: ♻️ join draft and save title buttons together

* refactor: ♻️ use naive-ui's properties for styling

* chore: 🔨 remove typo

* chore: 🔨 remove unused variables

* feat: ✨ toasts for custom title saved button

* refactor: ♻️ function rename

* feat: ✨ create Zenodo metadata fn handles custom licenses

* feat: ✨ custom license reference for archival workflow

* refactor: ♻️ stop creating identifiers for new db entries

* refactor: ♻️ 🐛 revert allowing custom licenses for zenodo

* refactor: ♻️ Custom License Support (#94)

* refactor: ♻️ ✨ custom title saved updates dashboard, disable create release btn when custom license

* refactor: ♻️ block progress of fair release if license is custom

* feat: ✨ listener for when custom license title is saved through UI

* feat: ✨ prevent fair release if not fair compliant

* refactor: ♻️ improve license validation and update template text for custom licenses

* refactor: ♻️ re-render issue from ui side

* refactor: ♻️ update to message explaining custom licenses

* db calls running in parallel

* fix: 🐛 prevent Zendo section from being seen when the license is custom

* fix: 🐛 trim license content before comparison

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* refactor: ♻️ safety checks for protected middleware

* refacotr: ♻️ update protectRoute to redirect to login when no user or session

* feat: :fix: redirect to login if not signed in

* refactor: ♻️ remove import

* chore: 🔊 🔨 remove logs

* docs: 📝 update changelog

* fix: 🐛 check license content all times

* fix: 🐛 update on zenodo ui page

* feat: ✨ delete branch after pr has been closed/merged

* chore: 🔨 spacing in changelog

* wip: 🚧 individual validation requests for license and metadata

* feat: ✨ license validation endpoint

* wip: 🚧 creating updated metadata validation

* wip: 🚧 patches for metadata revalidation workflow

* wip: 🚧 validation for codemeta

* doc: 🔖 jsdoc comments on fns

* fix: 🐛 template renderer will stop using old links (#99)

* fix: 🐛 rerender template will stop using old links

* doc: 📝 update CHANGELOG

* doc: 📝 update metadata

* fix: 🐛 preserve authors and contributors from codemeta

* feat: ✨ re-validated codemeta from repo dashboard

* fix: 🐛 await metadata validation

* feat: ✨ codemeta validation extended with microservice validator

* refactor: ♻️ update timestamps to be unix format

* feat: ✨ clean privatekey env before use

* refactor: ♻️ update cwl validation endpoint

* wip: 🚧 send validation message to db

* feat: ✨ create migrations for metadata validation messages

* wip: 🚧 creating json schema for codemeta.json validations

* 👷 ci: setup deployment environments (#101)

* 👷 ci: setup for staging env (#103)

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>
Co-authored-by: slugb0t <wheresdorian@gmail.com>
fix: 🐛 template renderer will stop using old links (#99)

* fix: 🐛 adjust env variables used after env changes

* 👷 ci: cleanup dockerfile

* feat: ✨ 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: 🚧 abstracting cwl workflow

* refactor: ♻️ update codemeta schema to validate against the raw codemeta.json files

* refactor: ♻️ update codemeta schema for additional fields

* feat: ✨ validating raw content of codemeta.json file for 3.0

* refactor: ♻️ create required fields for codemeta schema

* wip: 🚧 testing validation responses for db

* handle codemeta.json 3.0 and 2.0 versioning

* fix: 🐛 correct branch watch for staging deployment action

* doc: 🔖 update changelog for 3.2.0 release

* feat: ✨ align bot prisma with ui

* fix: 🐛 bug patch for cwl workflow

* feat: ✨ metadata workflow update

* refactor: ♻️ preserving authors and contributors

* wip: 🚧 update the metadata workflow after discussions

* fix: 🐛 don't create cwlobject twice

* refactor: ♻️ send 200 status when invalid codemeta

* refactor: ♻️ update codemeta validation schema

* refactor: ♻️ do not revalidate metadata files for push events unless metadata files are updated themselves

* wip: 🚧 seperate rerun validation with regather information

* wip: 🚧 remove command from issue dashboard if error occurs (allows retry)

* refactor: ♻️ update the issue body after successful validation (remove the command from the issue body)

* refactor: ♻️ add additional key to codemeta schema

* refactor: ♻️ remove the regather options from the UI as validation is still needed when regathering

* fix: 🐛 pr button updated with new links

* fix: 🐛 patch variable declaration not in scope

* refactor: ♻️ update on the dropdown icons

* refactor: ♻️ update the keys of the cwl object

* refactor: ♻️ update the getcwlfiles function

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* fix: 🐛 use the correct env variable for private key

* fix: 🐛 Codefair v3.2.0 finalization (#113)

* fix: 🐛 correct cwlObject variables in push event

* fix: 🐛 better error message in metadata workflow + collect missing fields from codemeta.json

* fix: 🐛 apply await to async function call

* refactor: ♻️ removed unused imports

* refactor: ♻️ add try catch in then statement of promise

* fix: 🐛 missing fields in codemeta gathering + add error handling for convertCitationForDB fn

* refactor: ♻️ add try catch to renderer to preserve errors

* fix: 🐛 preserve metadata validation results in db

* wip: 🚧 validation results being displayed through the repo dashboard

* wip: 🚧 displaying metadata validation results in seperate pages

* feat: ✨ validation page for codemeta

* fix: 🐛 patch fundingCode not being preserved from codemeta

* wip: 🚧 final design for validation results

* feat: ✨ add view validation results conditionally

* test: ⚗️ ensuring validation progresses accordingly

* feat: ✨ popover messages for metadata badges

* feat: ✨ if metadata file fails to parse then update validation message

* fix: 🐛 update schema to handle 2.0 and 3.0 authors

* style: 🎨 formatting

* fix: 🐛 add releaseNotes key to schema for 3.0 versions

* refactor: ✏️ change wording

* fix: 🐛 validate metadata file that was updated only on push events

* chore: 📝 remove test logs

* fix: 🐛 migrate db during deployment

* fix: 🐛 revert

* fix: 🐛 typo on dockerfile

* refactor: ♻️ use npm instead of yarn for migration

* refactor: ♻️ access db url during prisma build

* refactor: ♻️ 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: ♻️ use deployed validator

* fix: 🐛 when license is updated validate metadata files

* fix: 🐛 validation returns codemeta version on errors

* 🐛 fix: add basic logwatch

* fix: 🐛 add @type key for 2.0 codemeta.json files

* refactor: ♻️ updated required fields for codemeta schmea

* 🐛 fix: add logwatch support

* 🐛 fix: add json to logwatch

* fix: 🐛 patch json parse issue

* fix: 🐛 update logging parameters

* refactor: ♻️ point a folder above for codemeta-schema

* refactor: ♻️ update dockerfile to include schema

* fix: 🐛 ensure authors have roles key

* refactor: ♻️ 🔊 convert some consola logs to logwatch

* fix: 🐛 roles are optional in save request

* chore: 🔊 remove dev logs

* doc: 📝 update changelog

* refactor: ♻️ revert roles key being optional

* fix: 🐛 add logwatch.start method

* fix: 🐛 ensure contrib and authros have roles

* fix: 🐛 CWL handles multiple installations

* refactor: ♻️ update log error

* feat: ✨ purge zenodo token when sign in is required

* fix: 🐛 make login fn asyncronous

* refactor: 🎨 update spacing and color of validation results button

* fix: 🐛 bad logwatch call removed

* chore: 🔨 sync main to staging (#118)

* fix: 🐛 Zenodo callback issue resolved with purging token before sign in (#116)

* refactor: ♻️ 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: ♻️ update codefair name

* feat: ✨ Metadata + license validators + bug patches (#107)

* merge: 🔀 merge main to staging

* refactor: ♻️ 🐛 Codefair 3.1.0 (#89)

* fix: 🐛 patch removing pull_request.closed bug on metadata pr merge

* fix: 🐛 don't update firstPublished in the codemeta file + better logs

* fix: 🐛 patch error on reading db entry when it doesn't exist

* chore: 🔊 better log on successful Zenodo publish

* style: 🎨 margins between text and icon

* feat: ✨ links to the list of tools used for codefair in /codefair

* refactor: ✨ ♻️ abstract the license validation fn

* doc: 🔖 update changelog

* feat: ✨ ♻️ abstraction to zenodo workflow

* wip: 🚧 abstracting zenodo workflow

* feat: ✨ add help link in the Zenodo release page

* refactor: ♻️ ✨ abstract out github release functions

* refactor: 🔊 ♻️ improve error tracing in metadata file

* chore: 🔨 remove todo

* refactor: ✨ ♻️ abstracted Zenodo workflow (bot)

* wip: 🚧 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: 🐛 license is valid with custom license

* feat: ✨ 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: ♻️ ✨ new patches for license, cwl, metadata UI's

* refactor: ✨ ♻️ apply migrations from UI to bot

* feat: ✨ request custom license title from user

* refactor: ♻️ hide message box when custom license title is blank

* refactor: ♻️ issue dashboard requests custom title

* feat: ✨ Saving custom title (#93)

* feat: ✨ save custom title option

* refactor: :recyle: reuse saveLicenseDraft for storing custom license title

* refactor: ♻️ join draft and save title buttons together

* refactor: ♻️ use naive-ui's properties for styling

* chore: 🔨 remove typo

* chore: 🔨 remove unused variables

* feat: ✨ toasts for custom title saved button

* refactor: ♻️ function rename

* feat: ✨ create Zenodo metadata fn handles custom licenses

* feat: ✨ custom license reference for archival workflow

* refactor: ♻️ stop creating identifiers for new db entries

* refactor: ♻️ 🐛 revert allowing custom licenses for zenodo

* refactor: ♻️ Custom License Support (#94)

* refactor: ♻️ ✨ custom title saved updates dashboard, disable create release btn when custom license

* refactor: ♻️ block progress of fair release if license is custom

* feat: ✨ listener for when custom license title is saved through UI

* feat: ✨ prevent fair release if not fair compliant

* refactor: ♻️ improve license validation and update template text for custom licenses

* refactor: ♻️ re-render issue from ui side

* refactor: ♻️ update to message explaining custom licenses

* db calls running in parallel

* fix: 🐛 prevent Zendo section from being seen when the license is custom

* fix: 🐛 trim license content before comparison

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* refactor: ♻️ safety checks for protected middleware

* refacotr: ♻️ update protectRoute to redirect to login when no user or session

* feat: :fix: redirect to login if not signed in

* refactor: ♻️ remove import

* chore: 🔊 🔨 remove logs

* docs: 📝 update changelog

* fix: 🐛 check license content all times

* fix: 🐛 update on zenodo ui page

* feat: ✨ delete branch after pr has been closed/merged

* chore: 🔨 spacing in changelog

* wip: 🚧 individual validation requests for license and metadata

* feat: ✨ license validation endpoint

* wip: 🚧 creating updated metadata validation

* wip: 🚧 patches for metadata revalidation workflow

* wip: 🚧 validation for codemeta

* doc: 🔖 jsdoc comments on fns

* fix: 🐛 template renderer will stop using old links (#99)

* fix: 🐛 rerender template will stop using old links

* doc: 📝 update CHANGELOG

* doc: 📝 update metadata

* fix: 🐛 preserve authors and contributors from codemeta

* feat: ✨ re-validated codemeta from repo dashboard

* fix: 🐛 await metadata validation

* feat: ✨ codemeta validation extended with microservice validator

* refactor: ♻️ update timestamps to be unix format

* feat: ✨ clean privatekey env before use

* refactor: ♻️ update cwl validation endpoint

* wip: 🚧 send validation message to db

* feat: ✨ create migrations for metadata validation messages

* wip: 🚧 creating json schema for codemeta.json validations

* 👷 ci: setup deployment environments (#101)

* 👷 ci: setup for staging env (#103)

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>
Co-authored-by: slugb0t <wheresdorian@gmail.com>
fix: 🐛 template renderer will stop using old links (#99)

* fix: 🐛 adjust env variables used after env changes

* 👷 ci: cleanup dockerfile

* feat: ✨ 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: 🚧 abstracting cwl workflow

* refactor: ♻️ update codemeta schema to validate against the raw codemeta.json files

* refactor: ♻️ update codemeta schema for additional fields

* feat: ✨ validating raw content of codemeta.json file for 3.0

* refactor: ♻️ create required fields for codemeta schema

* wip: 🚧 testing validation responses for db

* handle codemeta.json 3.0 and 2.0 versioning

* fix: 🐛 correct branch watch for staging deployment action

* doc: 🔖 update changelog for 3.2.0 release

* feat: ✨ align bot prisma with ui

* fix: 🐛 bug patch for cwl workflow

* feat: ✨ metadata workflow update

* refactor: ♻️ preserving authors and contributors

* wip: 🚧 update the metadata workflow after discussions

* fix: 🐛 don't create cwlobject twice

* refactor: ♻️ send 200 status when invalid codemeta

* refactor: ♻️ update codemeta validation schema

* refactor: ♻️ do not revalidate metadata files for push events unless metadata files are updated themselves

* wip: 🚧 seperate rerun validation with regather information

* wip: 🚧 remove command from issue dashboard if error occurs (allows retry)

* refactor: ♻️ update the issue body after successful validation (remove the command from the issue body)

* refactor: ♻️ add additional key to codemeta schema

* refactor: ♻️ remove the regather options from the UI as validation is still needed when regathering

* fix: 🐛 pr button updated with new links

* fix: 🐛 patch variable declaration not in scope

* refactor: ♻️ update on the dropdown icons

* refactor: ♻️ update the keys of the cwl object

* refactor: ♻️ update the getcwlfiles function

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* fix: 🐛 use the correct env variable for private key

* fix: 🐛 Codefair v3.2.0 finalization (#113)

* fix: 🐛 correct cwlObject variables in push event

* fix: 🐛 better error message in metadata workflow + collect missing fields from codemeta.json

* fix: 🐛 apply await to async function call

* refactor: ♻️ removed unused imports

* refactor: ♻️ add try catch in then statement of promise

* fix: 🐛 missing fields in codemeta gathering + add error handling for convertCitationForDB fn

* refactor: ♻️ add try catch to renderer to preserve errors

* fix: 🐛 preserve metadata validation results in db

* wip: 🚧 validation results being displayed through the repo dashboard

* wip: 🚧 displaying metadata validation results in seperate pages

* feat: ✨ validation page for codemeta

* fix: 🐛 patch fundingCode not being preserved from codemeta

* wip: 🚧 final design for validation results

* feat: ✨ add view validation results conditionally

* test: ⚗️ ensuring validation progresses accordingly

* feat: ✨ popover messages for metadata badges

* feat: ✨ if metadata file fails to parse then update validation message

* fix: 🐛 update schema to handle 2.0 and 3.0 authors

* style: 🎨 formatting

* fix: 🐛 add releaseNotes key to schema for 3.0 versions

* refactor: ✏️ change wording

* fix: 🐛 validate metadata file that was updated only on push events

* chore: 📝 remove test logs

* fix: 🐛 migrate db during deployment

* fix: 🐛 revert

* fix: 🐛 typo on dockerfile

* refactor: ♻️ use npm instead of yarn for migration

* refactor: ♻️ access db url during prisma build

* refactor: ♻️ 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: ♻️ use deployed validator

* fix: 🐛 when license is updated validate metadata files

* fix: 🐛 validation returns codemeta version on errors

* 🐛 fix: add basic logwatch

* fix: 🐛 add @type key for 2.0 codemeta.json files

* refactor: ♻️ updated required fields for codemeta schmea

* 🐛 fix: add logwatch support

* 🐛 fix: add json to logwatch

* fix: 🐛 patch json parse issue

* fix: 🐛 update logging parameters

* refactor: ♻️ point a folder above for codemeta-schema

* refactor: ♻️ update dockerfile to include schema

* fix: 🐛 ensure authors have roles key

* refactor: ♻️ 🔊 convert some consola logs to logwatch

* fix: 🐛 roles are optional in save request

* chore: 🔊 remove dev logs

* doc: 📝 update changelog

* refactor: ♻️ revert roles key being optional

* fix: 🐛 add logwatch.start method

* fix: 🐛 ensure contrib and authros have roles

* fix: 🐛 CWL handles multiple installations

* refactor: ♻️ update log error

* feat: ✨ purge zenodo token when sign in is required

* fix: 🐛 make login fn asyncronous

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* refactor: 🎨 update view validation & edit metadata buttons (#117)

* refactor: ♻️ 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: ♻️ update codefair name

* feat: ✨ Metadata + license validators + bug patches (#107)

* merge: 🔀 merge main to staging

* refactor: ♻️ 🐛 Codefair 3.1.0 (#89)

* fix: 🐛 patch removing pull_request.closed bug on metadata pr merge

* fix: 🐛 don't update firstPublished in the codemeta file + better logs

* fix: 🐛 patch error on reading db entry when it doesn't exist

* chore: 🔊 better log on successful Zenodo publish

* style: 🎨 margins between text and icon

* feat: ✨ links to the list of tools used for codefair in /codefair

* refactor: ✨ ♻️ abstract the license validation fn

* doc: 🔖 update changelog

* feat: ✨ ♻️ abstraction to zenodo workflow

* wip: 🚧 abstracting zenodo workflow

* feat: ✨ add help link in the Zenodo release page

* refactor: ♻️ ✨ abstract out github release functions

* refactor: 🔊 ♻️ improve error tracing in metadata file

* chore: 🔨 remove todo

* refactor: ✨ ♻️ abstracted Zenodo workflow (bot)

* wip: 🚧 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: 🐛 license is valid with custom license

* feat: ✨ 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: ♻️ ✨ new patches for license, cwl, metadata UI's

* refactor: ✨ ♻️ apply migrations from UI to bot

* feat: ✨ request custom license title from user

* refactor: ♻️ hide message box when custom license title is blank

* refactor: ♻️ issue dashboard requests custom title

* feat: ✨ Saving custom title (#93)

* feat: ✨ save custom title option

* refactor: :recyle: reuse saveLicenseDraft for storing custom license title

* refactor: ♻️ join draft and save title buttons together

* refactor: ♻️ use naive-ui's properties for styling

* chore: 🔨 remove typo

* chore: 🔨 remove unused variables

* feat: ✨ toasts for custom title saved button

* refactor: ♻️ function rename

* feat: ✨ create Zenodo metadata fn handles custom licenses

* feat: ✨ custom license reference for archival workflow

* refactor: ♻️ stop creating identifiers for new db entries

* refactor: ♻️ 🐛 revert allowing custom licenses for zenodo

* refactor: ♻️ Custom License Support (#94)

* refactor: ♻️ ✨ custom title saved updates dashboard, disable create release btn when custom license

* refactor: ♻️ block progress of fair release if license is custom

* feat: ✨ listener for when custom license title is saved through UI

* feat: ✨ prevent fair release if not fair compliant

* refactor: ♻️ improve license validation and update template text for custom licenses

* refactor: ♻️ re-render issue from ui side

* refactor: ♻️ update to message explaining custom licenses

* db calls running in parallel

* fix: 🐛 prevent Zendo section from being seen when the license is custom

* fix: 🐛 trim license content before comparison

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* refactor: ♻️ safety checks for protected middleware

* refacotr: ♻️ update protectRoute to redirect to login when no user or session

* feat: :fix: redirect to login if not signed in

* refactor: ♻️ remove import

* chore: 🔊 🔨 remove logs

* docs: 📝 update changelog

* fix: 🐛 check license content all times

* fix: 🐛 update on zenodo ui page

* feat: ✨ delete branch after pr has been closed/merged

* chore: 🔨 spacing in changelog

* wip: 🚧 individual validation requests for license and metadata

* feat: ✨ license validation endpoint

* wip: 🚧 creating updated metadata validation

* wip: 🚧 patches for metadata revalidation workflow

* wip: 🚧 validation for codemeta

* doc: 🔖 jsdoc comments on fns

* fix: 🐛 template renderer will stop using old links (#99)

* fix: 🐛 rerender template will stop using old links

* doc: 📝 update CHANGELOG

* doc: 📝 update metadata

* fix: 🐛 preserve authors and contributors from codemeta

* feat: ✨ re-validated codemeta from repo dashboard

* fix: 🐛 await metadata validation

* feat: ✨ codemeta validation extended with microservice validator

* refactor: ♻️ update timestamps to be unix format

* feat: ✨ clean privatekey env before use

* refactor: ♻️ update cwl validation endpoint

* wip: 🚧 send validation message to db

* feat: ✨ create migrations for metadata validation messages

* wip: 🚧 creating json schema for codemeta.json validations

* 👷 ci: setup deployment environments (#101)

* 👷 ci: setup for staging env (#103)

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>
Co-authored-by: slugb0t <wheresdorian@gmail.com>
fix: 🐛 template renderer will stop using old links (#99)

* fix: 🐛 adjust env variables used after env changes

* 👷 ci: cleanup dockerfile

* feat: ✨ 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: 🚧 abstracting cwl workflow

* refactor: ♻️ update codemeta schema to validate against the raw codemeta.json files

* refactor: ♻️ update codemeta schema for additional fields

* feat: ✨ validating raw content of codemeta.json file for 3.0

* refactor: ♻️ create required fields for codemeta schema

* wip: 🚧 testing validation responses for db

* handle codemeta.json 3.0 and 2.0 versioning

* fix: 🐛 correct branch watch for staging deployment action

* doc: 🔖 update changelog for 3.2.0 release

* feat: ✨ align bot prisma with ui

* fix: 🐛 bug patch for cwl workflow

* feat: ✨ metadata workflow update

* refactor: ♻️ preserving authors and contributors

* wip: 🚧 update the metadata workflow after discussions

* fix: 🐛 don't create cwlobject twice

* refactor: ♻️ send 200 status when invalid codemeta

* refactor: ♻️ update codemeta validation schema

* refactor: ♻️ do not revalidate metadata files for push events unless metadata files are updated themselves

* wip: 🚧 seperate rerun validation with regather information

* wip: 🚧 remove command from issue dashboard if error occurs (allows retry)

* refactor: ♻️ update the issue body after successful validation (remove the command from the issue body)

* refactor: ♻️ add additional key to codemeta schema

* refactor: ♻️ remove the regather options from the UI as validation is still needed when regathering

* fix: 🐛 pr button updated with new links

* fix: 🐛 patch variable declaration not in scope

* refactor: ♻️ update on the dropdown icons

* refactor: ♻️ update the keys of the cwl object

* refactor: ♻️ update the getcwlfiles function

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* fix: 🐛 use the correct env variable for private key

* fix: 🐛 Codefair v3.2.0 finalization (#113)

* fix: 🐛 correct cwlObject variables in push event

* fix: 🐛 better error message in metadata workflow + collect missing fields from codemeta.json

* fix: 🐛 apply await to async function call

* refactor: ♻️ removed unused imports

* refactor: ♻️ add try catch in then statement of promise

* fix: 🐛 missing fields in codemeta gathering + add error handling for convertCitationForDB fn

* refactor: ♻️ add try catch to renderer to preserve errors

* fix: 🐛 preserve metadata validation results in db

* wip: 🚧 validation results being displayed through the repo dashboard

* wip: 🚧 displaying metadata validation results in seperate pages

* feat: ✨ validation page for codemeta

* fix: 🐛 patch fundingCode not being preserved from codemeta

* wip: 🚧 final design for validation results

* feat: ✨ add view validation results conditionally

* test: ⚗️ ensuring validation progresses accordingly

* feat: ✨ popover messages for metadata badges

* feat: ✨ if metadata file fails to parse then update validation message

* fix: 🐛 update schema to handle 2.0 and 3.0 authors

* style: 🎨 formatting

* fix: 🐛 add releaseNotes key to schema for 3.0 versions

* refactor: ✏️ change wording

* fix: 🐛 validate metadata file that was updated only on push events

* chore: 📝 remove test logs

* fix: 🐛 migrate db during deployment

* fix: 🐛 revert

* fix: 🐛 typo on dockerfile

* refactor: ♻️ use npm instead of yarn for migration

* refactor: ♻️ access db url during prisma build

* refactor: ♻️ 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: ♻️ use deployed validator

* fix: 🐛 when license is updated validate metadata files

* fix: 🐛 validation returns codemeta version on errors

* 🐛 fix: add basic logwatch

* fix: 🐛 add @type key for 2.0 codemeta.json files

* refactor: ♻️ updated required fields for codemeta schmea

* 🐛 fix: add logwatch support

* 🐛 fix: add json to logwatch

* fix: 🐛 patch json parse issue

* fix: 🐛 update logging parameters

* refactor: ♻️ point a folder above for codemeta-schema

* refactor: ♻️ update dockerfile to include schema

* fix: 🐛 ensure authors have roles key

* refactor: ♻️ 🔊 convert some consola logs to logwatch

* fix: 🐛 roles are optional in save request

* chore: 🔊 remove dev logs

* doc: 📝 update changelog

* refactor: ♻️ revert roles key being optional

* fix: 🐛 add logwatch.start method

* fix: 🐛 ensure contrib and authros have roles

* fix: 🐛 CWL handles multiple installations

* refactor: ♻️ update log error

* feat: ✨ purge zenodo token when sign in is required

* fix: 🐛 make login fn asyncronous

* refactor: 🎨 update spacing and color of validation results button

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

* chore: 📝 Update CITATION.cff with Zenodo identifier

* chore: 📝 Update codemeta.json with Zenodo identifier

* fix: 🐛 bad logwatch calls removed

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>
Co-authored-by: codefair-io[bot] <165336008+codefair-io[bot]@users.noreply.github.com>

* refactor: ♻️ 🔏 🔊 🧑‍💻 Add Environment Variables and Convert Logging to Use Logwatch (#119)

* dev: 🧑‍💻 🔐 add env variables for logwatch and validator

* refactor: ♻️ 🔊 replace consola with logwatch

* doc: 📝 update CHANGELOG

---------

Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>
Co-authored-by: codefair-io[bot] <165336008+codefair-io[bot]@users.noreply.github.com>
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.

1 participant