pulumi/pkg/backend/filestate
bors[bot] f69c473d68
Merge #12798
12798: Update DoesProjectExist to not list all projects r=abhinav a=neverbeenthisweeb

<!--- 
Thanks so much for your contribution! If this is your first time contributing, please ensure that you have read the [CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md) documentation.
-->

# Description

<!--- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. -->

Add `projectReferenceStore.ProjectExists`.

`projectReferenceStore.ProjectExists` enables us to search for a specific project in `localBackend.DoesProjectExist`.

**Tasks**

- [X] Add `projectReferenceStore.ProjectExists`
- [X] Replace `projectReferenceStore.ListProjects` with `projectReferenceStore.ProjectExists` in `localBackend.DoesProjectExist`

Fixes https://github.com/pulumi/pulumi/issues/12547

## Checklist

<!--- Please provide details if the checkbox below is to be left unchecked. -->
- [X] I have added tests that prove my fix is effective or that my feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [X] I have run `make changelog` and committed the `changelog/pending/<file>` documenting my change
<!--
If the change(s) in this PR is a modification of an existing call to the Pulumi Cloud,
then the service should honor older versions of the CLI where this change would not exist.
You must then bump the API version in /pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi Cloud API version
  <!-- `@Pulumi` employees: If yes, you must submit corresponding changes in the service repo. -->


Co-authored-by: neverbeenthisweeb <rf.ramadhana@gmail.com>
2023-05-03 00:19:27 +00:00
..
backend.go Merge #12798 2023-05-03 00:19:27 +00:00
backend_legacy_test.go pkg/filestate: Plumb context 2023-04-10 15:53:32 -07:00
backend_test.go pkg/filestate: Plumb context 2023-04-10 15:53:32 -07:00
bucket.go pkg/filestate: Plumb context 2023-04-10 15:53:32 -07:00
bucket_test.go pkg/filestate: Plumb context 2023-04-10 15:53:32 -07:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
lock.go pkg/filestate: Plumb context 2023-04-10 15:53:32 -07:00
meta.go refactor(filestate): Don't use t.Setenv in tests 2023-03-31 16:29:06 -07:00
meta_test.go refactor(filestate): Don't use t.Setenv in tests 2023-03-31 16:29:06 -07:00
snapshot.go pkg/filestate: Plumb context 2023-04-10 15:53:32 -07:00
stack.go filestate/internal: Use stack reference, not name 2023-03-16 14:44:33 -07:00
state.go pkg/filestate: Plumb context 2023-04-10 15:53:32 -07:00
state_test.go filestate: Re-add project support 2023-03-31 13:21:36 -07:00
store.go Remove path pgk named import 2023-05-02 07:33:49 +07:00
store_test.go Merge #12798 2023-05-03 00:19:27 +00:00