You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the defined filter categories are architecture, instance, job and repository (see code snippet below). Because they do not share any common prefix, even using just a single letter a, i, j or r is sufficient to uniquely specify a category. If filters with shared prefixes were defined, e.g., repository and request (common prefixes r or re), at least three characters were needed to uniquely identify a category.
When working with filters it should be verified if a filter in a command matches a single or multiple of these categories. If it matches more than one category, a response providing guidance should be generated and the command should be ignored. For example, if a command
bot: build re:2023.06
is sent to the bot, a response such as below could be generated
Filter category 're' in command 'bot: build re:2023.06' is ambiguous (matches categories 'repository' and 'request') - so, ignoring it. Please, add more letters to the category to uniquely chose one of the categories.
The text was updated successfully, but these errors were encountered:
Currently, the defined filter categories are
architecture
,instance
,job
andrepository
(see code snippet below). Because they do not share any common prefix, even using just a single lettera
,i
,j
orr
is sufficient to uniquely specify a category. If filters with shared prefixes were defined, e.g.,repository
andrequest
(common prefixesr
orre
), at least three characters were needed to uniquely identify a category.Code defining filter categories
eessi-bot-software-layer/tools/filter.py
Lines 20 to 24 in ef8613b
When working with filters it should be verified if a filter in a command matches a single or multiple of these categories. If it matches more than one category, a response providing guidance should be generated and the command should be ignored. For example, if a command
is sent to the bot, a response such as below could be generated
Filter category 're' in command 'bot: build re:2023.06' is ambiguous (matches categories 'repository' and 'request') - so, ignoring it. Please, add more letters to the category to uniquely chose one of the categories.
The text was updated successfully, but these errors were encountered: