Project

General

Profile

Actions

User story #6368

closed

Methods named check_* should have an equivalent without reporting

Added by Benoît PECCATTE about 9 years ago. Updated 8 months ago.

Status:
Resolved
Priority:
N/A
Assignee:
-
Category:
Generic methods
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:
No

Description

Methods such as file_check_exists report on their result whereas we may not want to.
There are 2 use cases :
- we want the file to be present and we want the method to tell us if not
- we want to know wether the file is present or not and take an action based on this

The second case is a new methods.
We could name them does_* instead of check_*, for example file_does_exist


Related issues 1 (0 open1 closed)

Has duplicate Rudder - Architecture #8683: check_* methods output error messages when the result of a check is "no"ResolvedActions
Actions

Also available in: Atom PDF