topcoder-platform / timeline-wall-api

Topcoder timeline wall back end APIs and support code
0 stars 1 forks source link

Approvals number should increase automatically #18

Closed Dara-K closed 1 year ago

Dara-K commented 2 years ago

Approvals number should increase automatically without the admin refreshing the page to see new events added

igoroshko commented 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.

igoroshko commented 1 year ago

@Dara-K any update on this one?

Dara-K commented 1 year ago

@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.

igoroshko commented 1 year ago

@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.

igoroshko commented 1 year ago

Let's do periodical API calls every 5 minutes to get updated list of pending approval events.

suppermancool commented 1 year ago

@igoroshko done in https://github.com/topcoder-platform/community-app/pull/6726

igoroshko commented 1 year ago

@suppermancool can you please fix the merge confilict?

suppermancool commented 1 year ago

@igoroshko done

Dara-K commented 1 year ago

This works, thank you both!

Please close this ticket @igoroshko