Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-1697

Allow plugins to register the same plugin action more than once

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 4.1.0-b1
    • Component/s: Plugins
    • Labels:
      None

      Description

      A plugin can define actions via ::getActions, however, it is limited to only allowing a specific action to be defined once per plugin due to the structure of the primary key set on the `plugin_actions` table.

      For example, a plugin cannot currently define multiple primary navigation elements (e.g. to the "nav_primary_staff" action) because of this limitation.

      We should consider changing the primary key for `plugin_actions` to an ID or including the URI in it. Functionality has to be updated to support this change, so some methods will probably be deprecated because of the update.

      See http://www.blesta.com/forums/index.php?/topic/3619-primary-key-in-plugin-actions/

        Activity

        tyson Tyson Phillips (Inactive) created issue -
        tyson Tyson Phillips (Inactive) made changes -
        Field Original Value New Value
        Fix Version/s Short Term [ 10800 ]
        tyson Tyson Phillips (Inactive) made changes -
        Description A plugin can define actions via ::getActions, however, it is limited to only allowing a specific action to be defined once per plugin due to the structure of the primary key set on the `plugin_actions` table.

        For example, a plugin cannot currently define multiple primary navigation elements (e.g. to the "nav_primary_staff" action) because of this limitation.

        See http://www.blesta.com/forums/index.php?/topic/3619-primary-key-in-plugin-actions/
        A plugin can define actions via ::getActions, however, it is limited to only allowing a specific action to be defined once per plugin due to the structure of the primary key set on the `plugin_actions` table.

        For example, a plugin cannot currently define multiple primary navigation elements (e.g. to the "nav_primary_staff" action) because of this limitation.

        We should consider changing the primary key for `plugin_actions` to an ID or including the URI in it.

        See http://www.blesta.com/forums/index.php?/topic/3619-primary-key-in-plugin-actions/
        tyson Tyson Phillips (Inactive) made changes -
        Description A plugin can define actions via ::getActions, however, it is limited to only allowing a specific action to be defined once per plugin due to the structure of the primary key set on the `plugin_actions` table.

        For example, a plugin cannot currently define multiple primary navigation elements (e.g. to the "nav_primary_staff" action) because of this limitation.

        We should consider changing the primary key for `plugin_actions` to an ID or including the URI in it.

        See http://www.blesta.com/forums/index.php?/topic/3619-primary-key-in-plugin-actions/
        A plugin can define actions via ::getActions, however, it is limited to only allowing a specific action to be defined once per plugin due to the structure of the primary key set on the `plugin_actions` table.

        For example, a plugin cannot currently define multiple primary navigation elements (e.g. to the "nav_primary_staff" action) because of this limitation.

        We should consider changing the primary key for `plugin_actions` to an ID or including the URI in it. Functionality has to be updated to support this change, so some methods will probably be deprecated because of the update.

        See http://www.blesta.com/forums/index.php?/topic/3619-primary-key-in-plugin-actions/
        tyson Tyson Phillips (Inactive) made changes -
        Story Points 5
        tyson Tyson Phillips (Inactive) made changes -
        Rank Ranked higher
        tyson Tyson Phillips (Inactive) made changes -
        Sprint 4.1.0 Sprint 4 [ 41 ]
        tyson Tyson Phillips (Inactive) made changes -
        Rank Ranked lower
        tyson Tyson Phillips (Inactive) made changes -
        Assignee Cody Phillips [ cody ]
        tyson Tyson Phillips (Inactive) made changes -
        Assignee Tyson Phillips [ tyson ]
        tyson Tyson Phillips (Inactive) made changes -
        Fix Version/s 4.1.0 [ 11007 ]
        Fix Version/s Short Term [ 10800 ]
        Automated transition triggered when Tyson Phillips (Inactive) created a branch in Stash -
        Status Open [ 1 ] In Progress [ 3 ]
        Automated transition triggered when Tyson Phillips (Inactive) created pull request #271 in Stash -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        Automated transition triggered when Tyson Phillips (Inactive) merged pull request #271 in Stash -
        Status In Review [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            tyson Tyson Phillips (Inactive)
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              17/Jul/17

              Agile