Project

General

Profile

Bug #24235

Discovery rules should automatically pick the next available priority if not specified.

Added by roman plevka 12 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Discovery plugin
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

apidoc says the dsicovery_rule is an optional parameter:

discovery_rule[priority]
optional , nil allowed

-however, foreman automatically puts 0 as a priority which causes conflicts on multiple POST requests with no priority specified.

I think it would be nice if foreman automatically chose (or suggested for UI dialog) the next available priority.

Associated revisions

Revision 6f777512 (diff)
Added by Marek Hulán 12 months ago

Fixes #24235 - autosuggest rule priority

History

#1 Updated by The Foreman Bot 12 months ago

  • Assignee set to Marek Hulán
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_discovery/pull/445 added

#2 Updated by The Foreman Bot 12 months ago

  • Pull request https://github.com/theforeman/foreman_discovery/pull/446 added

#3 Updated by Jan Hutař 12 months ago

Bug reported as https://bugzilla.redhat.com/show_bug.cgi?id=1600621 - for some reason, I can not add it as "Bugzilla link" - it keeps saying me "Bugzilla link is invalid".

#4 Updated by Lukas Zapletal 12 months ago

  • Target version set to Discovery Plugin 12.0.2
  • Fixed in Releases Discovery Plugin 12.0.2 added
  • Pull request deleted (https://github.com/theforeman/foreman_discovery/pull/445)

I am aligning this bug into 12.0.2 as I think it is important one.

#5 Updated by Marek Hulán 12 months ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

#6 Updated by Lukas Zapletal 12 months ago

  • Bugzilla link set to 1600621

Jan, you need to enter just "1600621" into the RM field.

Also available in: Atom PDF