Skip to content

Revisit Manager::getFrusByExpandedLocationCode implementation once expanded to unexpanded location code conversion API is finalized #720

Description

@souvik1914581

Manager::getFrusByExpandedLocationCode implementation uses getManagedObjects() API to get map of managed objects and then iterates the map to get an location code match.

This can be made more efficient by using ConfigManager. ConfigManager::getInventoryPaths() public API returns inventory path(s) for a given unexpanded location code.
We can convert the expanded location code to unexpanded location code and use the ConfigManager API. This avoids a D-Bus call and looping through a map of managed objects to search for a match.

Revisit this implementation once the conversion logic from expanded to unexpanded location code is implemented.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions