Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jian he created an issue. See original summary.

jian he’s picture

about the "missing schema display.default.display_options.fields.order_id.link_to_order", the Drupal\uc_order\Plugin\views\field\Id is useless. Because the views standard field plugin can link the id to canonical link, so this issue depends on #2623410: Create order fatal error if content_translation module enabled. to create the usable canonical link.

jian he’s picture

Status: Active » Needs work
FileSize
5.59 KB

fixed missing schema fields.order_id.link_to_order.
using the standard views field instead of order specified id plugin.

and there is other need fix TODO status:
views.view.uc_customers 32 errors
views.view.uc_orders 34 errors
views.view.uc_order_history 31 errors

jian he’s picture

jian he’s picture

fix uc_order_history link_to_order issue.

Current status:
views.view.uc_customers 31 errors
views.view.uc_orders 34 errors
views.view.uc_order_history 29 errors

jian he’s picture

FileSize
7.63 KB
939 bytes

fix missing schema for order_id.id and uc_price.

Current status:
views.view.uc_customers 25 errors
views.view.uc_orders 33 errors List
views.view.uc_order_history 29 errors

jian he’s picture

FileSize
13.32 KB
6.21 KB

add missing plugin_id and fix missing uc_order_status schema.

Current status:
views.view.uc_customers 25 errors
views.view.uc_orders 27 errors List
views.view.uc_order_history 29 errors

jian he’s picture

jian he’s picture

TR’s picture

Status: Needs work » Needs review

Let's see what the testbot has to say ...

Status: Needs review » Needs work

The last submitted patch, 7: 2623394-order-schema-7.patch, failed testing.

The last submitted patch, 7: 2623394-order-schema-7.patch, failed testing.

longwave’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 7: 2623394-order-schema-7.patch, failed testing.

longwave’s picture

Status: Needs work » Needs review
FileSize
8.34 KB

Reroll.

longwave’s picture

Status: Needs review » Needs work

#15 does improve things but there are still problems:

views.view.uc_customers 20 errors
views.view.uc_orders 24 errors
views.view.uc_order_history 26 errors

TR’s picture

Maybe commit what we have so far then follow up with more patches, rather than trying to do everything at once?

TR’s picture

Issue tags: +beta blocker
TR’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 15: order-schema.patch, failed testing.

TR’s picture

Status: Needs work » Needs review
FileSize
9.54 KB

#15 doesn't apply so I started from scratch.

Here's a patch that takes care of all the problems with views.view.uc_order_history.

TR’s picture

This patch includes #21 and fixes both views.view.uc_order_history and views.view.uc_orders

TR’s picture

Forgot the patch ...

  • longwave committed d1cc2a2 on 8.x-4.x authored by TR
    Issue #2623394 by TR: Fix views schemas for uc_order
    
longwave’s picture

Title: FIX views schemas for uc_order » Fix views schemas for uc_order
Status: Needs review » Active

Committed #23. 12 errors left in views.view.uc_customers.

TR’s picture

Status: Active » Needs review
FileSize
2.57 KB

This patch brings views.view.uc_customers down to 7 errors, all from the order_id field. We shouldn't need a schema for that ... not sure what is going on there.

  • longwave committed 4eecec1 on 8.x-4.x
    Issue #2623394 by longwave: Fix views schemas for uc_order
    
  • longwave committed c38992e on 8.x-4.x authored by TR
    Issue #2623394 by TR: Fix views schemas for uc_order
    
longwave’s picture

Status: Needs review » Fixed

Committed #26 and then made some final tweaks to the order_id field, I think we are done here now.

TR’s picture

Yeah, I already tried what you did in 4eecec1 and it eliminates the error until you go save and export the View, at which point you get the bad data (precision etc) back. Somewhere Views thinks order_id is a float rather than an int. That indicates to me there's still something wrong somewhere, even if we edit our config so it conforms to the schema.

  • longwave committed a8832f6 on 8.x-4.x
    Revert "Issue #2623394 by longwave: Fix views schemas for uc_order"...
longwave’s picture

Status: Fixed » Active

Reverted 4eecec1. I think this is a bug in Views' own schema config. When aggregation is enabled (ie. "group_type" is a non empty string) this effectively changes the field type, but the schema config does not take this into account.

A possible workaround is to use another field instead of order ID, as it doesn't really matter what we are counting in this aggregate - we just care about the number of rows in the group.