smolnar82 opened a new pull request #335:
URL: https://github.com/apache/knox/pull/335
## What changes were proposed in this pull request?
Introduced a new property in `gateway-site.xml` called
`knox.homepage.pinned.topologies`. This is a comma-separated list of topology
names indicating they should be pinned on the Home Page. If a topology is
pinned it's going to be expanded when opening the home page.
The order of the topologies are fixed as follows:
1. pinned topologies come first
2. topologies are sorted in alphabetical order
I made the `General Proxy Information` and `Topologies` sections
expandable/collapsable too and made sure the first section is collapsed by
default.
On the Home page, you'll see two icons next to the topology name:
- pushpin: if the topology is pinned. This is a tooltip icon with a
meaningful description of how to make the topology un-pinned.
- cog: if the topology is un-pinned. This is a tooltip icon with a
meaningful description of how to make the topology pinned.
## How was this patch tested?
Tested manually:
1. re-deployed Knox with my changes
2. added the following property in `gateway-site.xml` before started Knox
```
<property>
<name>knox.homepage.pinned.topologies</name>
<value>sandbox, sandboxSandorPinned</value>
</property>
```
3. Started Knox and created two new topologies: `sandboxSandorPinned ` and
`aTestDescriptorNotPinned `
4. Opened the Home page (the`sandboxSandorPinned ` was expanded by default,
I collapsed it to make sure the `aTestDescriptorNotPinned ` is on the
screenshot too):
<img width="1667" alt="Screen Shot 2020-05-06 at 1 51 41 PM"
src="https://user-images.githubusercontent.com/34065904/81174356-fe77eb80-8fa1-11ea-8a16-12106717b970.png">
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]