Closed slugb0t closed 3 weeks ago
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!
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.
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
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"
Change | Details | Files |
---|---|---|
Enhanced license validation logic with improved handling of custom licenses |
|
bot/license/index.js |
Updated UI to support custom license workflow |
|
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 |
|
ui/server/api/[owner]/[repo]/license/custom_title.put.ts |
Enhanced dashboard rendering and issue management |
|
bot/index.js bot/utils/renderer/index.js bot/archival/index.js |
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!
NCollapseTransition
and NDatePicker
have been defined in the UI components.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!
Summary by Sourcery
Enhancements: