Skip to content

Rename 'samples' to 'playground' - #1689

Merged
Drew Noakes (drewnoakes) merged 3 commits into
microsoft:mainfrom
drewnoakes:fix-1682-rename-samples
Jan 19, 2024
Merged

Drew Noakes (drewnoakes) merged 3 commits into
microsoft:mainfrom
drewnoakes:fix-1682-rename-samples

Conversation

@drewnoakes

@drewnoakes Drew Noakes (drewnoakes) commented Jan 18, 2024 •

Copy link
Copy Markdown
Member

Fixes #1682

To avoid potential confusion, we rename this folder. These are not good samples for users to refer to as an example of how to build .NET Aspire applications. There's non-standard stuff in these projects to support development within this repo.

Also add a README.md file in that folder to direct people to the sample repo.

If this change is merged, developers of this repo will need to re-select their startup project.

Microsoft Reviewers: Open in CodeFlow

To avoid potential confusion, we rename this folder. These are not good samples for users to refer to as an example of how to build .NET Aspire applications. There's non-standard stuff in these projects to support development within this repo.

Also add a README.md file in that folder to direct people to the sample repo.
@ghost ghost added the area-integrations Issues pertaining to Aspire Integrations packages label Jan 18, 2024
@mitchdenny

Copy link
Copy Markdown
Member

What was the consensus here from the conversations we had this week? I thought we were going to keep samples as is but stop using it as a playground for trying things out. I've actually put up another PR which adds a src/Playgrounds folder for some Cosmos experimentation I'm doing.

#1697

@mitchdenny

Copy link
Copy Markdown
Member

Note, I don't have a strong opinion on integration vs playgrounds. I just want to make sure that we were moving the samples/eshoplite sample (which is more sample-like rather than a more focused driver project).

@drewnoakes

Copy link
Copy Markdown
Member Author

eShopLite, dapr and orleans are all going to need code that's specific to this repo, which should not be copy/pasted into user projects.

The differences will be in the app hosts. In the projects being moved here, they'll:

  • Suppress the default dashboard.
  • Register this repo's dashboard project as a resource.

As mentioned on Teams, we'll need the app model ordering changes to respect both the workload executable, and also the project resource, so that this mechanism works, allowing us to test with real integration test suites, with only a few modifications to make them work.

@eerhardt

Copy link
Copy Markdown
Member

I think I'd rather use the term "test" somewhere in this name. "TestProjects" or "TestApps". If you really want to use "Integration", I could be OK with "IntegrationTestApps", but I think just "integrations" isn't descriptive enough.

@DamianEdwards

Copy link
Copy Markdown
Member

My 2c: I like simply renaming it to "integrations" or "playground". I think using "test" just isn't correct in this case as we have actual tests in the "tests" directory.

@davidfowl

Copy link
Copy Markdown
Collaborator

I like playground

@eerhardt

Copy link
Copy Markdown
Member

The thinking is that we would never write automated tests against these projects? CI would make sure they build, but we wouldn't ensure they don't break in other ways? And if we wanted an automated test, we would either move or duplicate the project into tests\testproject?

@davidfowl

Copy link
Copy Markdown
Collaborator

Thats right Eric Erhardt (@eerhardt)

@drewnoakes

Copy link
Copy Markdown
Member Author

Renamed integrations to playground and fixed merge conflicts.

@drewnoakes
Drew Noakes (drewnoakes) merged commit d3812df into microsoft:main Jan 19, 2024
@drewnoakes
Drew Noakes (drewnoakes) deleted the fix-1682-rename-samples branch January 19, 2024 06:22
@drewnoakes Drew Noakes (drewnoakes) changed the title Rename 'samples' to 'integrations' Rename 'samples' to 'playground' Jan 19, 2024
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-integrations Issues pertaining to Aspire Integrations packages area-samples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The "samples" folder does not contain samples from a user-perspective

6 participants