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: update resources with resourcebuilder changes #747

Merged
merged 8 commits into from
Mar 24, 2023

Conversation

oddgrd
Copy link
Contributor

@oddgrd oddgrd commented Mar 23, 2023

Description of change

This updates the resources with the changes in #746, which needs to be merged before this.

How Has This Been Tested (if applicable)?

Local runs.

@oddgrd oddgrd force-pushed the feat/update-resources branch from bc6f442 to 386183b Compare March 23, 2023 14:01
Copy link
Contributor

@chesedo chesedo left a comment

Choose a reason for hiding this comment

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

Seems all good to me. Thanks O

resources/shared-db/src/lib.rs Show resolved Hide resolved
resources/static-folder/src/lib.rs Outdated Show resolved Hide resolved
@oddgrd oddgrd force-pushed the feat/update-resources branch from 386183b to ab08311 Compare March 24, 2023 08:46
@oddgrd oddgrd marked this pull request as ready for review March 24, 2023 09:20
Comment on lines 241 to 261
fn get_persist_table(persist_instances: &[&resource::Response]) -> String {
let mut table = Table::new();

table
.load_preset(UTF8_FULL)
.apply_modifier(UTF8_ROUND_CORNERS)
.set_content_arrangement(ContentArrangement::DynamicFullWidth)
.set_header(vec![
Cell::new("Persist Instances").set_alignment(CellAlignment::Center)
]);

for _ in persist_instances {
table.add_row(vec!["Instance"]);
}

format!(
r#"These instances are linked to this service
{table}
"#,
)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This one I'm not so sure about how we should handle, since the output just contains the project name. 🤔

@oddgrd oddgrd force-pushed the feat/update-resources branch from 16d850e to bc0331d Compare March 24, 2023 09:38
Copy link
Contributor

@chesedo chesedo left a comment

Choose a reason for hiding this comment

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

LGTM, we can fix all the tables in ENG-518

@chesedo chesedo merged commit c036c6a into shuttle-hq:main Mar 24, 2023
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