atsign-foundation / at_server

The software implementation of Atsign's core technology
https://docs.atsign.com
BSD 3-Clause "New" or "Revised" License
39 stars 13 forks source link

feat: Include expiredAt and availableAt in the notify:list verb #1978

Closed sitaram-kalluri closed 2 weeks ago

sitaram-kalluri commented 4 weeks ago

Describe the bug

The notify:list verb returns the list of notifications. Add "expiresAt" and "availableAt" to the notification response.

Steps to reproduce

  1. Connect to the secondary server and authenticate the connection.
  2. Run "notify:list" command.
  3. Following is the sample response
    @sitaram@notify:list
    data:[{"id":"f537cc95-f0fc-48ee-89a1-17ecd3ab464c","from":"@sitaram","to":"@sitaram","key":"@sitaram:phone@sitaram","value":null,"operation":"update","epochMillis":1717657308590,"messageType":"MessageType.key","isEncrypted":true,"metadata":{"encKeyName":null,"encAlgo":null,"ivNonce":null,"skeEncKeyName":null,"skeEncAlgo":null}}]

Expected behavior

To the above "notify:list" response, add "expiresAt" and "availableAt" to the metadata.