Custom Query (2152 matches)
Results (583 - 585 of 2152)
Ticket
|
Resolution
|
Summary
|
Owner
|
Reporter
|
#104 |
fixed
|
View a package at a given version
|
rgrp
|
rgrp
|
Reported by rgrp,
5 years ago.
|
Description |
As a user i want to see a package at "version" X (NB: not revision X).
- When I visit e.g. /package/read/xyz?version=0.7 I should be shown package at version 0.7 (or a message saying no such version)
- Implementation:
- Find revision for this version (search revision history for when version field was last 0.7)
- Show pacakge at that revision (as in ticket:103)
- On history page also shows versions in list of revisions associated with the package
|
#105 |
fixed
|
Package groups (view)
|
dread
|
rgrp
|
Reported by rgrp,
5 years ago.
|
Description |
As a user I want to be able to create groups of packages.
This functionality is different from tags:
- The ability to add a package to a given group is restricted whereas anyone can add a given tag to a package
- Specifically groups have owners and only the owners can add a package to that group
Group properties
- id (primarykey, uuid style)
- name (restricted content - same rules as package)
- title (no restrictions)
- owners -- many:many with user object
- description (markdown)
- packages -- many:many with package object
Don't version groups for now.
Groups address in the WUI will be:
- /group - browse list of groups (reuse list action)
- /group/list - same thing for now
- /group/<groupname> - display: group properties with links to packages. No links to user pages (yet).
Group editing and searching will be another ticket.
Cost: 3d
|
#108 |
fixed
|
Package search in the REST API
|
dread
|
rgrp
|
Reported by rgrp,
5 years ago.
|
Description |
Add package search facility in the rest api at /api/search
Queries can be provided as for the normal package search either by posting to that url or by performing a get with a query string.
E.g. .../api/search/package?q=xyz
Query parameters:
- q is keyword string (searches name, title, tags by default)
- additional parameters for specific fields
- qjson is alternative to q for Searching by specific fields (in addition to keyword string). Payload to json is a JSON-encoded dict which is a dictionary with a q field for free text (keywords) and additional key/value pairs for specific fields
- if q and qjson specified ignore q and just process qjson value
Additional parameters in addition to query ("q" or "qjson") are:
- limit
- offset
- fullinfo=0/1 - return full record for each result (default=0)
- order_by=field_name
- search_notes=0/1 (default 0) do we search notes field in a keyword search
Return value is json encoded dictionary with keys:
- 'results': list of results
- 'count': total number of results
- Prioritisation is not part of this ticket (requires fulltext support in DB or in external app such as Xapian)
|
Note: See
TracQuery
for help on using queries.