Project

General

Profile

Actions

Bug #20117

closed

Switching filter to overriding one erases assigned taxonomies

Added by Tomáš Strachota over 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Users and roles
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Taxonomies are supported only for overriding filters (normally they're inherited from roles). When the command "filter update" switches the override flag from true to false, taxonomies should be erased. This functionality is currently broken and it resets taxonomies also when the override flag is turned to true.

# create a filter
> hammer --output csv filter create --override no --role role74 --permissions view_users,create_users,edit_users,destroy_users
Message,Id
Permission filter for [User] created,392

> hammer filter info --id 392
Id:            392
Resource type: User
Search:        none
Unlimited?:    yes
Override?:     no
Role:          role74
Permissions:   view_users, create_users, edit_users, destroy_users
Created at:    2017/06/27 08:52:18
Updated at:    2017/06/27 08:52:18

# switch it to overriding and assign some taxonomies at once
> hammer filter update --id 392 --override yes --organizations organization74 --locations location74
Permission filter for [User] updated

# taxonomies were not assigned
> hammer filter info --id 392
Id:            392
Resource type: User
Search:        none
Unlimited?:    yes
Override?:     yes
Role:          role74
Permissions:   view_users, create_users, edit_users, destroy_users
Created at:    2017/06/27 08:52:18
Updated at:    2017/06/27 08:52:22

Related issues 2 (0 open2 closed)

Related to Hammer CLI - Bug #17730: filter create should print warning when org/loc is used and override is falseClosedTomáš Strachota12/19/2016Actions
Related to Hammer CLI - Bug #20817: Taxonomies of role filter are not updating through Hammer CLIResolved08/31/2017Actions
Actions

Also available in: Atom PDF