Project

General

Profile

Actions

Architecture #9440

closed

Directives are not correctly grouped in nodeconfiguration table

Added by Nicolas CHARLES over 7 years ago. Updated almost 4 years ago.

Status:
Rejected
Priority:
1
Assignee:
-
Category:
Web - Compliance & node report
Effort required:
Name check:
Fix check:
Regression:

Description

The configuration json contains:

,{                                                                +
                                      |              |                            |         |       "directiveId":"common-root",                                     +
                                      |              |                            |         |       "isSystem":true,                                                 +
                                      |              |                            |         |       "components":[{                                                  +
                                      |              |                            |         |         "componentName":"Log system for reports",                      +
                                      |              |                            |         |         "cardinality":1,                                               +
                                      |              |                            |         |         "values":["None"],                                             +
                                      |              |                            |         |         "unexpanded":["None"]                                          +
                                      |              |                            |         |       }]                                                               +
                                      |              |                            |         |     },{                                                                +
                                      |              |                            |         |       "directiveId":"common-root",                                     +
                                      |              |                            |         |       "isSystem":true,                                                 +
                                      |              |                            |         |       "components":[{                                                  +
                                      |              |                            |         |         "componentName":"CRON Daemon",                                 +
                                      |              |                            |         |         "cardinality":1,                                               +
                                      |              |                            |         |         "values":["None"],                                             +
                                      |              |                            |         |         "unexpanded":["None"]                                          +
                                      |              |                            |         |       }]                                                               +
                                      |              |                            |         |     },{                                                                +
                                      |              |                            |         |       "directiveId":"common-root",                                     +
                                      |              |                            |         |       "isSystem":true,                                                 +
                                      |              |                            |         |       "components":[{                                                  +
                                      |              |                            |         |         "componentName":"Binaries update",                             +
                                      |              |                            |         |         "cardinality":1,                                               +
                                      |              |                            |         |         "values":["None"],                                             +
                                      |              |                            |         |         "unexpanded":["None"]                                          +
                                      |              |                            |         |       }]                        

but i expected all components to be inthe same directive

Actions #1

Updated by François ARMAND over 7 years ago

  • Status changed from New to In progress
Actions #2

Updated by François ARMAND over 7 years ago

In fact the problem is that the source object has several time the same directive. There is a missing "group by" somewhere, and the invariant about that grouping is not enforced.

But on the other hand, that is not really a problem per se, because having several time the same directive is not necessary anywhere (but it is not what is expected by user, like see here).

I can do several things, not sure about the correct one right now:

- enforce at serialisation time that things are correctly grouped together
- enforce in our model that each stage is grouped by the identicator of the stage (ruleId, directiveId, componentName, componentValue). We also loose the hability the order rules/directives/etc. I believe this is ok.

It seems "better", but significantly complexify the domain model.

Actions #3

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 318 to 4.0.0~rc2
Actions #4

Updated by François ARMAND over 7 years ago

  • Target version changed from 4.0.0~rc2 to 321
Actions #5

Updated by Alexis Mousset over 7 years ago

  • Target version changed from 321 to 4.0.1
Actions #6

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 4.0.1 to 4.0.2
Actions #7

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 4.0.2 to 4.0.3
Actions #8

Updated by Alexis Mousset about 7 years ago

  • Translation missing: en.field_tag_list deleted (Blocking 4.0)

This is not blocking.

Actions #9

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 4.0.3 to 4.0.4
Actions #10

Updated by François ARMAND about 7 years ago

  • Tracker changed from Bug to Architecture
  • Status changed from In progress to New
  • Assignee deleted (François ARMAND)
Actions #11

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 4.0.4 to 4.0.5
Actions #12

Updated by Vincent MEMBRÉ almost 7 years ago

  • Target version changed from 4.0.5 to 4.0.6
Actions #13

Updated by Vincent MEMBRÉ almost 7 years ago

  • Target version changed from 4.0.6 to 4.0.7
Actions #14

Updated by Vincent MEMBRÉ almost 7 years ago

  • Target version changed from 4.0.7 to 357
Actions #15

Updated by Alexis Mousset almost 7 years ago

  • Target version changed from 357 to 4.1.6
Actions #16

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.1.6 to 4.1.7
Actions #17

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.1.7 to 4.1.8
Actions #18

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.1.8 to 4.1.9
Actions #19

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.1.9 to 4.1.10
Actions #20

Updated by Benoît PECCATTE about 6 years ago

  • Target version changed from 4.1.10 to Ideas (not version specific)
Actions #21

Updated by Nicolas CHARLES almost 4 years ago

  • Status changed from New to Rejected

this has been solved in the past
nodeconfigurations are a bit more compact now, in this respect

Actions

Also available in: Atom PDF