mirror of
https://github.com/wassname/ray.git
synced 2026-08-20 12:40:44 +08:00
[Dashboard] Add API support for the logical view and machine view in new backend (#11012)
* Add API support for the logical view and machine view, which lean on datacenter in common. * Update dashboard/datacenter.py Co-authored-by: fyrestone <fyrestone@outlook.com> * Update dashboard/modules/logical_view/logical_view_head.py Co-authored-by: fyrestone <fyrestone@outlook.com> * Address PR comments * lint * Add dashboard tests to CI build * Fix integration issues * lint Co-authored-by: Max Fitton <max@semprehealth.com> Co-authored-by: fyrestone <fyrestone@outlook.com>
This commit is contained in:
co-authored by
fyrestone
Max Fitton
parent
ee71fecd9e
commit
ff6d412ad9
@@ -269,10 +269,10 @@ class MemoryTable:
|
||||
}
|
||||
|
||||
def get_entries(self) -> List[dict]:
|
||||
return [entry.__dict__() for entry in self.table]
|
||||
return [entry.as_dict() for entry in self.table]
|
||||
|
||||
def __repr__(self):
|
||||
return str(self.__dict__())
|
||||
return str(self.as_dict())
|
||||
|
||||
def __str__(self):
|
||||
return self.__repr__()
|
||||
|
||||
Reference in New Issue
Block a user