Commit Graph

9 Commits

Author SHA1 Message Date
Jiri Tomasek 2268b054b2 Refactor Register nodes dialog to use redux-form
* RegisterNodesDialog now connects to registerNodesForm and uses selectors
  action creators to access form state
* RegisterNodesForm uses redux-form and lists node forms as fieldArray
* Adds Horizontal field components to use with redux-form
* Uploading nodes from file is extracted into separate component
* Uses redux-form-validators to provide validations for fields
* Updates DriverFields components to be used with redux-form
* Adds Fieldset component
* Changes nodes registration logic:
  * Function for handling form submit replaces thunk action to simplify
    work with redux-form as it can return Promise which redux-form expects
  * validateNodes Mistral action is called explicitly to act as a standalone
    server side validation
  * When register nodes workflow successfully starts, form is reset and app
    redirects to nodes page where registration continues
  * Logic is prepared to work on individual nodes which will be introduced in
    subsequent patch

Implements: blueprint ui-redux-form-migration
Change-Id: I2d64f95bfbde47b89824a102fa51034db5869cdd
2017-11-15 10:27:59 +01:00
Honza Pokorny 04a7e70dd3 Add license headers to all js and less files
The Apache 2.0 license states that "To apply the Apache License to your
work, attach the following boilerplate notice".  Furthermore, it's the
standard practice within OpenStack.

Change-Id: I5ab73bc2b6065ea5943b3580bf60a9517dded24f
2017-05-16 18:21:31 +02:00
Jiri Tomasek 2b74192998 Fix nodes registration
* Don't include uuid in nodes registration
* Add IPMI port to driver fields

Closes-Bug: 1689507
Closes-Bug: 1688543
Change-Id: I35df26175aa3fe44970420d8e1f0936fc1005337
2017-05-15 13:58:34 +02:00
Honza Pokorny 0567f65929 Use prettier for linting
Run the code through eslint and prettier.  Eslint checks structural
things (e.g. console.log), and prettier checks stylistic things.

The "npm run lint" script will fail if your code isn't properly
formatted with prettier.

You can use "npm run prettier" to format your code.

Change-Id: Ie44e17d29e59cb4e3089ade2fb2b20f8213b5853
2017-05-12 11:47:54 -03:00
Jiri Tomasek 165ef102c0 Use prop-types lib to import PropTypes
Partial-Bug: 1686785
Change-Id: Ie45d54653fe206cfc575d9f3c842144e45adaf93
2017-05-12 10:48:07 +02:00
Jiri Tomasek 64f0cdacfc Import PropTypes separately from React
This change makes the transition to standalone prop-types
package smoother

Change-Id: I4dec7a3fa6482e1cf49270954af2e939b07221c3
2017-04-26 17:22:16 +02:00
Julie Pichon 4a910237a6 Add i18n to node driver fields
Change-Id: I6371a876deec1eb695c584aea545ab42e011be64
Partial-Bug: #1662964
2017-02-13 10:31:48 +00:00
Ana Krivokapic af04274af2 Allow user to specify FQDN instead of IP address when registering nodes
Change-Id: I6a42fc102fdb1867f54ea149938a51a43cf38b18
Closes-bug: 1609914
2016-11-08 13:52:25 +01:00
Ana Krivokapic 84ea9df15d Refactor *DriverFields components
Reduce code duplication between PXEAndSSHDriverFields and
PXEAndSSHDriverFields by introducing a base component for them.

Change-Id: Idede394f7b6d5eeb1c49e9c2b0b8677f9c78c60c
2016-11-03 13:31:39 +01:00