Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derive createdBy and updatedBy fields for data returned to client #136

Open
Tracked by #83
gmaclennan opened this issue Jul 28, 2023 · 1 comment
Open
Tracked by #83

Comments

@gmaclennan
Copy link
Member

Description

See https://github.com/digidem/mapeo-schema/issues/83 for background.

The createdBy field is required for the frontend in order to limit editing of records to the device that created them.

The "core ID of the updator" is stored in the versionId (hex string before the @ character).
The "core ID of the creator" depends on digidem/mapeo-sqlite-indexer#7

Tasks

This task is to use core ownership records to derive the device ID of the creator and updator, and append them to each returned document as createdBy and updatedBy fields.

@gmaclennan
Copy link
Member Author

Suggesting to solve through encoding to docId see #153
Will still require implementation here to expose to the API

@EvanHahn EvanHahn added mvp Requirement for MVP and removed post-mvp de-scoped to after MVP labels May 14, 2024
@EvanHahn EvanHahn assigned tomasciccola and EvanHahn and unassigned tomasciccola Jun 6, 2024
EvanHahn added a commit that referenced this issue Jun 10, 2024
Turns `createdAt` into `deviceId`.

Partly addresses [#136].

[#136]: #136
EvanHahn added a commit that referenced this issue Jun 25, 2024
Turns `createdAt` into `deviceId`.

Partly addresses [#136].

[#136]: #136
@EvanHahn EvanHahn removed the mvp Requirement for MVP label Sep 19, 2024
@EvanHahn EvanHahn removed their assignment Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants