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

Save timestamp when sharing users with a database #237

Open
Fubinator opened this issue Nov 12, 2020 · 0 comments
Open

Save timestamp when sharing users with a database #237

Fubinator opened this issue Nov 12, 2020 · 0 comments

Comments

@Fubinator
Copy link
Contributor

Fubinator commented Nov 12, 2020

It can be helpful to know since when a user has a certain shared database. A use case would be: There are notifications on a database level. If I add a user to a database that exists for example for 3 years with hundreds or even thousands of records, he should not get these notifications from old entries. The easiest way for me would be to filter out all notifications that were created before his timestamp when the database was shared with him.

This could be implemented into getDatabases where the users for each database are returned in the users array. An example for an entry of the users array would be:

{ 
  username: "testuser",
  isOwner: false,
  readOnly: false,
  resharingAllowed: false,
  receivedFromUsername: "TestOwner",
  dateShared: "2020-11-02T13:42:11.589Z"
}
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

1 participant