Feature #42479

Context dependant Package states

Added by Bastian Waidelich almost 3 years ago. Updated about 2 years ago.

Status:Closed Start date:2012-10-29
Priority:Won't have this time Due date:
Assigned To:Bastian Waidelich % Done:

0%

Category:Package
Target version:-
PHP Version: Complexity:
Has patch:No

Description

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

 1return array (
 2  'packages' => 
 3  array (
 4    'Foo.Bar' => 
 5    array (
 6      'manifestPath' => '',
 7      'state' => 'inactive',
 8      'packagePath' => 'Application/Foo.Bar/',
 9      'classesPath' => 'Classes/',
10    ),
11    'Bar.Baz' => 
12    array (
13      'manifestPath' => '',
14      'state' => 'active',
15      'overriddenStateByContext' => array(
16        'Production' => 'inactive',
17      ),
18      'packagePath' => 'Application/Bar.Baz/',
19      'classesPath' => 'Classes/',
20    ),
21// ...


Related issues

related to TYPO3.Flow - Bug #42520: Cache must be flushed globally for package state changes New 2012-10-30

History

#1 Updated by Bastian Waidelich almost 3 years ago

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

 1return array (
 2  'packages' => 
 3  array (
 4    'Foo.Bar' => 
 5    array (
 6      'manifestPath' => '',
 7      'state' => array(
 8        'default' => 'inactive',
 9      ),
10      'packagePath' => 'Application/Foo.Bar/',
11      'classesPath' => 'Classes/',
12    ),
13    'Bar.Baz' => 
14    array (
15      'manifestPath' => '',
16      'state' => array(
17        'default' => 'inactive',
18        'Production' => 'active',
19      ),
20      'packagePath' => 'Application/Bar.Baz/',
21      'classesPath' => 'Classes/',
22    ),
23// ...

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 3 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 over 2 years ago

  • Target version changed from 2.0 beta 1 to 2.1

#4 Updated by Karsten Dambekalns over 2 years ago

  • Status changed from Under Review to New

#5 Updated by Bastian Waidelich about 2 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