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

feat: create Software even if publiccode.yml is invalid #339

Merged
merged 1 commit into from
Mar 19, 2023

Conversation

bfabio
Copy link
Member

@bfabio bfabio commented Mar 2, 2023

Previously we only created a new Software entity only when the
publiccode.yml is valid, so in case of a new repo with an invalid
publiccode.yml nothing was added.

This means the new software didn't exist from the API's point of view,
and because of that publiccode-issueopener can't notify the maintainers about
the errors, even if new repos are arguably the ones where error reporting and
a little hand holding are more valuable.

So add the software even if publiccode.yml is invalid, setting active to
false.

We will re-activate software whenever publiccode.yml is valid only
if it was previously added automatically for the first time as inactive.

Fix #325.

Previously we only created a new Software entity only when the
publiccode.yml is valid, so in case of a new repo with an invalid
publiccode.yml nothing was added.

This means the new software didn't exist from the API's point of view,
and because of that publiccode-issueopener can't notify the maintainers about
the errors, even if new repos are arguably the ones where error reporting and
a little hand holding are more valuable.

So add the software even if publiccode.yml is invalid, setting active to
false.

We will re-activate software whenever publiccode.yml is valid *only*
if it was previously added automatically for the first time as inactive.
@bfabio bfabio marked this pull request as ready for review March 19, 2023 19:19
@bfabio bfabio changed the title feat: create/update Software even if the publiccode.yml is invalid feat: create Software even if publiccode.yml is invalid Mar 19, 2023
@bfabio bfabio merged commit a18e548 into italia:main Mar 19, 2023
@bfabio bfabio deleted the create-invalid branch March 19, 2023 19:29
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.

Must create a new software entity in the API even if the publiccode.yml is invalid
1 participant