[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:
Max Fitton
2020-10-02 17:58:44 -07:00
committed by GitHub
co-authored by fyrestone Max Fitton
parent ee71fecd9e
commit ff6d412ad9
10 changed files with 460 additions and 19 deletions
+2 -2
View File
@@ -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__()