Commits

Author Commit Message Labels Comments Date
Azoff
Removed hidden field for desc from the query.html template.
Azoff
Added unicode aware version of urllib.unquote_plus() to make Query.to_string() more user friendly. If query was ordered by more than one field, the filed names are separated by a pipe (|) and that pipe shouldn't be shown as %7C to the user. The tooltip for TicketQuery-macro now also contains the order parameter. Maybe the tooltip should only contain the constrains for the search, but as it contains what columns to show, it makes more sense to show the order too. The group pa…
Azoff
Added a few testcases containing both group and order parameters and their default values. Somehow, the type of QueryModule.default_group was changed to 'Option' in last commit, reverted back to 'ListOption'.
Azoff
Clean up code a bit. Added another testcase for Query.get_href().
Azoff
Added a few new testcases for Query.get_href(). Fixed Query.template_data() to use the new order format. Fixed so that the first field to order by is always indicated by a litle triangle, the rest of the order fields are currently NOT visible in the UI.
Azoff
Fixed duplicated 'order' parameter in Query.to_string(). Query.get_group() now returns (None, None) when no group is to be applied; fixes almost every testcase.
Azoff
* The use config parameter 'default_order' were acidentially removed in previous commit. Readd it. * Validate both the config and the user supplied parameter for order to avoid problems later on, maybe this should be handled in another way? * Some initial work in Query.from_string() to support more than one order column. * Make Query.get_group() return a tuple of (field, desc) as te desc part is needed by the template. * Remove group from order list in Query.get_href() to avoid duplicating the …
Odd Simon Simonsen
Adding `new_format3.diff` that combines a new format for storing group and order in an interrelated manner, and also modified order internally to support multiple order items. Current state is "semi-working proof-of-concept"... About 19 tests fail, but that is just part of unfinished cleaning of tests and code - more work is needed with this patch to get all things ironed out.
Odd Simon Simonsen
Move the patch name in series to make the 'mini-stacks' clearer.
Odd Simon Simonsen
Merged.
Odd Simon Simonsen
New alternative group format that just stores the "(-)field" and uses helper to extract the group name where needed. Note: The other new_format_* patches are just commented out in `series` file. Edit `series` to select between the "mini-stacks" of patches for alternative approaches. It is just a text file, but just don't edit lines with patches that are already applied.
Azoff
Some more tweaks.
Azoff
Added patch to support new format of parameter 'order'. Added a few new test cases. Cleanup of existing test cases regarding defalt_*.
Azoff
Split scenarios into different test cases. Moved a few scenarios to default_group patch.
Azoff
Added another scenario to test_default_group_invalid_field.
Azoff
Refreshed patches.
Azoff
Added a few new scenarios to test_default_order_invalid_field. The new scenarios currently failes, but will be fixed soon.
Azoff
Some minor tweaks to new format for group. Added a few new tests to test_default_group_invalid_field.
Odd Simon Simonsen
Made `new_group_format` patch apply onto the other updated patches. Also some code standard changes (no more than 80 chars per line). No functional changes, but there is now some mismatch on logic for `new_group_format` and one of the new tests do not pass.
Odd Simon Simonsen
Merged.
Odd Simon Simonsen
Further fixes to `default_order` and `default_group` patches. Also handles invalid config settings.
Azoff
Cleanup the new_group_format patch.
Azoff
Refreshed patches.
Azoff
Removed a log line what were not supposed to be commited. Fixed a typo and cleaned up code a bit more.
Azoff
Cleaned up new format for group.
Odd Simon Simonsen
Fixes for `default_order` and `default_group` patches. Mostly simplifications.
Azoff
Some initial work on supporting the new format for defining group and order as a string (+field / -field).
Azoff
Added option to specify a default group field.
Azoff
The 'desc' param should use 0/1, not False/True.
Azoff
Somehow, I managed to screw up the patchset, hopefully this resolves it.
  1. Prev
  2. Next