appwrite / appwrite

Your backend, minus the hassle.
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
45.61k stars 4.04k forks source link

🐛 Bug Report: Git Setting not refresh after a disconnection #8976

Open ffex opened 1 week ago

ffex commented 1 week ago

👟 Reproduction steps

This bug happens when I try to change a linked repository in a functions in the cloud platform.

  1. Open a function connected with GitHub
  2. Go to Settings tab
  3. In the Configuration card, expand the Git setting
  4. Click on the button Disconnect repository
  5. Confirm with the button Disconnect in the dialog
  6. Appear the message that confirms the disconnection has happened
  7. I click Update button
  8. But in the Git settings, nothing happens

👍 Expected behavior

It should refresh the Git setting and permit you to link the new repository without refreshing the page.

👎 Actual Behavior

The operation is successful, but the UI has to refresh to link the new repository.

If you refresh it, it will appear normal, and you can link the new repository.

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

MacOS

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

🏢 Have you read the Code of Conduct?

ffex commented 1 week ago

There is the same problem in the opposite situation:

An unlinked function to link a new repository when you complete the process, the Git settings do not refresh.

I have to open another issue for this, or is that okay? (I'm sorry, but I'm starting right now to contribute!)

DH-555 commented 1 week ago

Since it could be the same issue causing both things, I think It's not needed to create another issue