From 23bbf6a0f0d84662af110adbe571f4e4e33101ff Mon Sep 17 00:00:00 2001 From: Roman Perekhod Date: Thu, 9 Nov 2023 14:58:18 +0100 Subject: [PATCH] changed the filter name --- .../unreleased/add-file-type-filter-chip.md | 7 ++++--- .../services/owncloud/ocs/data/capabilities.go | 18 +++++++++--------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/changelog/unreleased/add-file-type-filter-chip.md b/changelog/unreleased/add-file-type-filter-chip.md index aac33e68f6..d27c9d9699 100644 --- a/changelog/unreleased/add-file-type-filter-chip.md +++ b/changelog/unreleased/add-file-type-filter-chip.md @@ -1,6 +1,6 @@ -Enhancement: Add search mimetype filter +Enhancement: Add search mediatype filter -Add filter MimeType filter shortcuts to search for specific document types. +Add filter MediaType filter shortcuts to search for specific document types. For example, a search query MimeType:documents will search for files with the following mimetypes: application/msword @@ -11,5 +11,6 @@ MimeType:text/markdown MimeType:application/rtf MimeType:application/vnd.apple.pages -https://github.com/cs3org/reva/pull/4320 +https://github.com/cs3org/reva/pull/4326 +https://github.com/cs3org/reva/pull/4320 https://github.com/owncloud/ocis/issues/7432 diff --git a/internal/http/services/owncloud/ocs/data/capabilities.go b/internal/http/services/owncloud/ocs/data/capabilities.go index 5cb153face..3a41ae59a1 100644 --- a/internal/http/services/owncloud/ocs/data/capabilities.go +++ b/internal/http/services/owncloud/ocs/data/capabilities.go @@ -69,15 +69,15 @@ type CapabilitiesSearch struct { // CapabilitiesSearchProperties holds the search property capabilities type CapabilitiesSearchProperties struct { - Name *CapabilitiesSearchProperty `json:"name" xml:"name" mapstructure:"name"` - Mtime *CapabilitiesSearchPropertyExtended `json:"mtime" xml:"mtime" mapstructure:"mtime"` - Size *CapabilitiesSearchProperty `json:"size" xml:"size" mapstructure:"size"` - Mimetype *CapabilitiesSearchPropertyExtended `json:"mimetype" xml:"mimetype" mapstructure:"mimetype"` - Type *CapabilitiesSearchProperty `json:"type" xml:"type" mapstructure:"type"` - Tag *CapabilitiesSearchProperty `json:"tag" xml:"tag" mapstructure:"tag"` - Tags *CapabilitiesSearchProperty `json:"tags" xml:"tags" mapstructure:"tags"` - Content *CapabilitiesSearchProperty `json:"content" xml:"content" mapstructure:"content"` - Scope *CapabilitiesSearchProperty `json:"scope" xml:"scope" mapstructure:"scope"` + Name *CapabilitiesSearchProperty `json:"name" xml:"name" mapstructure:"name"` + Mtime *CapabilitiesSearchPropertyExtended `json:"mtime" xml:"mtime" mapstructure:"mtime"` + Size *CapabilitiesSearchProperty `json:"size" xml:"size" mapstructure:"size"` + MediaType *CapabilitiesSearchPropertyExtended `json:"mediatype" xml:"mediatype" mapstructure:"mediatype"` + Type *CapabilitiesSearchProperty `json:"type" xml:"type" mapstructure:"type"` + Tag *CapabilitiesSearchProperty `json:"tag" xml:"tag" mapstructure:"tag"` + Tags *CapabilitiesSearchProperty `json:"tags" xml:"tags" mapstructure:"tags"` + Content *CapabilitiesSearchProperty `json:"content" xml:"content" mapstructure:"content"` + Scope *CapabilitiesSearchProperty `json:"scope" xml:"scope" mapstructure:"scope"` } // CapabilitiesSearchProperty represents the default search property