Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add /internal-backstage/ready endpoint #252

Merged
merged 2 commits into from
Sep 12, 2023
Merged

Conversation

chriswk
Copy link
Contributor

@chriswk chriswk commented Sep 12, 2023

No description provided.

@chriswk chriswk self-assigned this Sep 12, 2023
@gardleopard
Copy link
Contributor

I'm thinking about lazy loading here. If using ready endpoint, lazy loading won't work. Maybe we should communicate that somehow?

use dashmap::DashMap;
use serde::{Deserialize, Serialize};
use unleash_types::client_features::ClientFeatures;
#[derive(Debug, Serialize, Deserialize)]
pub struct EdgeStatus {
Copy link
Member

Choose a reason for hiding this comment

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

Might be time for the inner type to be an enum here. Should be okay to do something like

enum Status {
Ok,
Ready,
NotReady
}

Small suggestion, I'm okay for this to go without it

Copy link
Member

@sighphyre sighphyre left a comment

Choose a reason for hiding this comment

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

LGTM

@chriswk chriswk merged commit 3fff363 into main Sep 12, 2023
5 checks passed
@chriswk chriswk deleted the task/readyEndpoint branch September 12, 2023 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants