Skip to content

sendRoleSearchRequest returns role doesn't exist for some roles #370

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sdgun opened this issue Jun 21, 2021 · 2 comments
Closed

sendRoleSearchRequest returns role doesn't exist for some roles #370

sdgun opened this issue Jun 21, 2021 · 2 comments

Comments

@sdgun
Copy link
Collaborator

sdgun commented Jun 21, 2021

Steps
Go to https://platform.topcoder-dev.com/taas/myteams/createnewteam
Click Select on the SELECT A ROLE box
Select Role 'support Engineer' and search
Check the sendRoleSearchRequest API response

Current behavior
Shows a blank page

sendRoleSearchRequest API response returns message: "id: 8c76a436-3e39-4c09-8c88-6983ebd5bcc1 "Role" doesn't exists."

Console error observed:
image

2021-06-21_13-31-28.mp4
@eisbilir
Copy link
Member

@nikolay83
Role table in the UI gets the roles from ES and when we search roles via taas-teams/sendRoleSearchRequest it uses DB
Right now, Support Engineer role is only exists in ES. So it causes that blank page after role search request is sent.

Postman 2021-06-24 00 39 23
Postman 2021-06-24 00 40 10

Reindexing is needed to fix this issue.

@urwithat
Copy link
Contributor

The mentioned role exists in ES and not in DB.
I’ve synched the roles now on the dev environment, why did the data get out of sync on ES vs DB!
Note: While investigating I found 9 active roles in DB vs 6 in ES, was this due to Bus Api being down? Needs to be investigated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants