consul/ui/packages/consul-ui/mock-api/v1
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
..
acl ui: Adds support for AWS-IAM Auth Methods (#12786) 2022-04-14 17:13:13 +01:00
agent ui: Move mocks into the ui project (#9084) 2020-11-05 16:03:49 +00:00
catalog ui: Ensure service instance data does not get re-written on blocking refresh (#11903) 2022-01-07 19:16:21 +00:00
connect ui: Update mock intention metadata to only include possible values (#14607) 2022-09-15 09:37:40 +01:00
coordinate ui: Round Trip Time Tooltips (#9290) 2020-11-30 17:02:54 +00:00
discovery-chain ui: Amends to Routing visualization for partitions (#11747) 2021-12-09 10:47:58 +00:00
health/service Enable synthetic nodes in mock data via env var 2022-10-18 13:45:14 -06:00
internal 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
kv ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
namespace ui: Move mocks into the ui project (#9084) 2020-11-05 16:03:49 +00:00
operator ui: Adds licensing overview tab (#12706) 2022-04-12 09:56:54 +01:00
partition ui: Adds initial CRUD for partitions (#11188) 2021-10-08 16:29:30 +01:00
peering Update peering mocks 2022-10-13 16:45:03 +02:00
session ui: Refactor KV and Lock Sessions following partitions update (#11666) 2021-12-01 11:33:33 +00:00
status ui: Move mocks into the ui project (#9084) 2020-11-05 16:03:49 +00:00
.config ui: Move mocks into the ui project (#9084) 2020-11-05 16:03:49 +00:00
namespaces ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
partitions ui: Change partitions to expect `[]` from the API (#11791) 2021-12-10 14:41:08 +00:00
peerings Update peering mocks 2022-10-13 16:45:03 +02:00