Call it fields.generic in exports - it has the same meaning for merlin
code (any field that Merlin provides), less code the better.
Change-Id: Id2eb8fbfa477c014f6e6eebdd9fb0e4298bb029c
Create basic file structure and use common Django template for both
views. Also rework forms/YAML/Graph divs layout to make it more flexible.
Create draft version of 'Add Resource' panel for HotBuilder - with
resources filtering and a list of all available resources obtained
from server-side Heat API.
Change-Id: Ia2e4f8a63d85d8d5dd7cdd731cc4878836176070
This patch adds patched version of angular-ui/bootstrap lib.
We need to patch it because of typeahead - one of bootstrap
components. This component does not support
ngModelOptions="{getterSetter: true}", which we need for
barricade.js integration.
Angular-ui/bootstrap upstream bug:
https://github.com/angular-ui/bootstrap/issues/3823
Until this bug is not fixed in upstream version,
we need to use this patched version of library.
Change-Id: I30a5d52d3a638fa2d7ca110d8824682c3d205611
Common part of <labeled>, <panel> and <collapsible-group> is moved to
a separate <editable-title> directive.
Implements blueprint: composable-templates
Change-Id: If5f8da39aad0f4f3195e9af18e384de9f3ed2d75
The main goal of this change is to free the potential Merlin users
from the burden of writing their custom templates when it just
involves combining widgets into different levels of nesting. Writing
custom templates still remains obligatory when some additional
controls/rendering (not provided with built-in widgets) is needed,
e.g. YAQLField.
To ease the pain of laying out the DOM snippets not known in advance I
switched from conventional Bootstrap Grid system to the Flexgrid
package which reimplements Bootstrap Grid over CSS3 Flexbox module. It
provides all the existing grid features w/o the need to cancel
floating effects with div.clearfix and adds pretty vertical/horizontal
aligning options which are very useful in Merlin.
Besides templates refactoring the filters system was also
rewritten. Filter extractPanels() now accepts one required argument,
keyExtractor function which is used to calculate a numeric values for
every field of Barricade object recursively. The fields with the same
numeric values go to the same panel, so we could define the logic of
panel extraction separately for each application built on Merlin. For
the filters following on the pipeline extractPanels() provides .each()
method, which they should use for enumeration over the panel
contents. This way the panel implements the same interface as every
other Barricade container does.
Old extractRows() and extractItems() filters are removed, as well as
the necessity to embed positioning hints into the model. As of now
precise fields ordering is lost, but will be reimplemented with an
extractFields() upgrade (ability to pass a list of field keys is yet
to come, as well as the removal of 'index' hints).
Implements blueprint: composable-templates
Implements blueprint: decouple-ui-hints-and-models
Change-Id: I73f480034730099b33afec88cddf919a7bfc441b
Instead of explicitly copying all the linting rules between projects,
openstack now publishes a set of rules (much like hacking) that can
be included in projects that want to adhere by our standards. This
patch switches merlin to use this set of rules.
Note: The rules in eslint-config-openstack are a verbatim copy
of what's currently in use in Horizon. Future versions will likely start
activating rules flagged as "TODO", however you can avoid build
instability by avoiding the use of fuzzy version matching in
package.json (which this patch does).
Also, I had to bump down the version of eslint in this patch, because
there was an explicit version conflict. Once we get to the point
of synchronizing dependencies, we'll be able to manage this from a
central location.
Change-Id: I5fa569e314d0b7f936b750e4845295debe5420a8
This patch adds FAQ and glossary
to the readme.md file.
Also this patch adds documentation
for Merlin directives.
Also this patch grunt task for generation
html from markdown.
To run this task run 'grunt md' from the
Merlin directory.
Change-Id: Ifd98fe4d9fa61bf5b7bbd71361763caa93e7ed3e
This patch applies the same linting rules currently in use by Horizon,
to the Merlin Project. Note that this patch exposes about 52 linting
errors, which the merlin team will need to address.
Change-Id: I725159a4b285a3bf731a4ad61da270f7894328c2
Provide a convenience fields.linkedcollection model to handle common
use-case of using @ref in a Mistral WB. Cover it with unit-tests as
well all scenarios of using fields.linkedcollection in MIstral WB.
Change-Id: I97a61262db4cc521b5c230667a49b99701318f3f
Closes-Bug: #1467514
Now all standard actions are put into top-level
Barricade object in WB controller and then Base field
just fetches id-s from them (and we use them same
standardActions top-level property for resetting a
'Base Input' field with a list of keys corresponding
to a specific standardAction.
Also new unit-tests (for filters and for dictionary
Merlin model) are added.
Change-Id: Ieb6e9330db8fbeb83e4f0f2a64611e1b6b31006c
Closes-Bug: #1467511
This adds capturing and executing tests in the Firefox browser. It also
adds the use of the jasmine-jquery framework to permit easier detection
of DOM elements in a rendered directive, as the present method does not
play well with Firefox' tendency to randomly reorder attribute positions.
Testing with Firefox is already supported in infra.
Change-Id: Ifc81e1b243975536ee40e627c1e4a164855fe85c
This adds capturing and executing tests in the Chromium browser.
It is already supported in infra.
Change-Id: I4d18da18f9b93dc057cbe71667c5871e8210c50d
Fuzzy dependencies tend to be a little brittle, as breaking changes
could be introduced that engineers are not aware of. This locks
down the versions used in this project's npm dependencies. (The
bower dependencies didn't need them).
Change-Id: I5bacb62a724b803926aa16859e536b15a74d40c1
This is in anticipation of moving this project to using
the javascript-jobs group, rather than explicitly declaring jobs.
Change-Id: I2f77f92745849f742290a3877fe78cc2e39b13b9
Pull the list of existing Workflows or Actions using the @ref facility
of Barricade.
Closes-bug: #1446228
Change-Id: I0d2dbbe2735104e86cc22507c5f66793294c5b0b
Make it work together with validation machinery in Barricade and both
interact with standard classes in Angular. If the value is invalid
according to @constraints check, it's not propagated into the YAML
(still not true for the requred fields, has to be fixed on Barricade
side).
Change-Id: I22efce07b75aa2b55b65d3bfaab0d033fa1f0096
This enables the `npm run test-unit` command, which may be used
inside of OpenStack's infra to trigger the NPM build chain. It
also binds `bower install` to the postinstall hook, which allows
us to install all dependencies (npm, bower) with one command.
Change-Id: Ia487e8d21f18f9ac44fc14da2011ab60ef6d5a4f
Store the workbooks being edited inside sqlite database of Horizon
django app. Now it's possible to:
* create a workbook;
* see it in the list of workbooks;
* edit it;
* delete it.
To use the models.py DATABASES variable in openstack_dashboard
settings needs to be set at least to sqlite3.
Change-Id: I9d4c013470e0fc13ef65484c8f6fae69cdad0a05
Implements: blueprint mistral-server-integration