Skip to content

Repository Location field should suggest previously known sites - #1114

Closed
subyssurendran666 wants to merge 1 commit into
eclipse-equinox:masterfrom
subyssurendran666:auto_complete_support_add_repository_dialog_1113
Closed

Repository Location field should suggest previously known sites#1114
subyssurendran666 wants to merge 1 commit into
eclipse-equinox:masterfrom
subyssurendran666:auto_complete_support_add_repository_dialog_1113

Conversation

@subyssurendran666

@subyssurendran666 subyssurendran666 commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

When adding or editing a repository, the Location field offered no suggestions, requiring users to remember and retype repository URLs manually. This change adds content assist to RepositoryNameAndLocationDialog.createLocationField() using a new TextAutoCompleteField helper.
The content assist suggests previously disabled repository URLs, making it easier to re-add repositories that are no longer discoverable through the existing UI. Implementing this in RepositoryNameAndLocationDialog automatically covers the Add Repository, Edit Repository.

Fixes: #1113

image image

@merks

merks commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Just reading on my phone, it sounds like add will suggest repositories that are already present and don’t need to be added because they are already present. Maybe I overlooked something?

@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown

Test Results

   18 files  ± 0     18 suites  ±0   29m 36s ⏱️ + 2m 1s
2 201 tests + 9  2 198 ✅ + 9  3 💤 ±0  0 ❌ ±0 
5 257 runs  +27  5 248 ✅ +27  9 💤 ±0  0 ❌ ±0 

Results for commit 9746410. ± Comparison against base commit a09757e.

♻️ This comment has been updated with latest results.

@subyssurendran666

Copy link
Copy Markdown
Contributor Author

Just reading on my phone, it sounds like add will suggest repositories that are already present and don’t need to be added because they are already present. Maybe I overlooked something?

That is a good point. You are right that re-adding an already enabled repository would effectively be a no-op.

The primary use case I had in mind was adding a new repository URL that's similar to an existing one. For example, if releases/2024-06 is already known, and the user wants to add releases/2026-06, they can select the existing URL from the suggestions and simply update the version suffix instead of typing the entire URL again.

I was thinking of it as being similar to a browser's address bar, where previously used URLs are suggested even if the user intends to navigate to a slightly different one.

@merks

merks commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

I find the use case not really so strong. Here the combo box already includes the available repositories.

image

And I can do my editing in place after picking one from the list:

image

That Add... button doesn't help need helpful additions.

So in general this seems marginally useful.


Of course it doesn't help in the Eclipse SDK, but the Repository Explorer is in every EPP package and it provides access to the indexed repositories available on the download server:

image

@subyssurendran666

Copy link
Copy Markdown
Contributor Author

Thank you for the detailed explanation. I hadn't considered that the "Work with:" combo already supports editing the selected URL in place. You are right that it already covers the URL variation scenario I had in mind.

I agree that including enabled repositories does not seem to add much value. I will update the implementation to suggest only disabled repositories, since those are not discoverable through the existing UI. That keeps the feature focused on the remaining gap. I will update the patch accordingly.

@subyssurendran666
subyssurendran666 force-pushed the auto_complete_support_add_repository_dialog_1113 branch from fcf8477 to 51dc32a Compare August 3, 2026 15:01
@subyssurendran666

Copy link
Copy Markdown
Contributor Author

I have updated the implementation. Now, only disabled repository URLs are shown in the autocomplete suggestions.

@HannesWell

Copy link
Copy Markdown
Member

Now, only disabled repository URLs are shown in the autocomplete suggestions.

I have to admit that a I'm not sure if this relatively large change carries it's own weight by providing assistance for a very specific use-case.

Furthermore did you write the tests yourself or are they AI generated? In case of the latter, please check if they are really useful. AI often generates tests that are basically getter-tests.

The Location field in RepositoryNameAndLocationDialog was a plain text
box with no autocomplete, unlike the "Work with:" combo on the Available
Software page. This change adds content assist to the Location field
using a new TextAutoCompleteField helper, similar to the existing
ComboAutoCompleteField.
The autocomplete suggestions are populated with disabled repository
URLs, allowing users to easily re-add repositories that were previously
disabled but are no longer available through the existing UI.

Fixes: eclipse-equinox#1113
@subyssurendran666
subyssurendran666 force-pushed the auto_complete_support_add_repository_dialog_1113 branch from 51dc32a to 9746410 Compare August 4, 2026 04:50
@subyssurendran666

Copy link
Copy Markdown
Contributor Author

Thank you for the feedback. I revisited the tests and removed a few that did not add much value.

I should also mention that I used AI to help write the tests by providing it with the exact scenarios I wanted to cover. I reviewed the generated tests before including them, but your comment made me take another look, and I realised a few of them were indeed unnecessary. I have removed those and retained only the ones that validate the intended behaviour.

You are right that the use case is quite specific. The intention was to help users who had previously added a repository, later disabled it, and now want to add it again. Since disabled repositories are no longer available through the "Work with:" combo, and the Repository Explorer is intended for discovering repositories rather than recalling previously disabled ones, I thought this would help close that small gap.

That said, I agree it's a fairly narrow use case. If you feel the feature does not justify the additional code, I'm perfectly happy to drop the change.

@merks

merks commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

I would prefer we don't add complexity to support this. If one disables an update site, it's even less likely one wants to use it, and of course one can easily enable it.

@subyssurendran666

Copy link
Copy Markdown
Contributor Author

Thank you for the review and the feedback. I understand your reasoning. I will close the PR.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add autocomplete support for repository URLs in the Add/Edit Repository dialogs

3 participants