Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6f7533a

Browse files
committed
4268: Use built-in match filter
# Conflicts:#CHANGELOG.md
1 parentbf0e1ac commit6f7533a

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

‎CHANGELOG.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ See [keep a changelog] for information about writing changes to this log.
88

99
##[Unreleased]
1010

11+
-[PR-20](https://github.com/itk-dev/event-database-api/pull/20)
12+
- Used built-in match filter
1113
-[PR-21](https://github.com/itk-dev/event-database-api/pull/21)
1214
Linted YAML
1315
-[PR-18](https://github.com/itk-dev/event-database-api/pull/18)

‎src/Api/Dto/Event.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespaceApp\Api\Dto;
44

5+
useApiPlatform\Elasticsearch\Filter\MatchFilter;
56
useApiPlatform\Metadata\ApiFilter;
67
useApiPlatform\Metadata\ApiProperty;
78
useApiPlatform\Metadata\ApiResource;
@@ -13,7 +14,6 @@
1314
useApp\Api\Filter\ElasticSearch\BooleanFilter;
1415
useApp\Api\Filter\ElasticSearch\DateRangeFilter;
1516
useApp\Api\Filter\ElasticSearch\IdFilter;
16-
useApp\Api\Filter\ElasticSearch\MatchFilter;
1717
useApp\Api\Filter\ElasticSearch\TagFilter;
1818
useApp\Api\State\EventRepresentationProvider;
1919
useApp\Model\DateLimit;

‎tests/ApiPlatform/EventsFilterTest.php‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,5 +140,19 @@ public static function getEventsProvider(): iterable
140140
1,
141141
'Events in 2026 tagged with "itkdev"',
142142
];
143+
144+
yield [
145+
[
146+
'title' =>'cykel',
147+
],
148+
0,
149+
];
150+
151+
yield [
152+
[
153+
'title' =>'bicycle',
154+
],
155+
1,
156+
];
143157
}
144158
}

‎tests/resources/events.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
}
170170
},{
171171
"entityId":9,
172-
"title":"ITKDev test event2",
172+
"title":"ITKDev test eventbicycle",
173173
"excerpt":"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",
174174
"description":"<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quis blandit turpis cursus in. Nisl suscipit adipiscing bibendum est ultricies integer quis auctor. Diam donec adipiscing tristique risus nec feugiat. Tincidunt eget nullam non nisi est. Consectetur a erat nam at lectus urna. Vulputate sapien nec sagittis aliquam. Luctus venenatis lectus magna fringilla. Sit amet consectetur adipiscing elit duis tristique. Bibendum enim facilisis gravida neque convallis a.<\/p><p>Cursus eget nunc scelerisque viverra mauris in aliquam sem. Euismod elementum nisi quis eleifend quam adipiscing vitae proin sagittis.<br\/>Sodales ut eu sem integer vitae justo eget. Lacus sed viverra tellus in.<\/p>",
175175
"url":"https:\/\/itk.aarhus.dk\/nyheder\/projektnyheder\/robotternes-bidrag-til-den-groenne-omstilling\/",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp