horizon/openstack_dashboard/dashboards/project
Akihiro Motoki c9bb0e95ea Fix community image handling in launch instance form
Community images which are not owned by a focused project are not
included in the normal image list API (i.e., without specifying
"community" as visibility), so we need an extra call of the image
list API specifying "community" visibility in a filter.

It was originally fixed by [1] but was dropped in [2].
The main motivation of [2] is to address "Duplicates in a repeater
are not allowed" error in the JavaScript console.

The approach of [2] was to drop multiple glance API calls, but
the right solution would be to check duplicated images included
in both API calls. This situation with duplicated images happens
when a community image is owned by a focused project. In such case,
the community image is included in the responses of both API calls.

This commit adds a logic to check image IDs already processed.

[1] https://review.opendev.org/c/openstack/horizon/+/614688
[2] https://review.opendev.org/c/openstack/horizon/+/640762

Closes-Bug: #1914045
Related-Bug: #1779250
Related-Bug: #1818508

Change-Id: I2ed1b6064ddd6f62818d6112e98e5d5a98beae9d
2021-02-26 10:36:30 +09:00
..
api_access Drop the usage of unicode prefix from unicode strings 2021-02-12 13:05:27 -06:00
backups Drop the usage of unicode prefix from unicode strings 2021-02-12 13:05:27 -06:00
containers Cleanup unused util functions 2019-06-21 15:10:57 +00:00
floating_ips Drop the usage of unicode prefix from unicode strings 2021-02-12 13:05:27 -06:00
images Drop the usage of unicode prefix from unicode strings 2021-02-12 13:05:27 -06:00
instances Merge "Server tabs: add policy enforcement for tab display" 2021-02-18 03:37:27 +00:00
key_pairs Drop the usage of unicode prefix from unicode strings 2021-02-12 13:05:27 -06:00
network_qos Use python3-style super() 2020-10-15 14:37:20 +09:00
network_topology Use python3-style super() 2020-10-15 14:37:20 +09:00
networks Drop the usage of unicode prefix from unicode strings 2021-02-12 13:05:27 -06:00
overview Drop the usage of nova extensions in python code 2020-10-27 20:00:45 +09:00
routers Drop the usage of unicode prefix from unicode strings 2021-02-12 13:05:27 -06:00
security_groups Merge "security_groups panel: Add neutron policy enforcement" 2021-02-18 05:49:18 +00:00
server_groups Use python3-style super() 2020-10-15 14:37:20 +09:00
snapshots Drop the usage of unicode prefix from unicode strings 2021-02-12 13:05:27 -06:00
static/dashboard/project Fix community image handling in launch instance form 2021-02-26 10:36:30 +09:00
trunks Use python3-style super() 2020-10-15 14:37:20 +09:00
vg_snapshots Drop the usage of unicode prefix from unicode strings 2021-02-12 13:05:27 -06:00
volume_groups Drop the usage of unicode prefix from unicode strings 2021-02-12 13:05:27 -06:00
volumes Drop the usage of unicode prefix from unicode strings 2021-02-12 13:05:27 -06:00
__init__.py Splits OpenStack Dashboard bits from framework app code. 2012-10-11 11:47:50 -07:00
dashboard.py Use python3-style super() 2020-10-15 14:37:20 +09:00