This would help track who created/updated price list and price list items.

I'm wondering whether we should be setting an initial value or not?
Additionally, we'll probably need to introduce more granular permissions (e.g per store price list permissions).

i'm thinking we need more than just "administer commerce_pricelist".

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jsacksick created an issue. See original summary.

jsacksick’s picture

Status: Active » Needs review
FileSize
6.01 KB

Note that I'm not 100% sure whether we need the "uid" entity key.

jsacksick’s picture

FileSize
6.38 KB

We also need to update the entity type definition (the "entity_keys"), adding that in the .install.

Note that the update hook number could conflict with #3102975: Define event classes for price list and price list items.

jsacksick’s picture

jsacksick’s picture

Before we commit that, we have to decide whether we need to set an initial default value for the uid field.

jsacksick’s picture

The attached patch is setting the default price list and price list item owner to the store owner.

  • jsacksick committed bd8e83c on 8.x-2.x
    Issue #3102979 by jsacksick: Add a uid field to pricelist and price list...
jsacksick’s picture

Status: Needs review » Fixed
FileSize
1.65 KB
6.84 KB

Committed the attached patch!

  • jsacksick committed cc861e9 on 8.x-2.x
    Issue #3102979 follow-up: Fix the field definition mismatch.
    
zenimagine’s picture

@jsacksick On my production site, I have the RC1 version and I have not applied any patches.

What should I do to not break anything ? Thank you

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.