Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

feat: add missing data to /about endpoint #121

Merged
merged 18 commits into from
Jul 21, 2022
Merged

feat: add missing data to /about endpoint #121

merged 18 commits into from
Jul 21, 2022

Conversation

hugoArregui
Copy link

There is a tricky thing going on here, we need every catalyst node to run this version with comms v2 at least once so the catalyst-name is persisted (unless they defined the LIGHTHOUSE_NAMES env var)

@hugoArregui hugoArregui changed the title feat: add realm name to about endpoint feat: add missing data to /about endpoint Jul 20, 2022
@hugoArregui hugoArregui requested a review from agusaldasoro July 20, 2022 18:26
@hugoArregui hugoArregui marked this pull request as ready for review July 20, 2022 18:27
@@ -11,6 +11,9 @@ HTTP_SERVER_PORT=3000
HTTP_SERVER_HOST=0.0.0.0
NATS_URL=localhost:4222
LAMBDAS_URL=
LIGHTHOUSE_URL=
CONTENT_URL=
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's this used for? Should it be able to reach an outside content server?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, it's all internal, for the status check, I'll map them in catalyst-owner

@@ -11,6 +11,9 @@ HTTP_SERVER_PORT=3000
HTTP_SERVER_HOST=0.0.0.0
NATS_URL=localhost:4222
LAMBDAS_URL=
LIGHTHOUSE_URL=
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's this used for? Should it be able to reach an outside lighthouse server?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, it's all internal, for the status check, I'll map them in catalyst-owner

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use the same name for the env var then?

package.json Outdated Show resolved Hide resolved
},
bff: {
healthy: true,
commitHash: await config.getString('COMMIT_HASH'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we sure that this env var is always present? Also, in the catalyst owner is this the name or is it something BFF-related?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's in the image, but if not present it will return undefined, which is what the type expects

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we change the name to something more specific? Like BFF_COMMIT_HASH?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

src/controllers/handlers/about-handler.ts Outdated Show resolved Hide resolved
src/ports/realm.ts Outdated Show resolved Hide resolved
src/ports/realm.ts Outdated Show resolved Hide resolved
src/ports/realm.ts Show resolved Hide resolved
src/ports/realm.ts Show resolved Hide resolved
src/ports/status.ts Outdated Show resolved Hide resolved
Hugo Arregui and others added 6 commits July 20, 2022 17:24
Co-authored-by: Agustina Aldasoro <agusaldasoro@users.noreply.github.com>
Co-authored-by: Agustina Aldasoro <agusaldasoro@users.noreply.github.com>
Co-authored-by: Agustina Aldasoro <agusaldasoro@users.noreply.github.com>
@hugoArregui hugoArregui requested a review from agusaldasoro July 20, 2022 20:49
@@ -11,6 +11,9 @@ HTTP_SERVER_PORT=3000
HTTP_SERVER_HOST=0.0.0.0
NATS_URL=localhost:4222
LAMBDAS_URL=
LIGHTHOUSE_URL=
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use the same name for the env var then?

package.json Outdated Show resolved Hide resolved
},
bff: {
healthy: true,
commitHash: await config.getString('COMMIT_HASH'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we change the name to something more specific? Like BFF_COMMIT_HASH?

src/ports/realm.ts Show resolved Hide resolved
src/ports/realm.ts Show resolved Hide resolved
@hugoArregui hugoArregui merged commit 03f1a6a into main Jul 21, 2022
@hugoArregui hugoArregui deleted the feat/realm-name branch July 21, 2022 13:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants