14096 Commits

Author SHA1 Message Date
Ameed Ashour
e5dae9b353 Network Topology graph "twitches"
the graph is redrawn which causes visual glitching.
Depending on the graph complexity.

my patch resolved this issue so I compare between previous
data and received data, if that changed it will redrawn,
otherwise it keeps running.

Change-Id: I813dfb329f46cda9afacce89c9a8b84eb2827115
Closes-Bug: #1716834
2018-04-15 03:05:27 +00:00
OpenStack Proposal Bot
7f3fc39602 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ia943bb61c02c31192cef5fcfea98aac3528bb626
2018-04-14 07:35:15 +00:00
Zuul
fe811563ba Merge "Sort nova availability zones by name" 2018-04-13 14:03:34 +00:00
Zuul
3c4e8a78ff Merge "A description can now be added to a security rule" 2018-04-13 13:33:22 +00:00
Zuul
13b27855c6 Merge "Redirect back if deleting from image details" 2018-04-13 13:23:37 +00:00
Zuul
ff672a67c1 Merge "Add links to trunk parent and subports" 2018-04-13 13:22:05 +00:00
Zuul
2c3ed76cb8 Merge "Fix navigation from admin/trunks" 2018-04-13 13:16:22 +00:00
Lajos Katona
3c55bcea40 Add links to trunk parent and subports
Add link to the parent port's detail page on the table view of trunks
panel, and add link to the subport's details page from the trunk details
page.

Closes-Bug: #1746082
Change-Id: I66fc525e02a8b4c5c77ed2e663c644e8e2e1a805
2018-04-12 08:37:47 +00:00
Lajos Katona
34732d262f Redirect back if deleting from image details
If deleting from the image details view, the user stuck on an empty
page, instead of redirecting back to the list of remaining images.

Change-Id: I9a2f5b7325e037c4b57cd01afc2bbcfca51e6e83
Closes-Bug: #1704118
2018-04-12 08:34:24 +00:00
Lajos Katona
3af1d420ff Fix navigation from admin/trunks
In case of the details of the trunk was reached from admin/trunks add
?nav=/admin/trunks to fix the navigation back to /admin/trunks.

Change-Id: Ie80484814f471a6f939991d1c93ffc7e895102bd
2018-04-12 10:25:37 +02:00
OpenStack Proposal Bot
d2963fc6e4 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I4b4d781c27c4008dc3066f289ab665108a425e83
2018-04-12 07:20:39 +00:00
Sam Morrison
0887722914 Sort nova availability zones by name
Change-Id: I1e9a37e3dcf5040aa59e4efa65115f75819ef06e
Closes-Bug: #1762880
2018-04-12 11:59:44 +10:00
Zuul
07237c1fc6 Merge "Exclude nova-network quotas properly" 2018-04-11 16:38:06 +00:00
Zuul
89ee02a090 Merge "Modularize workflow action in quota defaults" 2018-04-11 15:45:42 +00:00
Zuul
ee6d2ab3fd Merge "Fix unauthorized exception when using member user to access angular users panel" 2018-04-11 15:11:01 +00:00
Akihiro Motoki
986e90248b Exclude nova-network quotas properly
openstack_dashboard.api.nova.QuotaSet was introduced to exclude
nova-network properly, but it did not work because QuotaSet does
not support 'in' and 'del' operations.
This commit fixes the logic and add a unit test.

Closes-Bug: #1743589
Change-Id: I8c3bfe985cccdf53fd555bf185c293806c14b6f6
2018-04-12 00:09:17 +09:00
Akihiro Motoki
f61b3fd03d Modularize workflow action in quota defaults
This is a preparation to support quotas for horizon plugins.

Part of blueprint horizon-plugin-tab-for-info-and-quotas
Change-Id: I11f9bfb6edae205f452e2619b33fa52254dcf37a
2018-04-11 14:23:23 +00:00
OpenStack Proposal Bot
08e4cf5049 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I82d4444ba9a30fb03413b4b97847d00e2f98e380
2018-04-11 07:22:23 +00:00
Akihiro Motoki
f545272f12 Fix pep8 errors
Recent pep8 upgrade and corresponding pycodestyle update break
horizon pep8 job due to the new rules.

