Feature #42479

Context dependant Package states

Added by Bastian Waidelich almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Won't have this time
Category:
Package
Target version:
-
Start date:
2012-10-29
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

It should be possible to (de)activate packages for certain contexts only.
Suggested PackageStates.php syntax:

return array (
  'packages' => 
  array (
    'Foo.Bar' => 
    array (
      'manifestPath' => '',
      'state' => 'inactive',
      'packagePath' => 'Application/Foo.Bar/',
      'classesPath' => 'Classes/',
    ),
    'Bar.Baz' => 
    array (
      'manifestPath' => '',
      'state' => 'active',
      'overriddenStateByContext' => array(
        'Production' => 'inactive',
      ),
      'packagePath' => 'Application/Bar.Baz/',
      'classesPath' => 'Classes/',
    ),
// ...


Related issues

Related to TYPO3.Flow - Bug #42520: Cache must be flushed globally for package state changesNew2012-10-30

Actions
#1

Updated by Bastian Waidelich almost 9 years ago

As discussed the PackageStates.php syntax should be rather like:

return array (
  'packages' => 
  array (
    'Foo.Bar' => 
    array (
      'manifestPath' => '',
      'state' => array(
        'default' => 'inactive',
      ),
      'packagePath' => 'Application/Foo.Bar/',
      'classesPath' => 'Classes/',
    ),
    'Bar.Baz' => 
    array (
      'manifestPath' => '',
      'state' => array(
        'default' => 'inactive',
        'Production' => 'active',
      ),
      'packagePath' => 'Application/Bar.Baz/',
      'classesPath' => 'Classes/',
    ),
// ...

The package:(de)activate commands need to be adjusted to accept a context flag:

./flow package:activate Foo.Bar --context Production
./flow package:deactivate Foo.Bar --context Production

#2

Updated by Gerrit Code Review almost 9 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16047

#3

Updated by Karsten Dambekalns almost 9 years ago

  • Target version changed from 2.0 beta 1 to 2.1
#4

Updated by Karsten Dambekalns over 8 years ago

  • Status changed from Under Review to New
#5

Updated by Bastian Waidelich over 8 years ago

  • Status changed from New to Closed
  • Priority changed from Should have to Won't have this time
  • Target version deleted (2.1)

Too old, too rusty, not important enough(?). Closing this for now

Also available in: Atom PDF