Project

General

Profile

Actions

Feature #34745

closed

Better handling when no key is passed to API middleware

Added by Jeremy Lenz over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
JavaScript stack
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

When API middleware receives an action payload with no `key`, it results in dispatching actions such as `undefined_REQUEST` and `undefined_SUCCESS`. This can cause lots of developer frustration. Should error instead so the developer knows what's going on.

Actions #1

Updated by The Foreman Bot over 2 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Jeremy Lenz
  • Pull request https://github.com/theforeman/foreman/pull/9179 added
Actions #2

Updated by The Foreman Bot over 2 years ago

  • Fixed in Releases 3.3.0 added
Actions #3

Updated by Jeremy Lenz over 2 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF