Bug 1084522 - [RFE] Add possibility to set filters per repository on WebUI.
Summary: [RFE] Add possibility to set filters per repository on WebUI.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: WebUI
Version: 560
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
Assignee: Stephen Herr
QA Contact: Pavel Studeník
URL:
Whiteboard:
: 746956 (view as bug list)
Depends On:
Blocks: sat570-misc
TreeView+ depends on / blocked
 
Reported: 2014-04-04 14:53 UTC by Dimitar Yordanov
Modified: 2015-01-16 09:13 UTC (History)
4 users (show)

Fixed In Version: spacewalk-java-2.3.8-25
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-16 09:13:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dimitar Yordanov 2014-04-04 14:53:04 UTC
Description of problem:

Currently filters per repository can be set/listed/removed in/from the database only via API.
channel.software.setRepoFilters
channel.software.listRepoFilters
channel.software.removeRepoFilter

It will be great if the user can manipulate with filters directly from WebUI.

Comment 1 Dimitar Yordanov 2014-05-22 11:53:16 UTC
*** Bug 746956 has been marked as a duplicate of this bug. ***

Comment 3 Pavel Studeník 2014-09-26 13:34:00 UTC
Verified with spacewalk-java-2.3.8-21.el6sat.noarch

It works, but field contain prefix " " and doesn't accept white space. It's not user friendly when you must delete all whitespace.

actual:
' +kernel*,vim,wget,openssh-server'

expected:
'+kernel*, vim,wget, openssh-server'

Comment 5 Stephen Herr 2014-09-26 15:32:06 UTC
The repo filter parsing should now be more robust and the prefixed space should not appear.

Committing to Spacewalk master:
26f4e521c76a2cca8d3669c2e82fd2cfab789fdd

Comment 8 Pavel Studeník 2014-09-30 15:02:51 UTC
Verified with spacewalk-java-2.3.8-25.el6sat.noarch

Comment 9 Pavel Studeník 2014-10-09 14:05:47 UTC
I set empty value in field Filters and I got this results (no package synced):

['/usr/bin/spacewalk-repo-sync', '--channel', 'epel-6-x86_64', '--type', 'yum', ' --no-errata --sync-kickstart --fail']
Repo URL: https://dl.fedoraproject.org/pub/epel/6/x86_64/
Packages in repo:             11098
Packages passed filter rules:     0
No new packages to sync.
Repo https://dl.fedoraproject.org/pub/epel/6/x86_64/ has comps file a28e7053cdd302f563a541eb4fb1a0cbd6442787c5a9a968fe0f550e35ad7ff8-comps-el6.xml.gz.
Repo https://dl.fedoraproject.org/pub/epel/6/x86_64/ has 3431 errata.
3431 errata skipped because of empty package list.
Sync completed.
Total time: 0:03:34

Is it correct behaviour? How Can I synced all packages? I thing that behaviour should be same as previous version - default sync all packages.

Comment 10 Pavel Studeník 2014-10-14 15:27:20 UTC
Currently the behaviour is inconsistent with previous version. If I set empty field, I suppose that all packages will by synchronized from repository. 
Now any packages will not be synchronized.

Comment 11 Pavel Studeník 2014-10-17 13:38:30 UTC
Verified with spacewalk-java-2.3.8-40.el6sat.noarch

All packages in repository was synchronized with empty field.

Comment 13 Martin Korbel 2015-01-15 10:45:40 UTC
Re-verified on Satellite-5.7.0-RHEL6-re20150105.1 (spacewalk-java-2.3.8-96.el6sat)
Using steps described in comment 0.


Note You need to log in before you can comment on or make changes to this bug.