mapbox / mapbox/mapbox-search-ios
HistoryRecord timeStamp is a get-only variable
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 28
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
Using Mapbox Search 1.0.0-beta.42
I'd like to update my history records when a user selects one. The record should be updated with the current timestamp to represent the last time a user traveled to that location. However, timeStamp is a get-only variable and can thus not be updated and then updated in the historyProvider through update(record: HistoryRecord). Is there a way to do this and if not, would it be possible to add this in the future?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating HistoryRecord and the historyProvider implementation that exposes update(record: HistoryRecord). Check how timeStamp is defined and how history records are persisted or updated. Done means users can update a record's timestamp to the current time and update(record:) accepts the revised record without breaking the existing API.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100