-
Notifications
You must be signed in to change notification settings - Fork 14
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
923 add support for categories for software #946
923 add support for categories for software #946
Conversation
…ategories-for-software-and-projects
8ba02cf
to
769ed58
Compare
@@ -1,6 +1,6 @@ | |||
{ | |||
"compilerOptions": { | |||
"target": "es5", | |||
"target": "es6", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enables Array.entries()
2d1a55b
to
e70c755
Compare
…ategories-for-software-and-projects
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are a few things I noticed when looking at the database files:
- there is no row level security for
category
, which means that any logged in user can create, edit and delete categories - there is no check that the categories cannot form a cycle (e.g. cat1 has parent cat2, cat2 has parent cat1)
- please add the corresponding
sanitise
functions tocategory
is_published = TRUE
can be shortened tois_published
in awhere
clause- some keywords are not capitalised, e.g.
references
,as
We can furthermore add tests to the backend_tests
module to test if all functions and checks work as intended, let me know if you need help with that.
Some comments from the UI perspective:
I think it would be better to use the same design approach: rounded boxed and an "(x)" for deletion instead of a delete button? And maybe a "type to search" option?
for research domains in projects we use a slightly different approach: In this case, LS is the parent of both LS3 and LS6 and grand parent of LS3_14. The full path isn't shown for the last three. Would a similar approach work for categories? This may depend on the rules there are to select one? On difference I see is that for Research Domains, one is also allowed to select a top level or mid level one, not just a leaf one. |
categories should be read-only until we have an admin interface
In terms of design I think is oke, the whole information page has become too full of features that in my opinion needs an aesthetic redesign to keep the form inputs more organized. |
categories should be read-only until we have an admin interface
8f2b28e
to
944f195
Compare
944f195
to
ac67358
Compare
…se-audit lighthouse: add arial labels to admin buttons.
After a meeting between @fembau and me, we came up with a way to display categories that will make it easier for users and developers. We designed a single component that can be used in both view mode and admin mode. This will save time and effort, and make the user experience better. Our design assumes that the organization has a list of categories already. We don't have a design for this list yet, but that's not part of this PR. |
As discussed with @ewan-escience we put the metadata of categories, like color, icon, etc. into the same database table. Most metadata columns would be empty. Other options we talked about: put metadata into extra table (to save space); add a column of type json to store metadata. |
…do not blow up small images)
…order on organisation page.
…port-for-categories-for-software-and-projects
69f5d0d
to
92b7603
Compare
[rsd-database] Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
[rsd-frontend] Kudos, SonarCloud Quality Gate passed! |
d0d8461
to
29cfb7d
Compare
closing in favor of #984 |
add support for categories for software
Addresses #923 :)
This is a first functional prototype. This branch also includes some pre-defined categories for testing.
Some intro
top-level cat / sub-cat / category
POV phase / research field / topic
➜ design decision: for now the middle level is left out:
POF phase / topic
Version 1
TODOs
Testing
Usability / Features
Code structure
Changes proposed in this pull request:
How to test:
PR Checklist:
docker-compose.yml