Content
View differences
Updated by Sagar Gurung almost 2 years ago
We have been talking about this feature before, but I cannot find anything in writing - I guess that is the reason we are coming back to it
original PR with some discussion on how the API should work [https://github.com/nextcloud/integration\_openproject/pull/67](https://github.com/nextcloud/integration_openproject/pull/67)
To show the most modifier of a file we can tap into the activity app. It generally works to pull activities, see: [https://github.com/nextcloud/integration\_openproject/pull/179](https://github.com/nextcloud/integration_openproject/pull/179)
With that approach there will be multiple short-comings / issues:
1. it is not guaranteed that the activity app is installed or enabled
2. the wrong version of the activity app might be installed (e.g. if an update changes the API / DB structure)
3. a user can only see those activities that happened after she got access to the file (received a share), activities before that will not be displayed
we could potentially overcome that by requesting the activities in the context of the file-owner
4. activities can expire, see [https://github.com/nextcloud/activity/blob/ab7caa4eca308bd0d40962b85c179919f6c13674/lib/BackgroundJob/ExpireActivities.php](https://github.com/nextcloud/activity/blob/ab7caa4eca308bd0d40962b85c179919f6c13674/lib/BackgroundJob/ExpireActivities.php)
With all that, my understanding is that we cannot really rely on the data from the expiry app, so the question is then, is that still useful to have?
original PR with some discussion on how the API should work [https://github.com/nextcloud/integration\_openproject/pull/67](https://github.com/nextcloud/integration_openproject/pull/67)
To show the most modifier of a file we can tap into the activity app. It generally works to pull activities, see: [https://github.com/nextcloud/integration\_openproject/pull/179](https://github.com/nextcloud/integration_openproject/pull/179)
With that approach there will be multiple short-comings / issues:
1. it is not guaranteed that the activity app is installed or enabled
we could potentially overcome that by requesting the activities in the context of the file-owner