#421 Avatar change in Dashboard when changing username

Open
opened 3 weeks ago by Leopardus_Infernalis · 10 comments

I found a few weeks ago (sorry that I didn't open an issue sooner) that changing one's username will change one's avatar regarding the commit history. I've attached some screen-shots if that helps.

Within the 'after' picture one can see that the avatar to the left of the SHA1 is not the same as the avatar in the 'before' picture. I'm guessing that it may be a default avatar before codeberg generates one for each user. Reverting the username resolves this.

This isn't a major issue, but I feel that I should let everyone know.

I found a few weeks ago (sorry that I didn't open an issue sooner) that changing one's username will change one's avatar regarding the commit history. I've attached some screen-shots if that helps. Within the 'after' picture one can see that the avatar to the left of the SHA1 is not the same as the avatar in the 'before' picture. I'm guessing that it may be a default avatar before codeberg generates one for each user. Reverting the username resolves this. This isn't a major issue, but I feel that I should let everyone know.
6543 commented 3 weeks ago
Collaborator

Just add the email addres you have used to commmit to your account

Just add the email addres you have used to commmit to your account
6543 added the
question
label 3 weeks ago

Sorry for my confusion; are you saying that I will need to change the recorded email address on my local repo and then make a commit to codeberg? Or do I add the email address to codeberg itself via the User Settings?

Thanks for the quick response.

Sorry for my confusion; are you saying that I will need to change the recorded email address on my local repo and then make a commit to codeberg? Or do I add the email address to codeberg itself via the User Settings? Thanks for the quick response.
6543 commented 3 weeks ago
Collaborator

try the second one

try the second one

I’ve added ‘Leopardus_Infernalis@noreply.codeberg.org’ to the list of email addresses and the problem persists. I will swap machines and rebase the commit history (or re-rebase, as I did so earlier this week and promptly broken everything…) to see if this resolves the error.

I’ve added ‘Leopardus_Infernalis@noreply.codeberg.org’ to the list of email addresses and the problem persists. I will swap machines and rebase the commit history (or re-rebase, as I did so earlier this week and promptly broken everything…) to see if this resolves the error.

I didn't rebase the commit history, but I did change my local git email address to 'Leopardus_Infernalis@noreply.codeberg.org' and made a simple commit to the remote repo. This commit shows the avatar. I'm guessing that if a user changes their username on codeberg, that codeberg dissociates previous commits made under the old alias.

Thank you every much for your help. Sorry if the sounds silly, but should I close this issue now, as we know how this is happening?

I didn't rebase the commit history, but I did change my local git email address to 'Leopardus_Infernalis@noreply.codeberg.org' and made a simple commit to the remote repo. This commit shows the avatar. I'm guessing that if a user changes their username on codeberg, that codeberg dissociates previous commits made under the old alias. Thank you every much for your help. Sorry if the sounds silly, but should I close this issue now, as we know how this is happening?
fnetX commented 3 weeks ago
Collaborator

Well, usually if something is unclear, we consider if it's worth adding it to the docs (if not already) to help the next users.

Any opinions here? @n what do you think?

Well, usually if something is unclear, we consider if it's worth adding it to the docs (if not already) to help the next users. Any opinions here? @n what do you think?
6543 commented 3 weeks ago
Collaborator

The info that you did rename yourselfe was missing/i missed somehow ... this explains it :)

The info that you did rename yourselfe was missing/i missed somehow ... this explains it :)
n commented 1 week ago

@fnetX it may be useful to add a note to the Configuring Git article about getting commits "identified" on the web UI. However, I'm not sure how to reference this particular issue in the docs. Maybe tell people how to rebase their author info if it gets changed?

@fnetX it may be useful to add a note to the [Configuring Git](https://docs.codeberg.org/git/configuring-git/) article about getting commits "identified" on the web UI. However, I'm not sure how to reference this particular issue in the docs. Maybe tell people how to rebase their author info if it gets changed?
fnetX commented 1 week ago
Collaborator

What do you mean by 'referencing this [...] issue'? Adding more notes about how this identification works would surely be useful.

I doubt that rebasing is a good idea, it's nearly impossible to rewrite git history in large software projects.

What do you mean by 'referencing this [...] issue'? Adding more notes about how this identification works would surely be useful. I doubt that rebasing is a good idea, it's nearly impossible to rewrite git history in large software projects.
n commented 6 days ago

Adding more notes about how this identification works would surely be useful.

I do agree with adding documentation about identifying commits. However, if (like in this case) somebody uses their noreply.codeberg.org address and then switches their username, I think the only way to handle it is a rebase but of course it is not ideal.

> Adding more notes about how this identification works would surely be useful. I do agree with adding documentation about identifying commits. However, if (like in this case) somebody uses their noreply.codeberg.org address and then switches their username, I think the only way to handle it is a rebase but of course it is not ideal.
Sign in to join this conversation.
Loading…
There is no content yet.