Skip to content

Commit

Permalink
Merge pull request #4326 from 2403905/issue-7432-filter
Browse files Browse the repository at this point in the history
changed the filter name
  • Loading branch information
2403905 authored Nov 9, 2023
2 parents 7b7bcfa + 23bbf6a commit bcf4939
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
7 changes: 4 additions & 3 deletions changelog/unreleased/add-file-type-filter-chip.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
18 changes: 9 additions & 9 deletions internal/http/services/owncloud/ocs/data/capabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bcf4939

Please sign in to comment.