google / google/ground-platform

[Import GeoJSON] Update import function to always include auditInfo

Open
#1,014 0 comments 0 reactions 0 assignees View on GitHub
type: fr web
Dominant language
TypeScript
Stars
249
Forks
112
Avg merge
10h 7m
Merged PRs (30d)
4

Description

This should be added to `created` and `lastModified` fields in:

- [ ] Surveys
- [ ] LOIs
- [ ] Submissions

No changes are needed to the current structure of auditInfo:

```
class AuditInfo {
user: User,
clientTime: Date,
serverTime: Date | FieldValue
}
```

On updates, `serverTime` should always be set to `serverTimestamp()` `FieldValue`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.