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

Auto-record data on document create / update #1533

Open
wohali opened this issue Aug 7, 2018 · 0 comments
Open

Auto-record data on document create / update #1533

wohali opened this issue Aug 7, 2018 · 0 comments

Comments

@wohali
Copy link
Member

wohali commented Aug 7, 2018

@wohali:
Think: timestamp, CouchDB username. Would be added by the coordinating node in the cluster.

@akircher:
Could auto-recording timestamp and username be solved more generically? Such as a "calculated field" function. This function could return a timestamp, username, or anything else that could be calculated from the doc (and maybe the req) object. I know this would be very helpful with my current project.

@wohali:
That is doable today via update handlers, and necessarily requires a JS-based implementation, which is not always desirable for performance reasons.

@wohali wohali changed the title Auto-record document timestamp Auto-record data on document create / update Aug 7, 2018
@wohali wohali added this to In Discussion in Roadmap Aug 7, 2018
@wohali wohali moved this from Proposed for 3.x to Proposed for 4.x+ in Roadmap Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Roadmap
  
Proposed for 4.x+
Development

No branches or pull requests

1 participant