Project

General

Profile

Feature #34745

Better handling when no key is passed to API middleware

Added by Jeremy Lenz 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
JavaScript stack
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
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.

Associated revisions

Revision d1da93b4 (diff)
Added by Jeremy Lenz 3 months ago

Fixes #34745 - Error on API actions if no key is passed (#9179)

History

#1 Updated by The Foreman Bot 3 months ago

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

#2 Updated by The Foreman Bot 3 months ago

  • Fixed in Releases 3.3.0 added

#3 Updated by Jeremy Lenz 3 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF