codecov / engineering-team

This is a general repo to use with GH Projects
1 stars 1 forks source link

Codecov should be updating the username in the Database with whatever BB gives us #459

Open jessecodecov opened 1 year ago

jessecodecov commented 1 year ago

Customers are changing their username in BitBucket but, Codecov is not picking up on this updated username change in from the API / Gazeebo.

@scott-codecov tested this and confirmed we are not updating username in Codecov when we should be

Relevant internal Slack thread.. https://l.codecov.dev/wLutOR

scott-codecov commented 1 year ago

It seems like this should be happening based on the code here: https://github.com/codecov/codecov-api/blob/main/codecov_auth/views/base.py#L319-L321. But it did not update my owner username when I tested this out.

I verified that the BB API (https://bitbucket.org/api/2.0/user) does correctly return the updated username. I'm not really sure why that's not making it into the database.