research-software-directory / RSD-as-a-service

This repo contains the new RSD-as-a-service implementation
https://research.software
22 stars 15 forks source link

Add more info to software licenses #1162

Closed dmijatovic closed 2 months ago

dmijatovic commented 3 months ago

Software licenses

Closes #1033 Closes #1041

Changes proposed in this pull request:

How to test:

TODO!

Create migration script to update all historical data for the spdx license entries

Edit software license page

image

Add custom license

image

Software licenses on software page

image

PR Checklist:

jmaassen commented 2 months ago

Some comments:

Screenshot 2024-04-15 at 09-18-56 Edit software Research Software Directory

dmijatovic commented 2 months ago

@jmaassen I have improved search functionality and we pre-load short list of licenses. In addition, I reverted back to using license id's and show long name on mouse over. Can you check this version, please?

jmaassen commented 2 months ago

When searching, sometimes results are shown that are initially confusing. For example, when searching for "mpl" one of the results is "BSD-2-Clause":

Screenshot_2024-04-16_15-59-53

as it turns out, this is caused by the word "Simplified" in the full description ;-)

Would it be an option to not show the full name in the mouse over, but instead add it in the list? Something like:

Also, given the long list of licenses, there is a high probability of a match when trying to add your own license, so it may be good to always show the "Add ..." option?

Finally, when typing a license name like "adw", no options are shown, but there is also no indication that the shortest name you can add is 4

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed for 'rsd-database'

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

sonarcloud[bot] commented 2 months ago

Quality Gate Failed Quality Gate failed for 'rsd-frontend'

Failed conditions
3 Security Hotspots

See analysis details on SonarCloud

jmaassen commented 2 months ago

Works great. We could consider removing the "deprecated" licenses, but I would have to check the exact meaning of those first.