Coder Social home page Coder Social logo

Comments (2)

zwolf avatar zwolf commented on August 24, 2024

It would probably be OK to expose any/all of the other ProjectPreference fields to owner/collabs.

Is this the feature you'd like to see added? For a given project, instead of "owners/collabs can write project_preferences.settings only", the policy should be "owners/collabs can read and write project_preferences as though they were the user"? I don't see an issue with that, the only other contents are the ones you described above as well as some counts (activity_count, activity_count_by_workflow).

from panoptes.

lcjohnso avatar lcjohnso commented on August 24, 2024

Zach & Cliff had conversation on 2023-10-19:

  • Simplest path forward: enable read permission on ProjectPreferences.settings only.
    • One main reason for this: write permissions for project owner/collab are limited to ProjectPreferences.settings for write permissions, so keeping consistency for read actions probably makes sense.
  • Cliff would be totally OK if Zach prefers either the "settings only" vs. "whole ProjectPreferences object" implementation for read permissions. Write permissions use a new, separate endpoint, so implementing the more restrictive scope might be more annoying / complex. While none of the other fields (e.g., email_communication, preferences) were meant to be seen by project owners, perhaps it isn't bad to show these (and at times, maybe there's an advantage; for example, access to preferences would allow project teams to query whether a person has seen and/or completed the minicourse).
    preferences
  • Zach will think about how much trouble it would be to strip out and only serialize desired fields from the show.

Stretch Goal: mirroring the function for writing to settings, the MVP version of this capability would require project teams to know the user ID and would require teams to loop through each user individually. A nice-to-have (but definitely NOT a MVP feature) would be the ability to query all user project preferences by project ID, returning info on those who have classified (email_communication is not null).

from panoptes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.