This commit fixes the following new errors:
- E226 missing whitespace around arithmetic operator
- E241 multiple spaces after ','
- E731 do not assign a lambda expression, use a def

The following errors are added to the ignore list
as there are many errors:
- E402 module level import not at top of file
- W503 line break before binary operator

Change-Id: I3478b0684175d2604bbcc1d89cbfca298b97f1e1
2018-04-11 00:34:21 +09:00
Zuul
b4eb6b992e Merge "Ensure to show security groups only from current project" 2018-04-10 12:33:45 +00:00
Zuul
e140e0b0b5 Merge "Remove remaining mox usage in tests converted to mock" 2018-04-10 11:14:06 +00:00
Zuul
6dae1288ca Merge "Simplify APIMockTestCase" 2018-04-10 11:14:04 +00:00
Zuul
ebd5649ab4 Merge "Use items per page setting on Angular tables" 2018-04-09 17:33:48 +00:00
Zuul
fde449834e Merge "Avoid popup blocker after key-pair creation" 2018-04-09 16:15:41 +00:00
Samuel12321
6f37943af9 A description can now be added to a security rule
This patch fixes Bug #1742332 (Security Rule Description neither
editable nor shown). I have added the option for a description
to be added to a security rule which will show the description
on the related table.

Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: Ie723deb412977ae460c1e897f5d71fc8dbb7a853
Closes-Bug: #1742332
2018-04-10 00:48:30 +09:00
Zuul
4cdd6f0ed1 Merge "Imported Translations from Zanata" 2018-04-09 12:12:46 +00:00
Cindy Lu
c58e5b8779 Use items per page setting on Angular tables
Make NG table get page size from the items per page setting
instead of a fixed number which is 20.

The styling of the pagination control is the same as the
django table with the prev and next links.

Co-Authored-By: Liuqing Jing <jing.liuqing@99cloud.net>
Co-Authored-By: Vladislav Kuzmin <vkuzmin@mirantis.com>

Change-Id: Ie5307e335ca3251a342d370e7277fe16067f7949
Closes-Bug: #1647677
2018-04-09 12:38:06 +04:00
Zuul
dd6f79e3d1 Merge "Make tests output more verbose" 2018-04-09 07:06:59 +00:00
OpenStack Proposal Bot
061f4b08cc Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Iee5da0eb017270ba087496ff154da058dd2425da
2018-04-09 06:48:54 +00:00
Zuul
9a0b11ee26 Merge "Pass whole selected entity to deleteEntity callback" 2018-04-08 15:18:19 +00:00
OpenStack Proposal Bot
f783b4e8af Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ifa275f223176b29aad5e487d62ad04054ba37fc1
2018-04-08 06:46:25 +00:00
Akihiro Motoki
3051dee604 Ensure to show security groups only from current project
Previously when logging in as a user with admin role,
if we visit "Edit Security Group" action of the instance table,
security groups from all projects are listed.

Change-Id: I71ff940434ef8dc146e934dc833c4d26829930c0
Closes-Bug: #1750140
2018-04-08 15:31:08 +09:00
Akihiro Motoki
4b304f8b20 Remove remaining mox usage in tests converted to mock
Some mox dependencies were remaining in the unit tests
converted into mock.

Part of blueprint mock-framework-in-unit-tests
Change-Id: I768c645b8d11fd75dbbcabc7ab8170b6b1074664
Signed-off-by: Akihiro Motoki <amotoki@gmail.com>
2018-04-08 07:58:50 +09:00
Akihiro Motoki
7b7ace0aeb Simplify APIMockTestCase
There is no need to use stub_*client() because we can simply use
mock.patch(.object). This commit removed stub_*client().

