Project

General

Profile

Actions

Bug #4282

closed

User story #4293: Migrating from a Technique version to another one in a Directive is long and painful

Directive migration doesn't handle default values

Added by Dennis Cabooter over 10 years ago. Updated about 8 years ago.

Status:
Released
Priority:
2
Category:
Web - Config management
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

MOTD configuration technique forces useless option

The form contains some errors, please correct them.
'Where should this text be added in the MOTD' field must not be empty

It's useless here to tell if the text should be added at the beginning or end, since I already set "Enforce this MOTD only" to "Yes".


Related issues 1 (0 open1 closed)

Has duplicate Rudder - Bug #7871: Directive version migration should set default values if presentRejectedVincent MEMBRÉ2016-02-04Actions
Actions #1

Updated by Dennis Cabooter over 10 years ago

I fogot to say I'm talking about version 3.0 of the MOTD technique.

Actions #2

Updated by Matthieu CERDA over 10 years ago

  • Category set to Techniques
  • Status changed from New to 8
  • Assignee set to Matthieu CERDA
  • Priority changed from N/A to 4
  • Target version set to 2.6.10

Qualifying this. Thanks for reporting Dennis :)

Actions #3

Updated by Jonathan CLARKE over 10 years ago

  • Status changed from 8 to Discussion
  • Assignee changed from Matthieu CERDA to Dennis Cabooter

Dennis Cabooter wrote:

MOTD configuration technique forces useless option

[...]

It's useless here to tell if the text should be added at the beginning or end, since I already set "Enforce this MOTD only" to "Yes".

I am confused. This option is a boolean option (two choices), and there is a default value. How did you manage to have no values selected?

Did this happen while migrating from an older version, by any chance?

Actions #4

Updated by Jonathan CLARKE over 10 years ago

  • Assignee changed from Dennis Cabooter to François ARMAND

Jonathan CLARKE wrote:

Dennis Cabooter wrote:

MOTD configuration technique forces useless option

[...]

It's useless here to tell if the text should be added at the beginning or end, since I already set "Enforce this MOTD only" to "Yes".

I am confused. This option is a boolean option (two choices), and there is a default value. How did you manage to have no values selected?

Did this happen while migrating from an older version, by any chance?

Aha, I just tested myself (sorry, should have done that first, before asking you Dennis!) and this does indeed happen when migrating from an older version. In that case, the default value is not applied!

In my opinion, this is therefore not a Technique bug (we can't make a SELECT1 variable non mandatory, this doesn't make any sense).

François, over to you to decide how to handle this. I think we should change Directive version migation to honour default values, but highlight which variables are new to the user in the form, so it's easy for him/her to validate the default values.

Actions #5

Updated by Vincent MEMBRÉ over 10 years ago

  • Target version changed from 2.6.10 to 2.6.11
Actions #6

Updated by Jonathan CLARKE over 10 years ago

  • Subject changed from MOTD configuration technique forces useless option to Directive migration doesn't handle default values
  • Category changed from Techniques to Web - Config management
  • Priority changed from 4 to 2

Updating the subject to clarify.

François, what's your opinion here?

Actions #7

Updated by Vincent MEMBRÉ about 10 years ago

  • Target version changed from 2.6.11 to 2.6.12
Actions #8

Updated by Vincent MEMBRÉ about 10 years ago

  • Target version changed from 2.6.12 to 2.6.13
Actions #9

Updated by Vincent MEMBRÉ almost 10 years ago

  • Target version changed from 2.6.13 to 2.6.14
Actions #10

Updated by Jonathan CLARKE almost 10 years ago

  • Target version changed from 2.6.14 to 2.6.16
Actions #11

Updated by Jonathan CLARKE almost 10 years ago

  • Target version changed from 2.6.16 to 2.6.17
Actions #12

Updated by Nicolas PERRON over 9 years ago

  • Target version changed from 2.6.17 to 2.6.18
Actions #13

Updated by Matthieu CERDA over 9 years ago

  • Target version changed from 2.6.18 to 2.6.19
Actions #14

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.6.19 to 2.6.20
Actions #15

Updated by François ARMAND over 9 years ago

  • Target version changed from 2.6.20 to 2.10.9

Jonathan CLARKE wrote:

François, over to you to decide how to handle this. I think we should change Directive version migation to honour default values, but highlight which variables are new to the user in the form, so it's easy for him/her to validate the default values.

Yes, it's the only sane thing to do.

Actions #16

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 2.10.9 to 2.10.10
Actions #17

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 2.10.10 to 2.10.11
Actions #18

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 2.10.11 to 2.10.12
Actions #19

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 2.10.12 to 2.10.13
Actions #20

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 2.10.13 to 2.10.14
Actions #21

Updated by Vincent MEMBRÉ almost 9 years ago

  • Target version changed from 2.10.14 to 2.10.15
Actions #22

Updated by Vincent MEMBRÉ almost 9 years ago

  • Target version changed from 2.10.15 to 2.10.16
Actions #23

Updated by Nicolas CHARLES almost 9 years ago

  • Target version changed from 2.10.16 to 2.11.13

I also agree that during a version migration we should get default values for new values

Actions #24

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.13 to 2.11.14
Actions #25

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.14 to 2.11.15
Actions #26

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.15 to 2.11.16
Actions #27

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.16 to 2.11.17
Actions #28

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.17 to 2.11.18
Actions #29

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.18 to 2.11.19
Actions #30

Updated by François ARMAND about 8 years ago

  • Parent task set to #4293
Actions #31

Updated by Vincent MEMBRÉ about 8 years ago

  • Related to Bug #7871: Directive version migration should set default values if present added
Actions #32

Updated by Vincent MEMBRÉ about 8 years ago

  • Related to deleted (Bug #7871: Directive version migration should set default values if present)
Actions #33

Updated by Vincent MEMBRÉ about 8 years ago

  • Has duplicate Bug #7871: Directive version migration should set default values if present added
Actions #34

Updated by Jonathan CLARKE about 8 years ago

  • Translation missing: en.field_tag_list set to Quick and important
Actions #35

Updated by Vincent MEMBRÉ about 8 years ago

  • Status changed from Discussion to In progress
  • Assignee changed from François ARMAND to Vincent MEMBRÉ
Actions #36

Updated by Vincent MEMBRÉ about 8 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Vincent MEMBRÉ to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/1044
Actions #37

Updated by Vincent MEMBRÉ about 8 years ago

  • Status changed from Pending technical review to In progress
  • Assignee changed from François ARMAND to Vincent MEMBRÉ
Actions #38

Updated by Vincent MEMBRÉ about 8 years ago

  • Pull Request deleted (https://github.com/Normation/rudder/pull/1044)
Actions #39

Updated by Vincent MEMBRÉ about 8 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Vincent MEMBRÉ to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/1045
Actions #40

Updated by Vincent MEMBRÉ about 8 years ago

  • Pull Request deleted (https://github.com/Normation/rudder/pull/1045)
Actions #41

Updated by Vincent MEMBRÉ about 8 years ago

  • Pull Request set to https://github.com/Normation/rudder/pull/1046
Actions #42

Updated by Vincent MEMBRÉ about 8 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
Actions #43

Updated by Vincent MEMBRÉ about 8 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.11.19, 3.0.14, 3.1.8 and 3.2.1 which were released today.

Actions

Also available in: Atom PDF