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: integrate Arborist validation for team project for cohort data endpoints AND remove unused endpoints #83

Conversation

pieterlukasse
Copy link
Contributor

@pieterlukasse pieterlukasse commented Dec 14, 2023

Jira Ticket: VADC-839

New Features

  • Add "team project" validation for cohort-middleware cohortData endpoints. This validation is basically an extra authorization validation that checks if cohort access (for any cohorts in variables) is granted to the user through one of his team projects

Bug Fixes

  • Fix the endpoint /cohortdefinition-stats/by-source-id/:sourceid/by-team-project to support a URL query parameter where the "team project" can also start with /

Breaking Changes

  • Removed some endpoints that are NOT used by our current frontend. This will break for any clients that happen to use them. This was preferred over implementing extra "team project" validation for endpoints we're not using anyway.

Base automatically changed from feat/integrate_arborist_validation_for_team_project to feat/team_project_feature December 14, 2023 20:01
@pieterlukasse pieterlukasse force-pushed the feat/integrate_arborist_validation_for_team_project_for_cohort_data_endpoints branch from ab381c9 to 7c22eca Compare December 14, 2023 20:04
@pieterlukasse pieterlukasse changed the title Feat: integrate arborist validation for team project for cohort data endpoints Feat: integrate Arborist validation for team project for cohort data endpoints Dec 14, 2023
@pieterlukasse pieterlukasse force-pushed the feat/integrate_arborist_validation_for_team_project_for_cohort_data_endpoints branch from 7c22eca to 3e20ed1 Compare December 15, 2023 15:56
@pieterlukasse pieterlukasse force-pushed the feat/integrate_arborist_validation_for_team_project_for_cohort_data_endpoints branch from 3e20ed1 to 8e04f96 Compare December 15, 2023 17:07
Important: these can only be added back with proper changes to ensure
the correct "team project" filtering takes place
@pieterlukasse pieterlukasse changed the title Feat: integrate Arborist validation for team project for cohort data endpoints Feat: integrate Arborist validation for team project for cohort data endpoints AND remove unused endpoints Dec 15, 2023
@pieterlukasse pieterlukasse marked this pull request as ready for review December 15, 2023 17:19
controllers/cohortdata.go Outdated Show resolved Hide resolved
...to support team projects that start with "/"
...over the other variation of this method (TeamProjectValidationForCohortIdsList)
Copy link
Contributor

@tianj7 tianj7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@pieterlukasse pieterlukasse merged commit 30fb6b4 into feat/team_project_feature Dec 19, 2023
13 of 14 checks passed
@pieterlukasse pieterlukasse deleted the feat/integrate_arborist_validation_for_team_project_for_cohort_data_endpoints branch December 19, 2023 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants