Fix Call to an undefined method $this(Drupal\views\Plugin\views\HandlerBase)::getFormula()

Created on 11 January 2024, 11 months ago

Problem/Motivation

Split from ๐Ÿ“Œ Add an interface for operators() on views Needs work

Should this be an interface in the same way? Maybe warrants further discussion?

@longwave in MR of ๐Ÿ“Œ Add an interface for operators() on views Needs work

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ“Œ Task
Status

Active

Version

11.0 ๐Ÿ”ฅ

Component
Viewsย  โ†’

Last updated about 5 hours ago

Created by

๐Ÿ‡ณ๐Ÿ‡ฑNetherlands spokje

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @spokje
  • Merge request !6128Copy of original MR โ†’ (Open) created by spokje
  • Pipeline finished with Success
    11 months ago
    Total: 589s
    #75762
  • Status changed to Needs work 11 months ago
  • ๐Ÿ‡ณ๐Ÿ‡ฑNetherlands spokje
  • ๐Ÿ‡ซ๐Ÿ‡ทFrance andypost

    needs rebase

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia samit.310@gmail.com

    samit.310@gmail.com โ†’ made their first commit to this issueโ€™s fork.

  • Pipeline finished with Failed
    10 months ago
    Total: 438s
    #113788
  • Pipeline finished with Success
    10 months ago
    #113797
  • Status changed to Needs review 10 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia samit.310@gmail.com

    Hi @andypost,

    Rebase done, please review.

    Thanks
    Samit K.

  • Status changed to RTBC 10 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Rebase is fine.

  • Status changed to Needs work 10 months ago
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom catch

    This isn't adding an interface as discussed in the previous issue, also the exception method doesn't tell you why not implementing the method is a problem, it should probably mention the property is defined (we probably need that with the interface too, it'll just be checking for the interface instead of the method).

    I also don't understand from the code what the difference between $this->formula and $this->getFormula() is, is $this->formula a bool? If it is, then the interface check might be able to replace that completely (once the bc layer is removed).

  • ๐Ÿ‡ณ๐Ÿ‡ฟNew Zealand quietone
  • ๐Ÿ‡ณ๐Ÿ‡ฟNew Zealand quietone

    How is this approach?

  • Pipeline finished with Success
    2 months ago
    Total: 1229s
    #301893
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Know this is addressing phpstan issue but it is introducing a new interface and altering core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php do those not need change records or anything?

    Tagging for issue summary as just based on title wasn't expecting new interface.

  • ๐Ÿ‡ณ๐Ÿ‡ฟNew Zealand quietone

    What in the issue summary needs to be changed?. It already states in the proposed resolution that an interface is added.

    I think before making changes here the question in #10 should be addressed. Is this approach the correct one?

  • The Needs Review Queue Bot โ†’ tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".

    This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.

    Consult the Drupal Contributor Guide โ†’ to find step-by-step guides for working with issues.

  • Pipeline finished with Failed
    2 months ago
    #309087
  • Pipeline finished with Failed
    2 months ago
    #309090
  • Pipeline finished with Failed
    2 months ago
    #309096
  • Pipeline finished with Failed
    2 months ago
    #309112
  • Pipeline finished with Failed
    2 months ago
    #309115
  • Pipeline finished with Success
    2 months ago
    #309131
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    See tag for issue summary.

    This MR is now adding a new interface (which probably needs an MR), making a change to core/modules/views/src/Plugin/views/HandlerBase.php

  • ๐Ÿ‡ณ๐Ÿ‡ฟNew Zealand quietone
Production build 0.71.5 2024