Easy-digital-downloads: Search not fully working

Created on 2 Apr 2018  路  5Comments  路  Source: easydigitaldownloads/easy-digital-downloads

It stopped working >= 2.8.13 due to a change made for this issue: https://github.com/easydigitaldownloads/easy-digital-downloads/issues/6178

If sequential order numbers are enabled nothing below that if is executed, causing the search functionality in the payments (and licenses among others probably) to not fully work as expected.

Searching for a any generic s (non-user/email), discount: or # download doesn't work.

type-bug

Most helpful comment

Acknowledged. We can trick this out very easily now, so I鈥檒l think on it and own this for 3.0.

All 5 comments

This is tricky.

The PR does fix the search but the search is still broken.

Let's say you enable sequential now and perform a couple of test purchases. Then go to the payments list and search just the payment ID of one of your new test purchases. It will work properly. But it will not work if you search just the payment ID of a purchase from before sequential.

Note: that happens on both master and this PR.

@SDavisMedia although I haven't tested your scenario, I do believe my branch takes that into account.
https://github.com/easydigitaldownloads/easy-digital-downloads/pull/6472/files#diff-b594a31ba846d2a8e7d09d6c474364c0R486

When a numeric search is done it searches for post IDs and sequential IDs. Only when a prefix is provided in the search it will only search for those payments with the prefixes. May still be missing something though 馃槄

I'd say let's see if we can test this once 3.0 is at a more stable point. With the new tables we're building out our own DB patterns that should, _in theory_, give us far more flexibility in the search patterns.

@JJJ @sunnyratilal heads up, let's see if we can support this in the native query classes we're building for payments.

Acknowledged. We can trick this out very easily now, so I鈥檒l think on it and own this for 3.0.

Here's where we are right now:

If I understand the original problem correctly, the next steps are making sure that our admin area screens and forms are properly passing their s values through.

We _could_ go a step farther and add some _very basic_ parameterization to our search boxes. Say, searching for: order_number=2,status=pending. If we think we want that in a future version other than 3.0, I can get DB\Query\Base ready now so we don't need any breaking changes later.

All ears!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nabeghe picture nabeghe  路  5Comments

boluda picture boluda  路  4Comments

davidsherlock picture davidsherlock  路  4Comments

JJJ picture JJJ  路  5Comments

zackkatz picture zackkatz  路  5Comments