Project

General

Profile

Actions

Bug #23000

closed

When changes messages are mandatory and saving a technique we have an error message about missing info but technique is saved

Added by Nicolas CHARLES 10 months ago. Updated 10 months ago.

Status:
Released
Priority:
N/A
Category:
Web - Technique editor
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
I hate Rudder for that
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Small
Priority:
152
Name check:
To do
Fix check:
Checked
Regression:
Yes

Description

I've set the "Make logs message mandatory" option in the Settings page, and when I want to update/save a technique, I get the following error

there are no prompt for a reason, and thus it's impossible to manage techniques

Happens in 7.3, may happen in earlier version

EDIT: the technique is correctly saved: the error message is not preventing that.


Files

clipboard-202307040941-0kik1.png (28.1 KB) clipboard-202307040941-0kik1.png Nicolas CHARLES, 2023-07-04 09:41

Related issues 1 (0 open1 closed)

Related to Rudder - Bug #22895: When adding a directive to a rule we cannot add event log anymoreResolvedRaphael GAUTHIERActions
Actions #1

Updated by François ARMAND 10 months ago

  • Priority changed from 128 to 152
  • Regression changed from No to Yes
Actions #2

Updated by François ARMAND 10 months ago

  • Status changed from New to In progress
  • Assignee set to François ARMAND
Actions #3

Updated by François ARMAND 10 months ago

The bug is also present in 7.2

Actions #4

Updated by François ARMAND 10 months ago

  • Target version changed from 7.3.4 to 7.2.9
Actions #5

Updated by François ARMAND 10 months ago

  • Subject changed from When changes messages are mandatory, we can't do any technique change anymore to When changes messages are mandatory and saving a technique we have an error message about missing info but technique is saved
  • Description updated (diff)

The problem is far worse from a dev point of view (and better from an user point of view): the technique is actually saved EVEN IF there is a message telling it is not.

Actions #6

Updated by François ARMAND 10 months ago

So, it's a can of worm:

- we now see the error that has always been there, but before we just didn't take care of it
- the error was hidden because we always exec the change code before checking for message, because we eagerly eval the change in place of making a function of it for lazy eval (because Box and not ZIO)
- the problem should be the same for creating, deleting a technique

The correct solution is to have a change pop-up.
The workaround for now will be to provide a useless reason for technique changes.

Actions #7

Updated by François ARMAND 10 months ago

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

Updated by François ARMAND 10 months ago

  • Related to Bug #22895: When adding a directive to a rule we cannot add event log anymore added
Actions #9

Updated by Anonymous 10 months ago

  • Status changed from Pending technical review to Pending release
Actions #10

Updated by Alexis Mousset 10 months ago

  • Fix check changed from To do to Checked
Actions #11

Updated by Vincent MEMBRÉ 10 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 7.2.9 and 7.3.4 which were released today.

Actions

Also available in: Atom PDF