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

[hotfix] resource names #302

Merged
merged 5 commits into from
Nov 21, 2024
Merged

Conversation

njooma
Copy link
Member

@njooma njooma commented Nov 21, 2024

This updates the way we create resources names when only given a name. It also updates the resource manager to look for short names when long names don't return anything

@njooma njooma requested a review from cheukt November 21, 2024 18:11
@njooma njooma requested a review from a team as a code owner November 21, 2024 18:11
if (resources.containsKey(name)) {
resource = resources[name];
} else {
final resourcesWithoutRemotes = resources.map((rn, res) {
Copy link
Member

Choose a reason for hiding this comment

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

(q) Potentially out of scope for a hotfix but, should resourcesWithoutRemotes live on the ResourceManager such that we don't have to construct this new map potentially every time we call getResource?

Copy link
Member Author

Choose a reason for hiding this comment

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

Did it anyway -- it's a good thought

@njooma njooma requested a review from stuqdog November 21, 2024 19:19
@njooma njooma merged commit 4b7459c into viamrobotics:main Nov 21, 2024
4 checks passed
@njooma njooma deleted the hotfix/resource-names branch November 21, 2024 20:19
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