Skip to content

Commit d15b22d

Browse files
cristianscheidnextcloud-command
authored andcommitted
fix(dav): add missing search_supports_creation_time and search_supports_upload_time to Capabilities return type
Signed-off-by: Cristian Scheid <cristianscheid@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 parent 386240f commit d15b22d

15 files changed

Lines changed: 47 additions & 18 deletions

apps/dav/lib/Capabilities.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ public function __construct(
1818
}
1919

2020
/**
21-
* @return array{dav: array{chunking: string, public_shares_chunking: bool, bulkupload?: string, absence-supported?: bool, absence-replacement?: bool}}
21+
* @return array{dav: array{chunking: string, public_shares_chunking: bool, search_supports_creation_time: bool, search_supports_upload_time: bool, bulkupload?: string, absence-supported?: bool, absence-replacement?: bool}}
2222
*/
2323
public function getCapabilities() {
2424
$capabilities = [
2525
'dav' => [
2626
'chunking' => '1.0',
2727
'public_shares_chunking' => true,
28+
'search_supports_creation_time' => true,
2829
'search_supports_upload_time' => true,
2930
]
3031
];

apps/dav/openapi.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
"type": "object",
3131
"required": [
3232
"chunking",
33-
"public_shares_chunking"
33+
"public_shares_chunking",
34+
"search_supports_creation_time",
35+
"search_supports_upload_time"
3436
],
3537
"properties": {
3638
"chunking": {
@@ -39,6 +41,12 @@
3941
"public_shares_chunking": {
4042
"type": "boolean"
4143
},
44+
"search_supports_creation_time": {
45+
"type": "boolean"
46+
},
47+
"search_supports_upload_time": {
48+
"type": "boolean"
49+
},
4250
"bulkupload": {
4351
"type": "string"
4452
},

apps/dav/tests/unit/CapabilitiesTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public function testGetCapabilities(): void {
3131
'dav' => [
3232
'chunking' => '1.0',
3333
'public_shares_chunking' => true,
34+
'search_supports_creation_time' => true,
35+
'search_supports_upload_time' => true,
3436
],
3537
];
3638
$this->assertSame($expected, $capabilities->getCapabilities());
@@ -51,6 +53,8 @@ public function testGetCapabilitiesWithBulkUpload(): void {
5153
'dav' => [
5254
'chunking' => '1.0',
5355
'public_shares_chunking' => true,
56+
'search_supports_creation_time' => true,
57+
'search_supports_upload_time' => true,
5458
'bulkupload' => '1.0',
5559
],
5660
];
@@ -72,6 +76,8 @@ public function testGetCapabilitiesWithAbsence(): void {
7276
'dav' => [
7377
'chunking' => '1.0',
7478
'public_shares_chunking' => true,
79+
'search_supports_creation_time' => true,
80+
'search_supports_upload_time' => true,
7581
'absence-supported' => true,
7682
'absence-replacement' => true,
7783
],

apps/files/src/components/FileEntry/FileEntryPreview.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@
3939
<FavoriteIcon v-once />
4040
</span>
4141

42+
<!-- Recently created icon -->
43+
<span v-else-if="isRecentView && isRecentlyCreated" class="files-list__row-icon-recently-created">
44+
<RecentlyCreatedIcon v-once />
45+
</span>
46+
4247
<OverlayIcon :is="fileOverlay"
4348
v-if="fileOverlay"
4449
class="files-list__row-icon-overlay files-list__row-icon-overlay--file" />
@@ -70,6 +75,7 @@ import PlayCircleIcon from 'vue-material-design-icons/PlayCircle.vue'
7075
7176
import CollectivesIcon from './CollectivesIcon.vue'
7277
import FavoriteIcon from './FavoriteIcon.vue'
78+
import RecentlyCreatedIcon from './RecentlyCreatedIcon.vue'
7379
7480
import { isLivePhoto } from '../../services/LivePhotos'
7581
import { useUserConfigStore } from '../../store/userconfig.ts'

dist/9165-9165.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/9165-9165.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-init.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-init.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)