Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement "Add to project" action for querysync. #5246

Closed
wants to merge 0 commits into from

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Aug 15, 2023

Implement "Add to project" action for querysync.

Create a new action rather than updating the existing AddSourceToProjectAction since there is little in common between the new and existing.

The new action works by finding candidate packages by running a query on the selected directory until it finds one with some build packages defined in it. If it finds a directory with a single package, it also queries parent directories to offer the user some choice. This also ensures that the directory chosen is always meaningful, i.e. contains some build packages. Adding a directory with no packages defined inside would break subsequent sync queries.

Use a popup to show the packages that were found, allowing the user to choose. Show some progress UI while running the queries, allowing the user to cancel.

Use the existing support to edit the local project view, and then perform a full project sync to update the project structure.

Add a test case for the core logic inside CandidatePackageFinder.

@copybara-service copybara-service bot added the copybara-exported Added to PRs opened by copybara-service label Aug 15, 2023
@copybara-service copybara-service bot force-pushed the test_554841829 branch 3 times, most recently from f7d1821 to 3c60ab3 Compare August 15, 2023 14:30
@copybara-service copybara-service bot force-pushed the test_554841829 branch 4 times, most recently from 5533dd5 to b8bcefc Compare September 12, 2023 12:57
@copybara-service copybara-service bot closed this Sep 12, 2023
@copybara-service copybara-service bot deleted the test_554841829 branch September 12, 2023 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
copybara-exported Added to PRs opened by copybara-service
Projects
Development

Successfully merging this pull request may close these issues.

None yet

0 participants