Skip to content
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

feat: home discussions user filter enhancements #5

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

20cents
Copy link

@20cents 20cents commented Oct 9, 2024

Close issue PnX-SI#3194

il a participé à la discussion concernée

TReport.id_synthese.in_(
    select(TReport.id_synthese).where(TReport.id_role == g.current_user.id_role)
),
# S'il poste un message sur une obs, il verra alors tous les messages concernant cette cette obs

il a saisi l'observation qui est commentée ce filtre sera basé sur le champs id_digitizer

TReport.synthese.has(Synthese.id_digitiser == g.current_user.id_role),

il fait partie des observateurs ce filtre sera basé sur le champs cor_observer_synthese

TReport.synthese.has(Synthese.cor_observers.any(User.id_role == g.current_user.id_role))

@20cents 20cents force-pushed the feat/home-discussions-user-filter-enhancements branch 2 times, most recently from 906e9d8 to 0347a46 Compare October 10, 2024 12:13
@20cents 20cents force-pushed the feat/home-discussions-user-filter-enhancements branch from 0347a46 to 008aa06 Compare October 10, 2024 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant