Skip to content

Conversation

@maxceem
Copy link
Collaborator

@maxceem maxceem commented Oct 19, 2020

This fix to avoid the issue with a delay of ES indexing after moving from RabbitMQ to Kafka in Project Service, see topcoder-platform/tc-project-service#584 (comment).

@vikasrohit
Copy link

@maxceem how does it fixes the delay in indexing? It is still reloading the page which might get old data. Should we put explicitly delay of 5 seconds like member acceptance?

@maxceem
Copy link
Collaborator Author

maxceem commented Oct 23, 2020

@vikasrohit page should not be reloaded after this fix. Is it still reloading for you?

@vikasrohit
Copy link

Nopes, I didn't try, I just tried to interpret the code.

@maxceem
Copy link
Collaborator Author

maxceem commented Oct 23, 2020

I've removed the reference to the action loadProjectDashboard as it's not called to keep things clear.

@vikasrohit
Copy link

ok, so how the problem of delay is solved with this change?

@maxceem
Copy link
Collaborator Author

maxceem commented Oct 23, 2020

yes, as per my local testing.

@vikasrohit
Copy link

Okay, however, my concern is that what is solution that we implemented in this PR to resolve the delay issue? I am not seeing the 5 second delay added.

@maxceem
Copy link
Collaborator Author

maxceem commented Oct 23, 2020

Workflow before was:

  • POST /phases - create a new phase on the server
  • GET /phases - load all the phases from the server as we expected cascading updates
  • redraw all the phases which we loaded from the server

Workflow now:

  • POST /phases - create a new phase on the server
  • just add a newly added phase client-side without reloaded all the phases

So we don't need a 5 seconds delay, because we don't reload the phases. And POST /phases endpoint returns newly created phase immediately.

@vikasrohit
Copy link

Gotcha!!

@vikasrohit vikasrohit merged commit f3931dc into dev Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants