apycot-moved #19307 Change cardinality between ProjectEnvironment/TestConfig [resolved]
I have several TestConfig entities which are all the same. I see no reason to not have the cardinality (**): use_environment = SubjectRelation( 'ProjectEnvironment', cardinality='1*', composite='object', description=_('project environment in which this test config should be launched'), constraints=[RQLUniqueConstraint('S name N, Y use_environment O, Y name N', 'Y')], inlined=True ) | |
priority | normal |
---|---|
type | enhancement |
done in | 2.0.0 |
load | 2.500 |
load left | 0.000 |
closed by | <not specified> |
Comments
-
2009/12/28 15:31
-
2010/01/13 08:45, written by sthenault
-
2010/01/13 08:42, written by sthenault
-
2010/01/19 13:47, written by sthenault
-
2010/01/19 16:18
add commentQuestion: why not merge TestConfig and TestGroupConfig ? Why are the differences except current cardinalities ?
because that's two different things. TestConfig are meant to be 'executable' while TestConfigGroup are not. TestConfigGroup only provides a small part of a whole test configuration, and I find it's simpler to have two different kind of entities rather than having to guess if it's a group or not latter.
that could make things simpler... But we've to take care to some places in the code where this single card is expected.
also currently TestConfig is used to hold test dependencies, so can't always be shared. Ludal's idea to move such information into the source would solve this.
And what about the dependency relations found in the forge ? They should be part of the issue.