consul/ui/packages/consul-ui/app/components
hc-github-team-consul-core 6ed2c23572
Backport of Displays Consul version of each nodes in UI nodes section into release/1.16.x (#18113)
## Backport

This PR is auto-generated from #17754 to be assessed for backporting due
to the inclusion of the label backport/1.16.


🚨
>**Warning** automatic cherry-pick of commits failed. If the first
commit failed,
you will see a blank no-op commit below. If at least one commit
succeeded, you
will see the cherry-picked commits up to, _not including_, the commit
where
the merge conflict occurred.

The person who merged in the original PR is:
@WenInCode
This person should manually cherry-pick the original PR into a new
backport PR,
and close this one when the manual backport PR is merged in.

> merge conflict error: unable to process merge commit:
"1c757b8a2c1160ad53421b7b8bd7f74b205c4b89", automatic backport requires
rebase workflow



The below text is copied from the body of the original PR.

---

fixes #17097 Consul version of each nodes in UI nodes section

@jkirschner-hashicorp @huikang @team @Maintainers

Updated consul version in the request to register consul.
Added this as Node MetaData.
Fetching this new metadata in UI

<img width="1512" alt="Screenshot 2023-06-15 at 4 21 33 PM"
src="https://github.com/hashicorp/consul/assets/3139634/94f7cf6b-701f-4230-b9f7-d8c4342d0737">

Also made this backward compatible and tested.

Backward compatible in this context means - If consul binary with above
PR changes is deployed to one of node, and if UI is run from this node,
then the version of not only current (upgraded) node is displayed in UI
, but also of older nodes given that they are consul servers only.
For older (non-server or client) nodes the version is not added in
NodeMeta Data and hence the version will not be displayed for them.
If a old node is consul server, the version will be displayed. As the
endpoint - "v1/internal/ui/nodes?dc=dc1" was already returning version
in service meta. This is made use of in current UI changes.

<img width="1480" alt="Screenshot 2023-06-16 at 6 58 32 PM"
src="https://github.com/hashicorp/consul/assets/3139634/257942f4-fbed-437d-a492-37849d2bec4c">




---

<details>
<summary> Overview of commits </summary>

- 931fdfc7ec -
b3e2ec1cca -
8d0e9a5490 -
04e5d88cca -
28286a2e98 -
43e50ad382 -
0cf1b7077c -
27f34ce1c2 -
2ac76d62b8 -
3d618df9ef -
1c757b8a2c -
23ce82b4ce -
4dc1c9b4c5 -
85a12a9252 -
25d30a3fa9 -
7f1d6192dc -
5174cbff84

</details>

---------

Co-authored-by: Vijay Srinivas <vijayraghav22@gmail.com>
Co-authored-by: John Murret <john.murret@hashicorp.com>
Co-authored-by: Jared Kirschner <85913323+jkirschner-hashicorp@users.noreply.github.com>
2023-07-17 17:27:50 +00:00
..
action Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
anchors Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
anonymous Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
app feat: update typography to consume hds styles (#16577) 2023-03-14 19:49:14 -07:00
app-error Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
app-view feat: update typography to consume hds styles (#16577) 2023-03-14 19:49:14 -07:00
aria-menu Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
auth-dialog UI: update Ember to 3.28.6 (#16616) 2023-03-20 15:41:47 -07:00
auth-form feat: update typography to consume hds styles (#16577) 2023-03-14 19:49:14 -07:00
auth-modal Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
auth-profile feat: update typography to consume hds styles (#16577) 2023-03-14 19:49:14 -07:00
badge Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
brand-loader Remove UI brand-loader copyright headers as they do not render appropriately (#16835) 2023-03-31 11:29:19 -04:00
breadcrumbs Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
buttons Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
card Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
checkbox-group Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
child-selector Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
code-editor feat: update typography to consume hds styles (#16577) 2023-03-14 19:49:14 -07:00
composite-row feat: update typography to consume hds styles (#16577) 2023-03-14 19:49:14 -07:00
confirmation-alert Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
confirmation-dialog Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
consul Backport of Displays Consul version of each nodes in UI nodes section into release/1.16.x (#18113) 2023-07-17 17:27:50 +00:00
copy-button Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
copyable-code Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
csv-list Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
data-collection UI: update Ember to 3.28.6 (#16616) 2023-03-20 15:41:47 -07:00
data-form UI: update Ember to 3.28.6 (#16616) 2023-03-20 15:41:47 -07:00
data-loader UI: update Ember to 3.28.6 (#16616) 2023-03-20 15:41:47 -07:00
data-sink Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
data-source Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
data-writer Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
debug/navigation Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
definition-table Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
delete-confirmation Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
disclosure Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
disclosure-menu Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
display-toggle Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
dom-recycling-table Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
empty-state feat: update typography to consume hds styles (#16577) 2023-03-14 19:49:14 -07:00
error-state Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
event-source Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
expanded-single-select Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
filter-bar Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
form-component Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
form-elements feat: update typography to consume hds styles (#16577) 2023-03-14 19:49:14 -07:00
form-group Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
form-input Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
freetext-filter Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
hashicorp-consul feat: update typography to consume hds styles (#16577) 2023-03-14 19:49:14 -07:00
horizontal-kv-list Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
icon-definition Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
informed-action feat: update typography to consume hds styles (#16577) 2023-03-14 19:49:14 -07:00
inline-alert feat: update typography to consume hds styles (#16577) 2023-03-14 19:49:14 -07:00
inline-code Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
jwt-source Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
list-collection UI: update Ember to 3.28.6 (#16616) 2023-03-20 15:41:47 -07:00
list-row feat: update typography to consume hds styles (#16577) 2023-03-14 19:49:14 -07:00
main-header-horizontal Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
main-nav-horizontal Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
main-nav-vertical feat: update typography to consume hds styles (#16577) 2023-03-14 19:49:14 -07:00
menu Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
menu-panel feat: update typography to consume hds styles (#16577) 2023-03-14 19:49:14 -07:00
modal-dialog feat: update typography to consume hds styles (#16577) 2023-03-14 19:49:14 -07:00
modal-layer Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
more-popover-menu Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
oidc-select feat: update typography to consume hds styles (#16577) 2023-03-14 19:49:14 -07:00
option-input Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
outlet Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
overlay Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
paged-collection Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
panel Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
peerings feat: update typography to consume hds styles (#16577) 2023-03-14 19:49:14 -07:00
pill Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
policy-form Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
policy-selector Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
popover-menu Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
popover-select Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
power-select Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
progress Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
providers Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
radio-card Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
radio-group Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
ref Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
role-form Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
role-selector Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
route Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
search-bar Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
skip-links Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
sliding-toggle Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
state Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
state-chart Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
state-machine Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
tab-nav Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
table feat: update typography to consume hds styles (#16577) 2023-03-14 19:49:14 -07:00
tabular-collection UI: update Ember to 3.28.6 (#16616) 2023-03-20 15:41:47 -07:00
tabular-details Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
tabular-dl feat: update typography to consume hds styles (#16577) 2023-03-14 19:49:14 -07:00
tag-list Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
text-input Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
tile Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
toggle-button Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
token-list Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
token-source Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
tooltip feat: update typography to consume hds styles (#16577) 2023-03-14 19:49:14 -07:00
tooltip-panel Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
topology-metrics feat: update typography to consume hds styles (#16577) 2023-03-14 19:49:14 -07:00
watcher Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
yield Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00