Private spaces implementation - #1339
Conversation
…the private space
…vate-spaces into private-spaces
…oogle for viewing all materials
…ce (and all the others)
…he user is part of from the main app
…zed users in main app
https://github.com/ElixirTeSS/TeSS/actions/runs/30343552464?pr=1339 Scroll to the bottom. Looks like the user is not authenticated in the screenshots. |
Maybe the tests pipeline has a problem? |
The current tests do not authenticate any user: https://github.com/valentinRyckaert/TeSS-private-spaces/blob/refs/heads/private-spaces-with-groups/test/system/groups_test.rb I get the same failures locally: Not sure why they pass for you |
|
[testing using a docker container, fetching this PR] While adding a member to a group, it didn't show the proper UI (see 2nd screenshot) – I had a I needed to do |
fbacall
left a comment
There was a problem hiding this comment.
Some initial comments.
General points:
- I think the way private space resources are hidden from search results should be revisited - in its current state I think it could result in a user clicking through numerous empty pages of results (if, for example, a private space just added a large amount of content).
- Any text that appears in the UI, try and add it to
config/locales/en.ymlso it can be changed/translated on different instances. Look at how this is done in other views. There are also methods to do this for class/attribute names e.g.Group.model_name.human,Group.human_attribute_name(:members) - Use SASS variables for any colours (or avoid custom colours in general and use classes from Bootstrap), so things look consistent if the theme is changed. References: https://getbootstrap.com/docs/3.4/components/ and https://github.com/twbs/bootstrap-sass/blob/master/assets/stylesheets/bootstrap/_variables.scss#L19-L23
…e don't have empty pages
Summary of changes
Database
3 new tables
Changes in existing tables
Code
New group controller and policy
New MemberShip Model
Shown? in application policy
Spaces controller and policy updates
space policy:
space controller:
Solr search_index updates
Application controller updates
Space model update
Rdoc
Screenshots
Checklist