From e71d736121d26f20ded1b404360dd827d16fa8ad Mon Sep 17 00:00:00 2001 From: Patrick Dahms Date: Tue, 17 Dec 2024 08:53:54 +0100 Subject: [PATCH 1/2] feat(section): added `references` array --- stroeer/page/section/v1/section_page.proto | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/stroeer/page/section/v1/section_page.proto b/stroeer/page/section/v1/section_page.proto index 861bd00c..447bd0a1 100644 --- a/stroeer/page/section/v1/section_page.proto +++ b/stroeer/page/section/v1/section_page.proto @@ -16,23 +16,19 @@ message SectionPage { message Section { // Generic map containing general content and configuration information of // the section (required). - // // The entry set is defined by the content management system and // will vary depending on the main type of the article. // - // This map will always contain non empty values for the following keys: - // - // * `ref_path`: URL path for this section e.g. /section/id_$ID/title.html - // * `ref_canonical`: Canonical URL of this section, may differ if external, e.g. https://www.giga.de/tech/ - // // Clients must be resilient to unknown or missing entry sets. map fields = 1; - // Hierarchical section tree information of the section (required). + // References, e.g. URLs belonging to this section (required). // For example: - // `/` -> `/sport/` -> `/sport/fussball/` - // @Deprecated in favor of references + // * `internal`: URL path for this section e.g. /section/id_$ID/title.html + // * `external`: Canonical URL of this section, may differ if external, e.g. https://www.giga.de/tech/ stroeer.core.v1.Reference section_tree = 2; + + repeated stroeer.core.v1.Reference references = 14; } // Page navigation including internal and external references From c5c38f025290b0493a05af71ccfdfc1a8e8cb382 Mon Sep 17 00:00:00 2001 From: Patrick Dahms Date: Tue, 17 Dec 2024 10:06:53 +0100 Subject: [PATCH 2/2] feat(section): added `references` array --- stroeer/page/section/v1/section_page.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stroeer/page/section/v1/section_page.proto b/stroeer/page/section/v1/section_page.proto index 447bd0a1..55c2b3cf 100644 --- a/stroeer/page/section/v1/section_page.proto +++ b/stroeer/page/section/v1/section_page.proto @@ -28,7 +28,7 @@ message SectionPage { // * `external`: Canonical URL of this section, may differ if external, e.g. https://www.giga.de/tech/ stroeer.core.v1.Reference section_tree = 2; - repeated stroeer.core.v1.Reference references = 14; + repeated stroeer.core.v1.Reference references = 3; } // Page navigation including internal and external references