Project

General

Profile

Actions

Bug #20117

closed

Switching filter to overriding one erases assigned taxonomies

Added by Tomáš Strachota almost 7 years ago. Updated almost 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 #1

Updated by Tomáš Strachota almost 7 years ago

  • Related to Bug #17730: filter create should print warning when org/loc is used and override is false added
Actions #2

Updated by The Foreman Bot almost 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli-foreman/pull/313 added
Actions #3

Updated by Marek Hulán almost 7 years ago

  • Target version changed from 1.14.0 to 1.14.3
Actions #4

Updated by Marek Hulán over 6 years ago

  • Target version changed from 1.14.3 to 1.17.0-RC2
Actions #5

Updated by Anonymous over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #6

Updated by Tomáš Strachota over 6 years ago

  • translation missing: en.field_release set to 243
Actions #7

Updated by Marek Hulán over 6 years ago

  • Related to Bug #20817: Taxonomies of role filter are not updating through Hammer CLI added
Actions

Also available in: Atom PDF