Refactor #17571

The foreman tools js module could be refactored to take advantage of some ES6 features

Added by Tomer Brisker 7 months ago. Updated 7 months ago.

Status:Closed
Priority:Normal
Assigned To:Tomer Brisker
Category:Web Interface
Target version:Team Daniel - iteration 6
Difficulty: Bugzilla link:
Found in release: Pull request:https://github.com/theforeman/foreman/pull/4081
Story points-
Velocity based estimate-
Release1.14.0Release relationshipAuto

Associated revisions

Revision 9a082a8b
Added by Tomer Brisker 7 months ago

Fixes #17571 - Refactor tfm.tools to use ES6 syntax

This also extracts the inherited user roles function to a sepereate
module, adds tests and refactors it. These changes also fix two other
issues:
1. a possible stored XSS in usergroup names,
2. tooltips on tables were broken (due to => syntax not changing `this`)

History

#1 Updated by The Foreman Bot 7 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/4081 added

#2 Updated by Anonymous 7 months ago

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

#3 Updated by Dominic Cleal 7 months ago

  • Release set to 1.14.0

#4 Updated by Daniel Lobato Garcia 7 months ago

  • Target version set to Team Daniel - iteration 6

Also available in: Atom PDF