hcengineering / platform

Huly — All-in-One Project Management Platform (alternative to Linear, Jira, Slack, Notion, Motion)
https://huly.io
Eclipse Public License 2.0
5.39k stars 479 forks source link

Cannot archive items in inbox #5084

Open ThetaDR opened 3 months ago

ThetaDR commented 3 months ago

deleteContextNotifications

[
    {
        "_id": "66052e730c758fc0cc029bb2",
        "_class": "core:class:TxRemoveDoc",
        "space": "core:space:Tx",
        "modifiedBy": "63bbaa5093f7b75720ef0f11",
        "modifiedOn": 1711615603753,
        "objectId": "660503136c55e9a9157f0f64",
        "objectClass": "notification:class:ActivityInboxNotification",
        "objectSpace": "650d7e3b667f87b0690e5e81"
    },
    {
        "_id": "66052e730c758fc0cc029bb3",
        "_class": "core:class:TxRemoveDoc",
        "space": "core:space:Tx",
        "modifiedBy": "63bbaa5093f7b75720ef0f11",
        "modifiedOn": 1711615603753,
        "objectId": "660503146c55e9a9157f0f9a",
        "objectClass": "notification:class:CommonInboxNotification",
        "objectSpace": "650d7e3b667f87b0690e5e81"
    },
    {
        "_id": "66052e730c758fc0cc029bb4",
        "_class": "core:class:TxRemoveDoc",
        "space": "core:space:Tx",
        "modifiedBy": "63bbaa5093f7b75720ef0f11",
        "modifiedOn": 1711615603753,
        "objectId": "660509b16c55e9a9157f2a36",
        "objectClass": "notification:class:ActivityInboxNotification",
        "objectSpace": "650d7e3b667f87b0690e5e81"
    },
    {
        "_id": "66052e730c758fc0cc029bb5",
        "_class": "core:class:TxUpdateDoc",
        "space": "core:space:Tx",
        "modifiedBy": "63bbaa5093f7b75720ef0f11",
        "modifiedOn": 1711615603753,
        "objectId": "660503136c55e9a9157f0f62",
        "objectClass": "notification:class:DocNotifyContext",
        "objectSpace": "650d7e3b667f87b0690e5e81",
        "operations": {
            "lastViewedTimestamp": 1711615603753
        }
    }
]

deleteContextNotifications

[
    {
        "_id": "66052e730c758fc0cc029bb2",
        "_class": "core:class:TxRemoveDoc",
        "space": "core:space:Tx",
        "modifiedBy": "63bbaa5093f7b75720ef0f11",
        "modifiedOn": 1711615603753,
        "objectId": "660503136c55e9a9157f0f64",
        "objectClass": "notification:class:ActivityInboxNotification",
        "objectSpace": "650d7e3b667f87b0690e5e81"
    },
    {
        "_id": "66052e730c758fc0cc029bb3",
        "_class": "core:class:TxRemoveDoc",
        "space": "core:space:Tx",
        "modifiedBy": "63bbaa5093f7b75720ef0f11",
        "modifiedOn": 1711615603753,
        "objectId": "660503146c55e9a9157f0f9a",
        "objectClass": "notification:class:CommonInboxNotification",
        "objectSpace": "650d7e3b667f87b0690e5e81"
    },
    {
        "_id": "66052e730c758fc0cc029bb4",
        "_class": "core:class:TxRemoveDoc",
        "space": "core:space:Tx",
        "modifiedBy": "63bbaa5093f7b75720ef0f11",
        "modifiedOn": 1711615603753,
        "objectId": "660509b16c55e9a9157f2a36",
        "objectClass": "notification:class:ActivityInboxNotification",
        "objectSpace": "650d7e3b667f87b0690e5e81"
    },
    {
        "_id": "66052e730c758fc0cc029bb5",
        "_class": "core:class:TxUpdateDoc",
        "space": "core:space:Tx",
        "modifiedBy": "63bbaa5093f7b75720ef0f11",
        "modifiedOn": 1711615603753,
        "objectId": "660503136c55e9a9157f0f62",
        "objectClass": "notification:class:DocNotifyContext",
        "objectSpace": "650d7e3b667f87b0690e5e81",
        "operations": {
            "lastViewedTimestamp": 1711615603753
        }
    }
]
BykhovDenis commented 3 months ago

Alexey Zinovyev I think it’s fixed and can be closed?

lexiv0re commented 3 months ago

Denis Bykhov It must be fixed but I still wanna investigate the objects from the transactions log to see why Inbox deletes something from the project’s space.

lexiv0re commented 2 months ago

Kristina Fefelovais it expected and by design that all these notification-related items live in the tracker project space? 650d7e3b667f87b0690e5e81 - is the tracker project space. Are all the notifications added to the object’s space?

kristina-fefelova commented 2 months ago

No, I think I need to move notifications to public space (notification.space.Notification or something like)

BykhovDenis commented 2 months ago

I think notifications should be in related object spaces (for it disappear when we have not access). @haiodo what do you think?

lexiv0re commented 3 weeks ago

I think it will be re-visited during the spaces concept overhaul being done by Denis Bykhov so closing this one.