summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-10-04 00:23:23 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2016-10-04 00:23:23 +0100
commit311fc892c8294e6ec6596af5d2494b8cfc93c348 (patch)
tree8f03f88dd2aa803373f63299931fc8405896783f
parentAdd methods for getting dependencies and masks (diff)
downloadgentoobrowse-api-311fc892c8294e6ec6596af5d2494b8cfc93c348.tar.bz2
gentoobrowse-api-311fc892c8294e6ec6596af5d2494b8cfc93c348.tar.xz
gentoobrowse-api-311fc892c8294e6ec6596af5d2494b8cfc93c348.zip
Add slicer collection element metadata
-rw-r--r--gentoobrowse-api/domain/extended-models.ice7
-rw-r--r--gentoobrowse-api/domain/portage-models.ice8
2 files changed, 15 insertions, 0 deletions
diff --git a/gentoobrowse-api/domain/extended-models.ice b/gentoobrowse-api/domain/extended-models.ice
index de9e514..aee4af1 100644
--- a/gentoobrowse-api/domain/extended-models.ice
+++ b/gentoobrowse-api/domain/extended-models.ice
@@ -32,12 +32,19 @@ module Gentoo {
IntList ebuildids;
};
+ [ "slicer:element:package" ]
sequence<SearchResultPackage> SearchResultPackages;
+ [ "slicer:element:bug" ]
sequence<SearchResultBug> SearchResultBugs;
+ [ "slicer:element:category" ]
sequence<OverviewCategory> OverviewCategories;
+ [ "slicer:element:ebuild" ]
sequence<EbuildDetail> EbuildDetails;
+ [ "slicer:item:super", "slicer:key:name", "slicer:value:categories" ]
dictionary<string, OverviewCategories> OverviewCategoriesBySuper;
+ [ "slicer:element:package" ]
sequence<PackageDependencyPackage> PackageDependencyPackages;
+ [ "slicer:element:mask" ]
sequence<PackageMask> PackageMasks;
};
diff --git a/gentoobrowse-api/domain/portage-models.ice b/gentoobrowse-api/domain/portage-models.ice
index 42eb0c0..5ee9b76 100644
--- a/gentoobrowse-api/domain/portage-models.ice
+++ b/gentoobrowse-api/domain/portage-models.ice
@@ -107,13 +107,21 @@ module Gentoo {
int ebuilds;
};
+ [ "slicer:element:category" ]
sequence<Category> Categories;
+ [ "slicer:element:package" ]
sequence<Package> Packages;
+ [ "slicer:element:ebuild" ]
sequence<Ebuild> Ebuilds;
+ [ "slicer:element:bug" ]
sequence<Bug> Bugs;
+ [ "slicer:element:entry" ]
sequence<ChangeLogEntry> ChangeLog;
+ [ "slicer:element:article" ]
sequence<NewsItem> News;
+ [ "slicer:element:sync" ]
sequence<Sync> Syncs;
+ [ "slicer:element:mask" ]
sequence<Mask> Masks;
};