| 234 | return base_plugin.FrontendMetadata(element_name="tf-text-dashboard") |
| 235 | |
| 236 | def index_impl(self, ctx, experiment): |
| 237 | mapping = self._data_provider.list_tensors( |
| 238 | ctx, |
| 239 | experiment_id=experiment, |
| 240 | plugin_name=metadata.PLUGIN_NAME, |
| 241 | ) |
| 242 | result = {run: [] for run in mapping} |
| 243 | for run, tag_to_content in mapping.items(): |
| 244 | for tag, metadatum in tag_to_content.items(): |
| 245 | md = metadata.parse_plugin_metadata(metadatum.plugin_content) |
| 246 | if not self._version_checker.ok(md.version, run, tag): |
| 247 | continue |
| 248 | result[run].append(tag) |
| 249 | return result |
| 250 | |
| 251 | @wrappers.Request.application |
| 252 | def tags_route(self, request): |