-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Bug Report: Topic Shows 0 Subscribers #7892
Comments
@ItzNotABug, thanks for creating this issue! 🙏🏼 I can't seem to reproduce 🧐 I added 2 subscribers: And the subscribers count shows 2: Some questions:
{
"$id": "topic-1",
"$createdAt": "2024-03-12T13:55:45.097+00:00",
"$updatedAt": "2024-03-12T13:55:45.097+00:00",
"name": "Topic 1",
"emailTotal": 1,
"smsTotal": 0,
"pushTotal": 1,
"subscribe": [
"users"
]
} |
@stnguyen90, I tried by recreating a topic. The result was still the same. Appwrite: {
"total":1,
"topics":[
{
"$id":"general",
"$createdAt":"2024-04-02T05:56:26.034+00:00",
"$updatedAt":"2024-04-02T05:56:26.034+00:00",
"name":"General",
"emailTotal":0,
"smsTotal":0,
"pushTotal":0,
"subscribe":[
"users"
]
}
]
} |
Update: I tried in an incognito tab on Chrome, seems to work fine now. It was probably the cache. Closing this one. |
Reopening this as I can again reproduce this on a |
Update - Source - appwrite/src/Appwrite/Migration/Migration.php Line 268 in f91a8a9
|
@stnguyen90, can I work on this? A quick fix like below suffices? 'default' => $attribute['default'] ?? null, |
We also need to fix the topics collection for people already on 1.5.x. So, the V20.php migration would need to be updated to update the topics collection and set the default after the webhook one: appwrite/src/Appwrite/Migration/Version/V20.php Lines 311 to 340 in 868e57a
|
👟 Reproduction steps
Pre-requisite: Assuming you have a few messaging targets [email, push, etc.] in a project.
0
Screenshots
👍 Expected behavior
Show correct subscribers count.
👎 Actual Behavior
Subscribers count is always 0.
🎲 Appwrite version
Version 1.5.x
💻 Operating system
MacOS
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: