Skip to content

Commit

Permalink
Minor cleanup, setting the set_facl_job to run by default
Browse files Browse the repository at this point in the history
  • Loading branch information
fnets committed Jan 31, 2025
1 parent 23ffc64 commit 86b86d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions server/portal/apps/projects/views_unit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def test_project_instance_patch(
}


def test_project_change_role(client, mock_project_mgr):
def test_project_change_role(client, mock_project_mgr, project_list):
mock_project_mgr.change_project_role.return_value = MagicMock(
metadata={"projectId": "PRJ-123"}
)
Expand All @@ -395,7 +395,7 @@ def test_project_change_role(client, mock_project_mgr):


def test_project_change_system_role(
client, mock_service_account, mock_tapis_client
client, mock_service_account, mock_tapis_client, project_list
):
# USER translates to writer role
patch_body = {
Expand Down Expand Up @@ -431,7 +431,7 @@ def test_project_change_system_role(

@override_settings(PORTAL_PROJECTS_USE_SET_FACL_JOB=True)
def test_project_change_system_role_setfacl_job(
client, mock_service_account, mock_tapis_client
client, mock_service_account, mock_tapis_client, project_list
):
mock_rootDir = mock_service_account().systems.getSystem().rootDir

Expand Down
2 changes: 1 addition & 1 deletion server/portal/settings/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@

PORTAL_ALLOCATION = getattr(settings_custom, '_PORTAL_ALLOCATION', '')

PORTAL_PROJECTS_USE_SET_FACL_JOB = getattr(settings_custom, '_PORTAL_PROJECTS_USE_SET_FACL_JOB', False)
PORTAL_PROJECTS_USE_SET_FACL_JOB = getattr(settings_custom, '_PORTAL_PROJECTS_USE_SET_FACL_JOB', True)

"""
SETTINGS: ELASTICSEARCH
Expand Down

0 comments on commit 86b86d9

Please sign in to comment.