anitab-org / anitab-org/anitab-forms-web
Bug: Streamwise messages not showing on zulip stat card to admin
- Lingua principale
- JavaScript
- Stelle
- 44
- Fork
- 81
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### Describe the bug
Streamwise messages are not showing on zulip stat to admin because the condition to check streamwise messages is wrong.
We need to delete this condition of checking all streamwise messages by checking the message in the newcomer stream, as it is not required. To test the message
### To Reproduce
Steps to reproduce the behavior:
1. Go to http://localhost:8000/admin/osp/userinformation/
2. Edit one of the admin user-information and insert 345277 in zulip id.
3. Now go to this http://localhost:3000/ and log in using the credentials of the user which you have edited previously.
4. Reload the zulip stats and now you can see that streamwise messages do not show up.
### Expected behavior
Streamwise messages do not show up when the student has no message in the newcomer stream.
### Screenshots

### Desktop (please complete the following information):
- OS: Ubuntu
- Browser: Chrome
- Version: _
### How to solve
To solve this issue remove the condition of checking the stream messages by checking message in newcomer stream.
https://github.com/anitab-org/open-source-programs-web/blob/ab18727af5a5e30829e4d07935a218c6d8a02762/src/components/Zulip.js#L39-L51
I have tested by removing it, it is working fine.
### Time Required to solve this issue
- 10 to 15 minutes.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.