Filter matching context by last modification date
- Dominant language
- PHP
- Stars
- 5
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
> @felix-lambert said: Would that be complicated to only fetch modified matching context?
On Api V4: https://api.dismoi.io/v4 it would be rather easy to add such filters, see api-platform documentation:
https://api-platform.com/docs/core/filters/#search-filter
But first we must add 2 properties on the `MatchingContext` entity. Take example on the `Notice` entity:
https://github.com/dis-moi/backend/blob/master/src/Entity/Notice.php#L257-L282
Then some logic must be aded to update both dates, again you may take example on the `NoticeListener`, see the listener and the required annotation :
https://github.com/dis-moi/backend/blob/master/src/Entity/Notice.php#L33
Contributor guide
Research direction
Start with the MatchingContext entity and compare it with the properties in src/Entity/Notice.php at lines 257-282. Then read the NoticeListener and its annotation, and review the API Platform search-filter documentation linked in the issue. Done means modified matching context can be filtered by its two date properties through the API v4 endpoint.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100