Skip to content

"by you" tab doesn't show created or deleted ,files and folders by you #582

Closed

Description

@Babakkamali

Hello I am new to GitHub so if I am not posting this issue or question the right way I sincerely apologize please guide me the right way.
So my problem with Activity app is that in the left menu there is a tab called "by you". I think it should show all of your activities but it doesn't, it does editing but it doesn't show created and deleted files!
You might ask why do I need such log, well that's because I use impersonate app to check users activity and it's fine when you are in "all activities" but it's annoying to also see others activities as well and when you switch to "by you" tab it's not showing created/deleted folders and files for some reason and I couldn't find an proper answer online so I thought I should be asking this here if it's a bug or a feature that is for privacy or something that I don't know!
if there is anyone experienced please help me out and thanks.

Activity

  1. jakobroehrl commented on May 19, 2021

    @jakobroehrl
    Contributor

    created or deleted folders/files are only shown in the "all activities" filter

    image
    image

  2. self-assigned this
    on Jul 2, 2021
  3. jakobroehrl commented on Jul 6, 2021

    @jakobroehrl
    Contributor

    I did not see any differences in the table:

    MariaDB [nc23]> select * from oc_activity where user='root' and type='file_created' or type='file_deleted' or type='file_changed';
    +-------------+------------+----------+--------------+-------+--------------+-------+--------------+--------------------------------------------------------+---------+---------------+----------------------------------+-------------------------------------------------------------------+-------------+-----------+
    | activity_id | timestamp | priority | type | user | affecteduser | app | subject | subjectparams | message | messageparams | file | link | object_type | object_id |
    +-------------+------------+----------+--------------+-------+--------------+-------+--------------+--------------------------------------------------------+---------+---------------+----------------------------------+-------------------------------------------------------------------+-------------+-----------+
    | 64 | 1625561540 | 30 | file_created | root | root | files | created_self | [{"296":"/new.md"}] | | [] | /new.md | http://localhost/server23/index.php/apps/files/?dir=/ | files | 296 |
    | 65 | 1625561551 | 30 | file_changed | root | root | files | changed_self | [{"296":"/new.md"}] | | [] | /new.md | http://localhost/server23/index.php/apps/files/?dir=/ | files | 296 |
    | 66 | 1625561571 | 30 | file_deleted | root | root | files | deleted_self | [{"178":"/document.txt"}] | | [] | /document.txt | http://localhost/server23/index.php/apps/files/?dir=/ | files | 178 |
    +-------------+------------+----------+--------------+-------+--------------+-------+--------------+--------------------------------------------------------+---------+---------------+----------------------------------+-------------------------------------------------------------------+-------------+-----------+

    And I find in the Data.php no special filter or so.

  4. jakobroehrl commented on Jul 6, 2021

    @jakobroehrl
    Contributor

    @nickvergessen @artonge
    Could you help me, finding this problem out?

  5. nickvergessen commented on Jul 6, 2021

    @nickvergessen
    Member
  6. nickvergessen commented on Jul 6, 2021

    @nickvergessen
    Member

    The type is not there as a setting anymore.

    I guess we can hack:

    public function getNotificationTypes() {
    $settings = $this->manager->getSettings();
    return array_map(function (ActivitySettings $setting) {
    return $setting->getIdentifier();
    }, $settings);
    }

    to return the deleted ones as well

  7. removed their assignment
    on Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions