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

7 add detailed info page #21

Open
wants to merge 5 commits into
base: 8-vdisk-list-page
Choose a base branch
from

Conversation

archeoss
Copy link
Contributor

Partly resolves #7

@archeoss
Copy link
Contributor Author

archeoss commented Nov 15, 2023

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @archeoss and the rest of your teammates on Graphite Graphite

@archeoss archeoss mentioned this pull request Nov 15, 2023
@archeoss archeoss force-pushed the 7-detailed-node-info-page branch from 1f56c24 to 14d7edf Compare November 16, 2023 14:45
@archeoss archeoss force-pushed the 7-detailed-node-info-page branch 2 times, most recently from e7bb19d to f8bdc8d Compare December 1, 2023 21:26
@archeoss archeoss marked this pull request as ready for review December 1, 2023 21:35
@archeoss archeoss assigned archeoss and unassigned archeoss Dec 1, 2023
@archeoss archeoss requested a review from ikopylov December 1, 2023 21:36
@archeoss archeoss force-pushed the 7-detailed-node-info-page branch from f8bdc8d to 2231812 Compare December 1, 2023 22:10
@archeoss archeoss force-pushed the 7-detailed-node-info-page branch from 2231812 to 2bdbf32 Compare December 1, 2023 22:19
@archeoss archeoss force-pushed the 7-detailed-node-info-page branch from 2bdbf32 to 8903d49 Compare December 1, 2023 22:34
@archeoss archeoss force-pushed the 7-detailed-node-info-page branch from 12de748 to af299d3 Compare January 21, 2024 05:36
tokio::spawn(async move { handle.clone().get_disks().await })
};

let Ok(Ok(GetStatusResponse::AJSONWithNodeInfo(status))) = status.await else {
Copy link
Contributor

Choose a reason for hiding this comment

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

Am I correct that tasks for metrics, space_info and disks will still run to completion even if function shortcircuits here? Wouldn't this approach result in many tasks running for every unsuccessful request?

.ok_or(StatusCode::NOT_FOUND)?,
);

let status = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably this code can be extracted into macro, to prevent handle...spawn duplication?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants