Commit Graph

111 Commits

Author SHA1 Message Date
OpenDev Sysadmins 9741d1d5ca OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:50:47 +00:00
Jeremy Stanley 0bf504066f Update .gitreview for new namespace
Change-Id: I6e57f4ecde9d80a30755df13783194e5f7801bf1
2015-10-17 22:30:23 +00:00
Timur Sufiev d6e2842979 Remove 'type' attribute from <typed-field>
... because it's excessive and can be calculated from 'value' attribute.

Change-Id: Id56024027ee455518619f1ee846d0b0735d5210d
2015-08-05 10:12:42 +00:00
Timur Sufiev c25b7d8507 Use standard modelMixin instead of fields.wildcard
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
2015-08-05 10:12:31 +00:00
Timur Sufiev 950164bbc1 Remove obsolete 'group' mixin files and references
Change-Id: I8b58d1fac56df5b781e3b5bc5f924098fefa9a8c
2015-08-05 10:12:20 +00:00
Timur Sufiev b9e6ccb3ea Initial import of data schema from Rackspace HotBuilder
Change-Id: I9375ded596250634a139a11291ef2be1190904d6
2015-08-05 10:12:11 +00:00
Timur Sufiev 7fc50585be Start developing HOT Builder on Merlin
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
2015-08-05 10:12:03 +00:00
Jenkins 5ee471c930 Merge "Add patched version of angular-ui bootstrap lib" 2015-07-31 14:51:31 +00:00
Paul Karikh 56b360126a Add patched version of angular-ui bootstrap lib
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
2015-07-31 15:44:26 +03:00
Jenkins 97c5fd246b Merge "Rewrite <labeled> directive to render editable labels" 2015-07-30 21:23:29 +00:00
Jenkins ec9b892de4 Merge "Refactor templates to make them composable" 2015-07-30 21:23:25 +00:00
Timur Sufiev 7021718ab2 Rewrite <labeled> directive to render editable labels
Common part of <labeled>, <panel> and <collapsible-group> is moved to
a separate <editable-title> directive.

Implements blueprint: composable-templates

Change-Id: If5f8da39aad0f4f3195e9af18e384de9f3ed2d75
2015-07-30 12:06:01 +03:00
Timur Sufiev f605ff7b8c Refactor templates to make them composable
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
2015-07-30 12:06:01 +03:00
Jenkins 8fd73d4a3a Merge "Use eslint-config-openstack" 2015-07-27 21:22:37 +00:00
Timur Sufiev e17565a708 Change location of symlink to bower_components
Do so in order to use both js and css assets fetched with bower.

Change-Id: Id4a8fa8dc3cd0915b33ead24421c14155897939e
2015-07-22 12:51:52 +03:00
Michael Krotscheck 4018c61252 Use eslint-config-openstack
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
2015-07-15 13:51:32 -07:00
Timur Sufiev d82d48453f Add Mistral js files to linter and fix linting errors
As a consequence, change how the workbookCtrl controller is used (and
unit-tests for it).

Change-Id: I21514ac01baa81c5a760abd9e7d0f909d89617d6
2015-07-13 15:05:58 +03:00
Vlad Okhrimenko ac6336b5e2 Change code to satisfy new ESLint checks
Change-Id: I36926039fff61328626682f37eb229f58e27c928
2015-07-10 16:37:26 +03:00
Jenkins 6062444015 Merge "Added JS Linting via ESlint" 2015-07-06 20:02:47 +00:00
Jenkins f83bf54fa9 Merge "Add FAQ and glossary" 2015-07-06 12:26:59 +00:00
Paul Karikh bf942fef1c Add FAQ and glossary
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
2015-07-06 14:52:47 +03:00
Michael Krotscheck b890c88fc1 Added JS Linting via ESlint
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
2015-06-30 14:47:26 -07:00
Timur Sufiev a4e2892dc0 Rename unit-test files from *Spec.js to *.spec.js
Change-Id: I6cc067733cd2d7ee5e6a66f5a74cc207513be620
2015-06-26 20:26:27 +03:00
Timur Sufiev a5c1c308cf Decouple @enum and drop-down widget
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
2015-06-26 20:23:13 +03:00
Timur Sufiev 7ccf4f0dd3 Rewrite WB Action->Base to use @ref facility
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
2015-06-26 16:08:24 +00:00
Timur Sufiev d5d9321eca Fill Merlin filters unit-test suite with actual code
Co-Authored-By: Vlad Okhrimenko <vokhrimenko@mirantis.com>
Change-Id: I13969965f53214d618b3af08b60bf2e9ae773067
Implements: blueprint merlin-unittests
2015-06-26 15:48:56 +03:00
Jenkins 3164f4c4a6 Merge "Cover with tests remaining non-trivial utility functions" 2015-06-26 06:31:38 +00:00
Timur Sufiev 0e2d1c21f8 Cover with tests remaining non-trivial utility functions
Change-Id: I169d97f7dc34e62cb4c1f8f97afd29edb211a29d
Implements: blueprint merlin-unittests
2015-06-25 20:59:25 +03:00
Jenkins 381b42aeec Merge "Field 'version' has to be string" 2015-06-25 16:31:17 +00:00
Jenkins a08c69b0d2 Merge "Fix changing the key in dictionary widget" 2015-06-25 11:34:53 +00:00
Vlad Okhrimenko 9a65264c27 Field 'version' has to be string
Now 'version'-field is string

