[Bug 583570] New: osc sm not working with our setup.
http://bugzilla.novell.com/show_bug.cgi?id=583570 http://bugzilla.novell.com/show_bug.cgi?id=583570#c0 Summary: osc sm not working with our setup. Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: BuildService AssignedTo: adrian@novell.com ReportedBy: adrian@novell.com QAContact: adrian@novell.com CC: okir@novell.com, suse-tux@gmx.de Found By: --- Blocker: --- The maintained search request of osc is only working when packages a marked as maintained, but not just a single marker in the project exists. We can of course change our setup and mark each single package, but I think we should also offer a way to search for packages limiting via attributes in projects. Either we support xqueries for that or we offer package search via attribute controller. Tom, I believe you told me how such a xquery would look alike. Can you please document it here ? (Search for all packages with given name and with a certain attribute in project). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=583570 http://bugzilla.novell.com/show_bug.cgi?id=583570#c1 Adrian Schröter <adrian@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |tschmidt@novell.com --- Comment #1 from Adrian Schröter <adrian@novell.com> 2010-02-26 09:32:15 UTC --- needinfo to tom for the xquery question. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=583570 http://bugzilla.novell.com/show_bug.cgi?id=583570#c2 Thomas Schmidt <tschmidt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW CC| |tschmidt@novell.com Info Provider|tschmidt@novell.com | --- Comment #2 from Thomas Schmidt <tschmidt@novell.com> 2010-03-01 18:38:08 CET --- The docs of osc-0.125.5-5.1.noarch are wrong: osc maintained 'source package name' as given as example in "osc se -h" returns:
osc maintained 'curl' osc: unknown command: 'maintained' Try 'osc help' for info
Searching for a maintained curl:
osc -H se --maintained --package curl
sends the xquery: [(@name='curl' and attribute/@name="OBS:Maintained")] I think an xquery for searching for packages within a maintained project would look like this: project[attribute/@name="OBS:Maintained" and package/@name='curl'] but I don't know if it's possible with our internal xml representation to search for package and project properties within one xquery. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=583570 http://bugzilla.novell.com/show_bug.cgi?id=583570#c3 Adrian Schröter <adrian@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Adrian Schröter <adrian@novell.com> 2010-03-02 08:55:10 UTC --- It is implemented now for OBS master and osc 0.126. I will backport for OBS 1.7.2 also after some more testing. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
It is implemented now for OBS master and osc 0.126. Hmm shouldn't it be implemented the other way around: GET /search/package[@name="<package_name>" and
http://bugzilla.novell.com/show_bug.cgi?id=583570 http://bugzilla.novell.com/show_bug.cgi?id=583570#c4 --- Comment #4 from Marcus Hüwe <suse-tux@gmx.de> 2010-03-02 10:47:26 UTC --- (In reply to comment #3) project/attribute/@name="OBS:maintained"] Otherwise it'll return the project meta instead of the package meta (which I would expect here). What do you think? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=583570 http://bugzilla.novell.com/show_bug.cgi?id=583570#c5 --- Comment #5 from Adrian Schröter <adrian@novell.com> 2010-03-02 10:55:38 UTC --- the problem is that the attribute can be in the project or in the package. So we either need a long request with an "or" in between for both cases or something like the current implementation, which is doing two requests. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=583570 http://bugzilla.novell.com/show_bug.cgi?id=583570#c6 --- Comment #6 from Marcus Hüwe <suse-tux@gmx.de> 2010-03-02 11:19:19 UTC --- Hmm the request won't be too long IMHO: GET /search/package[@name="<package_name>" and (project/attribute/@name="OBS:maintained" or attribute/@name="OBS:maintained")] Such a request would return the (expected) package meta regardless whether the attribute is defined in the project or package. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=583570 http://bugzilla.novell.com/show_bug.cgi?id=583570#c7 --- Comment #7 from Adrian Schröter <adrian@novell.com> 2010-03-02 11:27:06 UTC --- also fine with me, but the project/attribute/@name query part needs to be implemented as well. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=583570 http://bugzilla.novell.com/show_bug.cgi?id=583570#c8 --- Comment #8 from Marcus Hüwe <suse-tux@gmx.de> 2010-03-02 19:48:16 UTC --- I just committed it to git master. I didn't implement it in osc yet because the complete search stuff (in osc) should be cleaned up first (as you already said). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com