Closed Dara-K closed 1 year ago
@Dara-K do you mean it should continuosly send requests to backend to check for a new events?
Please note when admin adds new event it doesn't need approval, so the count won't change in this case.
@Dara-K any update on this one?
@igoroshko I mean that if a person submits an event and me as an admin I am into admin page, and keep approving things, that new event is not showing on my page unless I refresh the screen.
@Dara-K we can do that, but it adds a bit more complexity and more network requests that we actually need. And I don't think we are doing it anywhere else on Topcoder website. For example, when a new challenge is posted, users will have to refresh the page to see that.
Let's do periodical API calls every 5 minutes to get updated list of pending approval events.
@igoroshko done in https://github.com/topcoder-platform/community-app/pull/6726
@suppermancool can you please fix the merge confilict?
@igoroshko done
This works, thank you both!
Please close this ticket @igoroshko
Approvals number should increase automatically without the admin refreshing the page to see new events added