- Issue created by @paul121
- πΊπΈUnited States m.stenta
2. Use bundle permissions for quantities.
I can't think of any argument against this. I don't recall whether or not it was an intentional decision not to use bundle permissions when we made quantity types ( #3196825: Quantity types β ).
But it would be a breaking change to modify the permissions that do currently exist
Should we do this in the
3.x
branch and make it an explicit breaking change with a changelog? See: #3347412: [META] farmOS 3.x Breaking Changes β )Are there any other potential ripple effects of changing these permissions? Do we explicitly check for them anywhere ourselves in code? Or will everything "just work"? I'm thinking of the Inline Entity Form widget in log edit forms... but I assume that would all "just work". I'm not sure if there are other places we need to think about...
- Status changed to Needs review
about 1 year ago 10:44pm 19 October 2023 - πΊπΈUnited States paul121 Spokane, WA
I can't think of any argument against this.
Great, the easy approach!
Are there any other potential ripple effects of changing these permissions? Do we explicitly check for them anywhere ourselves in code? Or will everything "just work"?
I don't think there should be any issues in farmOS core. I did a search for the permissions that will be removed and did not see any. I know this will impact Rothamsted because they have a few custom roles that have
create quantity
hard-coded permissions. Are there any other projects we know like this?I made a PR to @m.stenta's 3.x branch here: https://github.com/mstenta/farmOS/pull/3
I also started a change record for this: https://www.drupal.org/node/3395415 β
- Status changed to Fixed
about 1 year ago 12:35pm 20 October 2023 - πΊπΈUnited States m.stenta
Merged into my
3.x
branch. Thanks @paul121! Great CR too! Automatically closed - issue fixed for 2 weeks with no activity.