Darshan

Results 96 comments of Darshan

@stnguyen90, I tried by recreating a topic. The result was still the same. Appwrite: `1.5.4` `JSON` for the get topic api call - ```json { "total":1, "topics":[ { "$id":"general", "$createdAt":"2024-04-02T05:56:26.034+00:00",...

Update: I tried in an incognito tab on Chrome, seems to work fine now. It was probably the cache. Although now there's a different issue, something with the state I...

Reopening this as I can again reproduce this on a `1.5.7`, self-hosted instance.

Updated specs - Topic shows 0 - ![topic-shows-no-subscribers](https://github.com/appwrite/appwrite/assets/20625965/6147e2c7-5d1b-4d56-a0a6-351ff6eefb84) Topic has 2 subs - ![topic-has-subcribers](https://github.com/appwrite/appwrite/assets/20625965/8c784bfa-e43b-41db-a176-bc5f58a28c49) --- JSON Responses - 1. Topic Call ```json { "$id":"test", "$createdAt":"2024-06-10T08:06:29.493+00:00", "$updatedAt":"2024-06-10T08:06:29.493+00:00", "name":"Test Topic", "emailTotal":0, "smsTotal":0,...

Update - The issue lies in the migration script where no `default` is provided so it resorts to `NULL` which doesn't really perform an increment on the attribute. Source -...

@stnguyen90, can I work on this? I see that the `config/collections.php` includes the default values, just not the migration. A quick fix like below suffices? ```php 'default' => $attribute['default'] ??...