Part of blueprint mock-framework-in-unit-tests
Change-Id: I1563720e3fc636f7b042d030baf59e0b1a0e9bf0
Signed-off-by: Akihiro Motoki <amotoki@gmail.com>
2018-04-08 07:58:50 +09:00
Zuul
7c09346e08 Merge "Improve mocking in REST API tests (test_network)" 2018-04-06 10:08:07 +00:00
Zuul
368d942a57 Merge "Update lower-constraints to requirements.txt" 2018-04-06 10:08:05 +00:00
Zuul
febb96507b Merge "Reproduce navigations on refreshing ngdetails view" 2018-04-06 10:02:39 +00:00
Frank Kloeker
886852f13f Rename pull_catalog args from version to branch
It was a very bad idea to name the argument to fetch a specific
version from Zanata as 'version'.

At the moment I get this error mesage:
argparse.ArgumentError: argument --version: conflicting option string(s): --version

Change-Id: I662a218a2713fcefd3a624a4cc2a907a7fc1434b
2018-04-05 14:54:28 +02:00
Ivan Kolodyazhny
0c39d76e8a Make tests output more verbose
Added '--verbosity 2' to print list of executed and skipped tests to the
console.

Related blueprint: improve-horizon-testing
Change-Id: Ibdc4016bb1f8b7145a78b0f0bfc693741b6a123e
2018-04-05 10:44:05 +00:00
Zuul
91e659f172 Merge "[doc] Add the missing 'API Access' for project tab" 2018-04-04 10:46:19 +00:00
OpenStack Proposal Bot
c1eab3d4a1 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I127d460426f01fa9bdab9c181623e89dbf41c0bf
2018-04-04 07:09:53 +00:00
Shu Muto
d0beeb7e14 Pass whole selected entity to deleteEntity callback
For now, delete-modal service passes only ID to deleteEntity callback.
Some plugins need other parameters to delete entity.
So this patch passes whole selected entity to callback as second argument.

Change-Id: I395470110a5f03ebb08a043ca433b16b999dad3f
Needed-By: Ic5aba9b2e953cde7950ae7656cd5a3fee3f4a55c
Closes-Bug: #1761074
2018-04-04 15:50:33 +09:00
Zuul
c59343891f Merge "Speed up quotas fetching using futurist library" 2018-04-03 13:40:30 +00:00
Zuul
28251b789e Merge "Support description for instance update/rebuild" 2018-04-03 12:33:28 +00:00
Zuul
9aa69506df Merge "Drop FWaaS related SCSS entries" 2018-04-03 12:26:55 +00:00
OpenStack Proposal Bot
9ca9b5cd81 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I04685a81d9ddd312d33d0931a4b3ec4857a77b2d
2018-04-01 07:07:03 +00:00
Akihiro Motoki
f343212805 Improve mocking in REST API tests (test_network)
The current REST API tests have a lot of rooms to be improved like:
- mocking the whole module of the API wrapper

This commit improves test/unit/api/rest/test_network.py.

Change-Id: I1a1e6b69ac9334b05fc88b4568e823ae490a0b0b
Partial-Bug: #1752917
2018-03-31 23:23:25 +09:00
wei.ying
dc9a6a33ea Fix unauthorized exception when using member user to access angular users panel
When a member role user go to angular users panel, it will be
raised unauthorized exception since the user has no access to
get users list. It should be add a policy check mechanism at
the panel.

Change-Id: I9cfa1aeab27aca1631322d8c0b3e6a7a930d9cfe
Closes-Bug: #1694127
2018-03-31 18:57:58 +08:00
Zuul
946ecea7b7 Merge "Cleanup Plugin Registry" 2018-03-31 02:29:08 +00:00
Ivan Kolodyazhny
c3d6036f8a Cleanup Plugin Registry
This patch removes unsupported plugins and changes links from http to
https.

Change-Id: Ic2532f73dba64605bc646f88ed088fbcedc6e44a
2018-03-30 23:41:58 +03:00