Error shows in UI when connector is configured to sync to an alias
Bug Description
When trying to configure a connector to an alias the UI shows an 'unexpected error' occurs.
Having a connector sync to an alias should be able to be done via DevTools or CLI after this issue was merged so this will involve some triaging to see if the fix is broken or if it's just a UI issue.
To Reproduce
Steps to reproduce the behavior:
- Configure a connector to sync to an alias via API
- Click on 'Index Name' of connector in Connectors dashboard
- Notice Error
Expected behavior
Users should be able to manually configure their connectors to sync to an alias
Screenshots
https://github.com/user-attachments/assets/1a725ccf-d214-4ef0-93be-a93832224535
Environment
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Additional context
Agree with the above, I also had to set it up via dev tools but after that the UI is broken, and you have to manage everything via dev tools. In addition to that, the api key the connector creates (I only did this with the sharepoint connector so i'm not sure if it also applies to others), needs to be amended to support both indexname-alias and indexname-content-* otherwise you'll get errors at the end of each sync as it tries to tally up the documents added to it.