Change-Id: I3c1088cdd014e7ab531bbc0da47c51ab03757bec
Closes-bug: #1436396
2015-06-25 12:30:19 +03:00
Timur Sufiev df533b33c1 Fix changing the key in dictionary widget
Co-Authored-By: Vlad Okhrimenko <vokhrimenko@mirantis.com>
Closes-Bug: #1449450
Change-Id: I74db5ec953ba5d1b657c90ce9f7a4d8fc286b63f
2015-06-24 10:06:10 -07:00
Michael Krotscheck 4beaf29f6e Added test execution in Firefox.
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
2015-06-17 12:19:32 -07:00
Michael Krotscheck fc2f3628e4 Added test execution in Chromium.
This adds capturing and executing tests in the Chromium browser.
It is already supported in infra.

Change-Id: I4d18da18f9b93dc057cbe71667c5871e8210c50d
2015-06-16 12:06:36 -07:00
Michael Krotscheck 3148fc8903 Removed fuzzy dependencies.
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
2015-06-16 12:06:29 -07:00
Michael Krotscheck bc207adde8 Bound karma execution to `npm run test`
This is in anticipation of moving this project to using
the javascript-jobs group, rather than explicitly declaring jobs.

Change-Id: I2f77f92745849f742290a3877fe78cc2e39b13b9
2015-06-16 12:06:21 -07:00
Timur Sufiev bcc69f218d Restrict existing Action/Workflow to the existing ones
Pull the list of existing Workflows or Actions using the @ref facility
of Barricade.

Closes-bug: #1446228
Change-Id: I0d2dbbe2735104e86cc22507c5f66793294c5b0b
2015-06-16 17:17:47 +00:00
Jenkins 854304924f Merge "No need to use disableDefaultClickBehaviour" 2015-06-16 17:14:24 +00:00
Vlad Okhrimenko 7c09eb5fb5 No need to use disableDefaultClickBehaviour
removed `#` from `href-tag`. Fixed scroll to top.

Co-Authored-By: Timur Sufiev <tsufiev@mirantis.com>
Change-Id: I04bb343b0a4365c437d0f4625cb7a7c3ed7dc740
closes-bug: #1459342
closes-bug: #1448546
2015-06-15 18:24:30 +03:00
Timur Sufiev 30c615bf9b Remove explicit type from Task snippet in the YAML template
Change-Id: I467f505605e86de908915bf583a87269bbf528f6
Closes-Bug: #1449463
2015-06-12 10:39:07 -07:00
daniel-a-nguyen 515eaf0892 Added some minor fixes to documentation.
Change-Id: I3ec58804738f15da8b4342ac038a0275d03f1901
2015-06-06 16:14:27 -07:00
Jenkins f0023b100f Merge "Provide 'validatable-with' directive" 2015-06-03 17:33:57 +00:00
Timur Sufiev 2079195f7b Provide 'validatable-with' directive
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
2015-06-03 20:00:39 +03:00
Jenkins b6367982a5 Merge "Move auto-completion machinery into a separate directive" 2015-06-03 13:17:15 +00:00
Timur Sufiev 4669e42341 Move auto-completion machinery into a separate directive
Change-Id: Iba376d09ad00d2aa692e39084e6cfce987cf2541
2015-06-03 16:06:24 +03:00
Timur Sufiev 13bdf82d8d Well, the last fix to the deployment instructions :)
Change-Id: I250357d81e562a5fa398a0ff3ac0fe69fd0c79ce
2015-05-15 17:04:24 +03:00
Timur Sufiev 5dbf8b89e6 A small fix inside instructions about Merlin deployment
Change-Id: I764bfd23fd2c4c418016c94536b73524653a3235
2015-05-15 16:48:39 +03:00
Timur Sufiev 40da59b6b2 Update instructions about Merlin deployment
Change-Id: Ia09caf8d1013a153dd6200c9f75a0b1f36daeb46
2015-05-15 16:31:36 +03:00
Michael Krotscheck 54b30e5bab Added npm run test-unit to merlin's package.json file
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
2015-05-11 13:30:49 -07:00
Timur Sufiev d9f94958c2 Add stub api calls for Mistral server integration
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
2015-04-30 21:29:27 +03:00