Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-4050

Campaigner capabilities assignment refactoring

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Accepted
    • Icon: Should have Should have
    • 2.4
    • 1
    • Code Refactoring
    • Sprint #102, Sprint #103, Sprint #104

      Campaign capabilities assignments should be refactored.

      https://github.com/greenpeace/planet4-master-theme/blob/develop/classes/class-p4-post-campaign.php#L106-L118

       

      These run on every request that hits wordpress and make unnecessary queries to db (possibly only to redis).

      These should be moved in a theme activation hook, possibly with a base-fork composer script or post-deploy task

      Tasks

      • Create a post deploy task for adding the capabilities
      • Remind rawalker to remove the capabilities from the docker install
      • Create a tag for the default content after the post deploy has been run in default content environment

            kdiamant Kyriakos diamantis (Inactive)
            kdiamant Kyriakos diamantis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: