massenergize / frontend-portal

Front End Code for the MassEnergize Community Portal. The community portal is customized for each participating community, and has the canonical URL https://community.massenergize.org/<community-name>/. For example, https://community.massenergize.org/wayland/.
MIT License
5 stars 2 forks source link

Creating a new event shows on the campaign's view as unapproved and only disappears after a reload #1346

Closed boatengjephthah27 closed 3 months ago

boatengjephthah27 commented 3 months ago

DESCRIPTION

Created/suggested events upon creation shows at the campaigns tab with the pending approval tag, but disappears after a refresh denying the user access to edit the created event

USER STORY

N/A

Possible Scenarios N/A

Acceptance Criteria

Additional information

https://github.com/massenergize/frontend-portal/assets/104381959/99b46d19-6a25-4ed7-8703-d9794d5206bc

boatengjephthah27 commented 3 months ago

@BradHN1 Do you think this is the right implementation for this?

abdullai-t commented 3 months ago

This actually isn't a bug. Newly created events on the user portal will appear in the campaign tab if the time difference between the start date and time is more than a week. For the case of newly created events not showing after a reload, this occurs if the logged-in user credentials are associated with either a community admin or super admin account.