ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Provide a way to query issues qith Liquid (Feature #665)


Added by Holger Just at 2011-10-17 05:21 pm. Updated at 2012-07-11 02:31 pm.


Status:Open Start date:2011-10-17
Priority:Normal Due date:
Assignee:Holger Just % Done:

0%

Category:Text formatting
Target version:-
Remote issue URL: Affected version:

Description

Once we have full liquid support (see #604) it is desirable to have access to about all objects from within the language with issues being the most important object type here.

I started working on an extension which utilizes a simple treetop grammar to parse a DSL for filter specification and to subsequently create the issues and make them available to the user.

The syntax currently looks like this:

{% query my_query %}
status o
author_id = 1
{% endquery %}

|_. ID |_. Subject |_. Status |
{% for issue in my_query.issues %}
| {{issue.id}} | {{issue.subject}} | {{issue.status.name}} |
{% endfor %}

You have {{my_query.count}} open issues.

This generates the following example output:


ID Subject Status
1 This is an issue New
2 A second issue New

You have 2 open issues.


What is missing yet is full support for all attributes and more user-friendly input as it currently relies on the filter representation inside the query class which sometimes is not obvious.

Also missing are facilities for sorting and a performant way of slicing (i.e. without first instantiating all previous issues).


Related issues

blocked by Feature #604: Liquid Markup on top of Textile Closed 2011-09-02

History

Updated by Holger Just at 2011-10-17 05:48 pm

You can find the current code at https://github.com/meineerde/chiliproject/tree/issues%2Funstable%2F665-liquid-issue-queries

It builds on top of the current issues/unstable/604-liquid branch which contains the code for #604.

Updated by Holger Just at 2012-07-11 02:31 pm

  • Description changed from Once we have full liquid support (see #604) it is desirable to have access to... to Once we have full liquid support (see #604) it is desirable to have access to... More

Also available in: Atom PDF