#571 closed feature (duplicate)
Support public visibility of development ('private') components
Reported by: | Twan Goosen | Owned by: | olha.shkaravska@mpi.nl |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | ComponentRegistry | Version: | |
Keywords: | Cc: | George.Georgovassilis@mpi.nl |
Description
Note: this concerns a partial implementation of the feature described by #142
Description: There should be an option to mark private (either group or individual user) components and profiles as publicly visible. The owner(s) of a component decide on this state. Components marked as such should be visible in both the list of public components/profiles (but only if enabled by the viewing user) and in the user's/group's private list.
- Add a property representing 'public visibility' to components and profiles (i.e. change model + database schema).
Note: The 'public' property should remain untouched (will be partly replaced by a 'status' property in CMDI 1.2, see #142).
- Support this in the REST backend
/registry/components?userSpace={userSpace}&showDraft={showDraft}
pseudo-sql (conceptual, does not have to be implemented in one query):
select * from components where "isPublic" != userSpace AND (!userSpace OR "owner" = uid) OR !userSpace AND showDraft AND "publiclyVisible" = TRUE
defaults: {userSpace}=false; {showDraft}=false (has no effect when userSpace=true)
- Add a button to toggle the 'publiclyVisible' property of a component (probably next to move to group)
- In the UI, add a checkbox to the view of public components or profiles that binds to the 'showDraft' option, allowing the user to filter out (default behaviour) draft components
- Add a clear indication (e.g. DRAFT) of this status in the components/profiles table!
Change History (4)
comment:1 Changed 10 years ago by
Cc: | George.Georgovassilis@mpi.nl added |
---|
comment:2 Changed 8 years ago by
Milestone: | ComponentRegistry-1.15 → ComponentRegistry-2.2 |
---|
comment:3 Changed 8 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:4 Changed 8 years ago by
Milestone: | ComponentRegistry-2.2 |
---|
Ticket retargeted after milestone deleted
https://github.com/clarin-eric/component-registry-rest/issues/13