Skip to content

Any way to get last changed timestamp for a dataset? #74

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

Open
matt-deboer opened this issue Jan 25, 2019 · 2 comments
Open

Any way to get last changed timestamp for a dataset? #74

matt-deboer opened this issue Jan 25, 2019 · 2 comments

Comments

@matt-deboer
Copy link
Contributor

Question: is there currently any method to get the last changed timestamp for a data set?

By "last change", I mean a value that is updated whenever anything changes about the data set, including annotations added/removed/modified.

@jsbroks
Copy link
Owner

jsbroks commented Jan 25, 2019

No there is not. Whats the reason for needing this?
You could write a query for the mongodb

@matt-deboer
Copy link
Contributor Author

My goal is to watch for changes to a dataset, and when they occur, export the coco.json and convert it back into the dataset's original format. This is to support updates to annotations being reflected back to the filesystem in their original format as quickly as possible, without having to perform manual export and conversion via the UI.

Currently, I'm just pulling the /annotation/ endpoint on an interval, and taking a sha256 of the contents to compare; it works okay, but is not the most efficient.

From a brief bit of research, it seems like you'd have to store a last_modified timestamp field on the annotation and dataset documents to support this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants