Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-3470

Shouldn't contribute actions to mixin object s... cause new metamodel validation to fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Resolved
    • 2.0.0-RC1
    • 2.0.0-RC2
    • Core
    • None

    Description

      For example, if include the commandlog module, this has a mixin Object_recentCommands, which (of course) is intended to be contributed to all objects.

      It turns out that it is also (seemingly) contributed to mixin objects, which doesn't make much sense, but there you go.

      And then, with the new metamodel validation that requires that a mixin's action method matches that declared (typically "act"), we find that the contributed action's method - ie "recentCommands" - falls foul of this.

      I don't think that the metamodel validation is at fault (though it might be useful to be able to disable) ... but it's clearly pretty weird for us to contribute actions to mixins.

      Attachments

        1. image-2023-05-26-17-49-55-922.png
          961 kB
          Daniel Keir Haywood

        Activity

          People

            hobrom Andi Huber
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: