Get information about the store. Returns: Information about the store.
(self)
| 1749 | FlavorRegistry().register_flavors(store=self) |
| 1750 | |
| 1751 | def get_store_info(self) -> ServerModel: |
| 1752 | """Get information about the store. |
| 1753 | |
| 1754 | Returns: |
| 1755 | Information about the store. |
| 1756 | """ |
| 1757 | model = super().get_store_info() |
| 1758 | sql_url = make_url(self.config.url) |
| 1759 | model.database_type = ServerDatabaseType(sql_url.drivername) |
| 1760 | settings = self.get_server_settings(hydrate=True) |
| 1761 | # Fetch the deployment ID from the database and use it to replace |
| 1762 | # the one fetched from the global configuration |
| 1763 | model.id = settings.server_id |
| 1764 | model.name = settings.server_name |
| 1765 | model.active = settings.active |
| 1766 | model.last_user_activity = settings.last_user_activity |
| 1767 | model.analytics_enabled = settings.enable_analytics |
| 1768 | return model |
| 1769 | |
| 1770 | def get_deployment_id(self) -> UUID: |
| 1771 | """Get the ID of the deployment. |