Skip to content

Conversation

quirino95
Copy link

This module changes behavior of task visibility: portal users now will only see task where they are explicitly set as follower, so visibility on project only is no longer enough.
However, when creating a new task, all users following the project will automatically follow the new task too.

Copy link
Contributor

@aleuffre aleuffre left a comment

Choose a reason for hiding this comment

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

For adding a new module, the commit message should be

[ADD] project_portal_task_visibility: show task only to followers

@aleuffre
Copy link
Contributor

Tests are failing because of incompatibility with project_task_code_portal. There are a few ways we could possibly address it, none of them are very elegant.

One of them could be to change the setup of the tests of project_task_code_portal to activate the rule again just in case. (with a comment describing why)

@quirino95 quirino95 force-pushed the portal_task_visibility branch from a82f683 to 6035b02 Compare June 10, 2025 14:57
@quirino95
Copy link
Author

Tests are failing because of incompatibility with project_task_code_portal. There are a few ways we could possibly address it, none of them are very elegant.

One of them could be to change the setup of the tests of project_task_code_portal to activate the rule again just in case. (with a comment describing why)

Forced the rule to active in setUpClass method, now tests are ok

@quirino95 quirino95 force-pushed the portal_task_visibility branch from 6035b02 to 27b3666 Compare June 10, 2025 15:07
Copy link
Contributor

@aleuffre aleuffre left a comment

Choose a reason for hiding this comment

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

Minor formal requirement, but LGTM

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8" ?>
Copy link
Contributor

Choose a reason for hiding this comment

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

chore: file name should be project_task_security.xml

@quirino95 quirino95 force-pushed the portal_task_visibility branch from 27b3666 to c317cbe Compare June 11, 2025 09:33
Copy link
Contributor

@aleuffre aleuffre left a comment

Choose a reason for hiding this comment

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

Code and functional review, LGTM

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.

2 participants