Skip to content

Commit f33cbb6

Browse files
refactor: 7688 - remove amido name (#437)
* refactor: very large commit renaming Amido to Ensono * refactor: 7688 catch some stray renames * refactor: stray missing / * refactor: fix the test script * refactor: fix merge conflicts * refactor: add .env file * refactor: add appsettings * refactor: another fix * refactor: 7688 pr comments * refactor: 7688 revert packtflow.io * refactor: revert url changes * refactor: 7688 revert ensono url to amido url * refactor: 7688 revert some more of the name changes for urls
1 parent dda8e8f commit f33cbb6

File tree

1,077 files changed

+18203
-18234
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,077 files changed

+18203
-18234
lines changed

.github/workflows/cqrs.env

-3
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,10 @@ APP_BUS_TYPE=sns
1313
DOCKER_IMAGE_NAME_BG_WORKER=stacks-api-events-bg-worker
1414
DOCKER_IMAGE_ARGS_BG_WORKER=src/worker
1515
DOCKER_IMAGE_NAME_ASB_LISTENER=stacks-api-events-listener-asb-function
16-
DOCKER_IMAGE_ARGS_ASB_LISTENER=--build-arg function=xxAMIDOxx.xxSTACKSxx.Listener src/functions/func-asb-listener
1716
DOCKER_IMAGE_NAME_AEH_LISTENER=stacks-api-events-listener-aeh-function
18-
DOCKER_IMAGE_ARGS_AEH_LISTENER=--build-arg function=xxAMIDOxx.xxSTACKSxx.Listener src/functions/func-aeh-listener
1917
RESOURCE_DEF_WORKER_NAME=dotnet-api-worker
2018
APP_WORKER_NAME=worker
2119
DOCKER_IMAGE_NAME_WORKER=stacks-api-events-worker-function
22-
DOCKER_IMAGE_ARGS_WORKER=--build-arg function=xxAMIDOxx.xxSTACKSxx.Worker src/functions/func-cosmosdb-worker
2320
AWS_TF_STATE_KEY=stacks-dotnet-cqrs
2421
TF_VAR_docker_image_name_worker=stacks-api-events-worker-function
2522
TF_VAR_docker_image_name_bg_worker=stacks-api-events-bg-worker

.gitignore

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
*.sln.docstates
1111
.vscode
1212
*.userprefs
13-
.env
14-
**/appsettings.[Dd]evelopment.json
1513
.DS_Store
1614

1715
# Build results
@@ -347,7 +345,7 @@ MigrationBackup/
347345
.idea/
348346

349347
# PROJECT SPECIFIC FILES
350-
/src/api/xxAMIDOxx.xxSTACKSxx.API/out
348+
/src/api/xxENSONOxx.xxSTACKSxx.API/out
351349
pacts/
352350

353351
# scala files

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Amido
3+
Copyright (c) 2020 Ensono
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+24-24
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# stacks-dotnet
22

3-
The full documentation on Amido Stacks can be found [here](https://amido.github.io/stacks/).
3+
The full documentation on Ensono Stacks can be found [here](https://amido.github.io/stacks/).
44

5-
Amido Stacks targets different cloud providers.
5+
Ensono Stacks targets different cloud providers.
66

77
[Azure](https://amido.github.io/stacks/docs/workloads/azure/backend/netcore/introduction_netcore)
88

@@ -14,19 +14,19 @@ This repository contains a template that you can get as a [NuGet package](https:
1414

1515
#### Template installation
1616

17-
For the latest template version, please consult the Nuget page [Amido.Stacks.Templates](https://www.nuget.org/packages/Amido.Stacks.Templates/). To install the latest version of the templates to your machine via the command line:
17+
For the latest template version, please consult the Nuget page [Ensono.Stacks.Templates](https://www.nuget.org/packages/Amido.Stacks.Templates/). To install the latest version of the templates to your machine via the command line:
1818

1919
```shell
20-
dotnet new --install Amido.Stacks.Templates
20+
dotnet new --install Ensono.Stacks.Templates
2121
```
2222

23-
The output you'll see will list all installed templates (not listed for brevity). In that list you'll see the just installed Amido Stacks template `stacks-webapi`
23+
The output you'll see will list all installed templates (not listed for brevity). In that list you'll see the just installed Ensono Stacks template `stacks-webapi`
2424

2525
```shell
2626
Template Name Short Name Language Tags
2727
----------------------------------------------- ------------------------------- ---------- ------------------------------------------
2828
...
29-
Amido Stacks Web API stacks-webapi [C#] Stacks/Infrastructure/WebAPI
29+
Ensono Stacks Web API stacks-webapi [C#] Stacks/Infrastructure/WebAPI
3030
...
3131

3232
Examples:
@@ -41,7 +41,7 @@ Examples:
4141
To uninstall the template pack you have to execute the following command
4242

4343
```shell
44-
dotnet new --uninstall Amido.Stacks.Templates
44+
dotnet new --uninstall Ensono.Stacks.Templates
4545
```
4646

4747
#### Important parameters
@@ -69,29 +69,29 @@ It's entirely up to you where you want to generate the WebAPI. For example your
6969
% cd your-repo-folder
7070

7171
% dotnet new stacks-webapi -n Foo.Bar -do Menu
72-
The template "Amido Stacks Web Api" was created successfully.
72+
The template "Ensono Stacks Web Api" was created successfully.
7373
```
7474

7575
Inspecting the folder will yield the following
7676

7777
```shell
7878
% ls -la
7979
total 0
80-
drwxr-xr-x 3 amido staff 96 23 Aug 15:51 .
81-
drwxr-xr-x 9 amido staff 288 16 Aug 14:06 ..
82-
drwxr-xr-x 6 amido staff 192 23 Aug 15:51 Foo.Bar
80+
drwxr-xr-x 3 ensono staff 96 23 Aug 15:51 .
81+
drwxr-xr-x 9 ensono staff 288 16 Aug 14:06 ..
82+
drwxr-xr-x 6 ensono staff 192 23 Aug 15:51 Foo.Bar
8383

8484
% ls -la Foo.Bar
8585
total 16
86-
drwxr-xr-x 6 amido staff 192 27 Aug 15:51 .
87-
drwxr-xr-x 3 amido staff 96 27 Aug 15:51 ..
88-
-rw-r--r-- 1 amido staff 1062 27 Aug 14:59 LICENSE
89-
-rw-r--r-- 1 amido staff 258 27 Aug 14:59 README.md
90-
drwxr-xr-x 3 amido staff 96 27 Aug 14:59 build
91-
drwxr-xr-x 4 amido staff 128 27 Aug 14:59 contracts
92-
drwxr-xr-x 5 amido staff 160 27 Aug 14:59 deploy
93-
drwxr-xr-x 4 amido staff 128 27 Aug 14:59 src
94-
-rw-r--r-- 1 amido staff 292 27 Aug 14:59 yamllint.confn
86+
drwxr-xr-x 6 ensono staff 192 27 Aug 15:51 .
87+
drwxr-xr-x 3 ensono staff 96 27 Aug 15:51 ..
88+
-rw-r--r-- 1 ensono staff 1062 27 Aug 14:59 LICENSE
89+
-rw-r--r-- 1 ensono staff 258 27 Aug 14:59 README.md
90+
drwxr-xr-x 3 ensono staff 96 27 Aug 14:59 build
91+
drwxr-xr-x 4 ensono staff 128 27 Aug 14:59 contracts
92+
drwxr-xr-x 5 ensono staff 160 27 Aug 14:59 deploy
93+
drwxr-xr-x 4 ensono staff 128 27 Aug 14:59 src
94+
-rw-r--r-- 1 ensono staff 292 27 Aug 14:59 yamllint.confn
9595
```
9696

9797
The `Foo.Bar` namespace prefix will be added to the class names and is reflected not only in folder/file names, but inside the codebase as well.
@@ -100,13 +100,13 @@ To generate the template with your own namespace, but in a different folder you'
100100

101101
```shell
102102
% dotnet new stacks-webapi -n Foo.Bar -d Car -o web-api-dir
103-
The template "Amido Stacks Web Api" was created successfully.
103+
The template "Ensono Stacks Web Api" was created successfully.
104104

105105
% ls -la
106106
total 0
107-
drwxr-xr-x 3 amido staff 96 23 Aug 15:58 .
108-
drwxr-xr-x 9 amido staff 288 16 Aug 14:06 ..
109-
drwxr-xr-x 6 amido staff 192 23 Aug 15:58 web-api-dir
107+
drwxr-xr-x 3 ensono staff 96 23 Aug 15:58 .
108+
drwxr-xr-x 9 ensono staff 288 16 Aug 14:06 ..
109+
drwxr-xr-x 6 ensono staff 192 23 Aug 15:58 web-api-dir
110110
```
111111

112112
Now you can build the solution located in the `web-api/src` folder and run/deploy it.

build/azDevOps/azure/air-api-vars.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ variables:
142142
value: environment=$(System.StageName),source=$(Build.SourceBranchName),app=$(Build.DefinitionName)
143143
- name: DASHBOARD_MEASUREMENT
144144
value: deployment # Static definition within Influx Config
145-
# - group: amido-stacks-influx-credentials-prod
145+
# - group: ensono-stacks-influx-credentials-prod
146146
# yamllint disable rule:comments-indentation
147147
# Group should contain:
148148
# DASHBOARD_INFLUX_ORG

build/azDevOps/azure/api-contract-tests.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ resources:
77
repositories:
88
- repository: templates
99
type: github
10-
name: amido/stacks-pipeline-templates
10+
name: ensono/stacks-pipeline-templates
1111
# Created when you set up the connection to GitHub from Azure DevOps
12-
endpoint: amidostacks
12+
endpoint: ensonostacks
1313

1414
variables:
15-
- group: amido-stacks-infra-credentials-nonprod
15+
- group: ensono-stacks-infra-credentials-nonprod
1616

1717
# Versioning
1818
- name: Version.Major
@@ -26,7 +26,7 @@ variables:
2626

2727
# Tests
2828
- name: Test.ProviderContractTestProjectSourcePath
29-
value: '$(Build.SourcesDirectory)/src/api/xxAMIDOxx.xxSTACKSxx.API.ContractTests'
29+
value: '$(Build.SourcesDirectory)/src/api/xxENSONOxx.xxSTACKSxx.API.ContractTests'
3030

3131
# Docker Config
3232
- name: Docker.ImageTag

build/azDevOps/azure/models-packages-api.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ variables:
1111
- name: Version.Revision
1212
value: $[counter(variables['Version.MajorMinor'], 0)]
1313
- name: Package.Path
14-
value: 'src/api/xxAMIDOxx.xxSTACKSxx.API.Models/'
14+
value: 'src/api/xxENSONOxx.xxSTACKSxx.API.Models/'
1515
- name: Package.Feed
1616
value: 'packages-menu'
1717
- name: BuildPipeline.Path
@@ -23,7 +23,7 @@ resources:
2323
trigger:
2424
paths:
2525
include:
26-
- src/api/xxAMIDOxx.xxSTACKSxx.API.Models/
26+
- src/api/xxENSONOxx.xxSTACKSxx.API.Models/
2727
- build/azDevOps/azure/packages-api-models.yml
2828
exclude:
2929
- '*'

build/azDevOps/azure/packages-api-models.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ variables:
1111
- name: Version.Revision
1212
value: $[counter(variables['Version.MajorMinor'], 0)]
1313
- name: Package.Path
14-
value: 'src/api/xxAMIDOxx.xxSTACKSxx.API.Models/'
14+
value: 'src/api/xxENSONOxx.xxSTACKSxx.API.Models/'
1515
- name: Package.Feed
1616
value: 'packages-menu'
1717
- name: BuildPipeline.Path
@@ -23,7 +23,7 @@ resources:
2323
trigger:
2424
paths:
2525
include:
26-
- src/api/xxAMIDOxx.xxSTACKSxx.API.Models/
26+
- src/api/xxENSONOxx.xxSTACKSxx.API.Models/
2727
- build/azDevOps/azure/packages-api-models.yml
2828
exclude:
2929
- '*'

build/github/aws/env/cqrs.env

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ APP_BUS_TYPE=sns
1313
DOCKER_IMAGE_NAME_BG_WORKER=stacks-api-events-bg-worker
1414
DOCKER_IMAGE_ARGS_BG_WORKER=src/worker
1515
DOCKER_IMAGE_NAME_ASB_LISTENER=stacks-api-events-listener-asb-function
16-
DOCKER_IMAGE_ARGS_ASB_LISTENER=--build-arg function=xxAMIDOxx.xxSTACKSxx.Listener src/functions/func-asb-listener
16+
DOCKER_IMAGE_ARGS_ASB_LISTENER=--build-arg function=xxENSONOxx.xxSTACKSxx.Listener src/functions/func-asb-listener
1717
DOCKER_IMAGE_NAME_AEH_LISTENER=stacks-api-events-listener-aeh-function
18-
DOCKER_IMAGE_ARGS_AEH_LISTENER=--build-arg function=xxAMIDOxx.xxSTACKSxx.Listener src/functions/func-aeh-listener
18+
DOCKER_IMAGE_ARGS_AEH_LISTENER=--build-arg function=xxENSONOxx.xxSTACKSxx.Listener src/functions/func-aeh-listener
1919
RESOURCE_DEF_WORKER_NAME=dotnet-api-worker
2020
APP_WORKER_NAME=worker
2121
DOCKER_IMAGE_NAME_WORKER=stacks-api-events-worker-function
22-
DOCKER_IMAGE_ARGS_WORKER=--build-arg function=xxAMIDOxx.xxSTACKSxx.Worker src/functions/func-cosmosdb-worker
22+
DOCKER_IMAGE_ARGS_WORKER=--build-arg function=xxENSONOxx.xxSTACKSxx.Worker src/functions/func-cosmosdb-worker
2323
AWS_TF_STATE_KEY={{ .Project.Name }}-cqrs
2424
TF_VAR_docker_image_name_worker=stacks-api-events-worker-function
2525
TF_VAR_docker_image_name_bg_worker=stacks-api-events-bg-worker

build/taskctl/tasks.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ tasks:
2929
context: powershell
3030
description: Get the necessary dependencies
3131
command:
32-
- Invoke-GitClone -repo amido/stacks-pipeline-templates -ref refs/tags/v2.0.6 -path support
32+
- Invoke-GitClone -repo ensono/stacks-pipeline-templates -ref refs/tags/v2.0.6 -path support
3333

3434
lint:yaml:
3535
context: powershell

scripts/reinstall.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# From the root directory
22

3-
dotnet new --uninstall .\ ; dotnet new --install .\
3+
dotnet new uninstall .\ ; dotnet new install .\

scripts/test-templates.sh

+10-13
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ dotnet restore
1717
dotnet test
1818

1919
# Change directory to the cqrs project and run the tests
20-
cd ../../cqrs/src/api
20+
cd ../../../cqrs/src/api
2121

2222
dotnet restore
2323
dotnet test
2424

2525
# Change directory to the root to generate the templates
2626
cd ../../../..
2727

28-
dotnet new --uninstall .
29-
dotnet new --install .
28+
dotnet new uninstall .
29+
dotnet new install .
3030

3131
# Change directory create the test-templates directory
3232
cd ..
@@ -46,20 +46,17 @@ dotnet new stacks-webapi -n CQRS.Added.Project -do Menu
4646
cd CQRS.Added.Project/simple-api/src/api
4747
dotnet new stacks-add-cqrs -n CQRS.Project -do Menu
4848

49-
# Test each generated projects unit tests
50-
cd ../../../..
51-
5249
# Test the Simple.WebAPI project
53-
cd Simple.WebAPI/simple-api/src/api
50+
cd Simple.WebAPI/src/simple-api/src/api
5451
dotnet restore
5552
dotnet test
56-
cd ../../../..
53+
cd ../../../../..
5754

5855
# Test the CQRS.Project project
59-
cd CQRS.Project/cqrs/src/api
56+
cd CQRS.Project/src/cqrs/src/api
6057
dotnet restore
6158
dotnet test
62-
cd ../../../..
59+
cd ../../../../..
6360

6461
# Test the Cosmos.Worker.Project project
6562
cd Cosmos.Worker.Project/func-cosmosdb-worker/src/functions
@@ -86,10 +83,10 @@ dotnet test
8683
cd ../../../..
8784

8885
# Test the CQRS.Added.Project project
89-
cd CQRS.Added.Project/simple-api/src/api
86+
cd CQRS.Added.Project/src/simple-api/src/api
9087
dotnet restore
9188
dotnet test
92-
cd ../../..
89+
cd ../../../..
9390

9491
# Print success message
9592
echo " _________ _______ _______ _________ _______ _______ _______ _______ _______ _______ ______ "
@@ -105,4 +102,4 @@ echo " )_( (_______/\_______) )_( \_______) |/ |/ \|\_______
105102
exit 0
106103

107104
# Error handling
108-
trap 'echo "An error occurred. Exiting..."; exit 1;' ERR
105+
trap 'echo "An error occurred. Exiting..."; exit 1;' ERR

src/background-worker/.template.config/template.json

+18-18
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
22
"$schema": "http://json.schemastore.org/template",
3-
"author": "stacks@amido.com",
3+
"author": "stacks@ensono.com",
44
"classifications": [
55
"Stacks",
66
"Service Bus",
77
"Worker"
88
],
9-
"name": "Amido Stacks Service Bus Worker",
10-
"identity": "Amido.Stacks.ServiceBus.Worker.CSharp",
11-
"groupIdentity": "Amido.Stacks.ServiceBus.Worker",
9+
"name": "Ensono Stacks Service Bus Worker",
10+
"identity": "Ensono.Stacks.ServiceBus.Worker.CSharp",
11+
"groupIdentity": "Ensono.Stacks.ServiceBus.Worker",
1212
"shortName": "stacks-asb-worker",
1313
"tags": {
1414
"language": "C#",
1515
"type": "project"
1616
},
17-
"sourceName": "xxAMIDOxx.xxSTACKSxx",
17+
"sourceName": "xxENSONOxx.xxSTACKSxx",
1818
"preferNameDirectory": true,
1919
"symbols": {
2020
"domain": {
@@ -36,19 +36,19 @@
3636
"source": "../",
3737
"include": [
3838
"background-worker/**",
39-
"shared/xxAMIDOxx.xxSTACKSxx.Shared.Application.CQRS.Abstractions/**",
40-
"shared/xxAMIDOxx.xxSTACKSxx.Shared.Configuration/**",
41-
"shared/xxAMIDOxx.xxSTACKSxx.Shared.Configuration.Tests/**",
42-
"shared/xxAMIDOxx.xxSTACKSxx.Shared.Core/**",
43-
"shared/xxAMIDOxx.xxSTACKSxx.Shared.Core.Tests/**",
44-
"shared/xxAMIDOxx.xxSTACKSxx.Shared.DependencyInjection/**",
45-
"shared/xxAMIDOxx.xxSTACKSxx.Shared.Messaging.Azure.ServiceBus/**",
46-
"shared/xxAMIDOxx.xxSTACKSxx.Shared.Messaging.Azure.ServiceBus.Tests/**",
47-
"shared/xxAMIDOxx.xxSTACKSxx.Shared.Messaging.Commands/**",
48-
"shared/xxAMIDOxx.xxSTACKSxx.Shared.Messaging.Events/**",
49-
"shared/xxAMIDOxx.xxSTACKSxx.Shared.Messaging.Handlers/**",
50-
"shared/xxAMIDOxx.xxSTACKSxx.Shared.Testing/**",
51-
"shared/xxAMIDOxx.xxSTACKSxx.Shared.Testing.Tests/**"
39+
"shared/xxENSONOxx.xxSTACKSxx.Shared.Application.CQRS.Abstractions/**",
40+
"shared/xxENSONOxx.xxSTACKSxx.Shared.Configuration/**",
41+
"shared/xxENSONOxx.xxSTACKSxx.Shared.Configuration.Tests/**",
42+
"shared/xxENSONOxx.xxSTACKSxx.Shared.Core/**",
43+
"shared/xxENSONOxx.xxSTACKSxx.Shared.Core.Tests/**",
44+
"shared/xxENSONOxx.xxSTACKSxx.Shared.DependencyInjection/**",
45+
"shared/xxENSONOxx.xxSTACKSxx.Shared.Messaging.Azure.ServiceBus/**",
46+
"shared/xxENSONOxx.xxSTACKSxx.Shared.Messaging.Azure.ServiceBus.Tests/**",
47+
"shared/xxENSONOxx.xxSTACKSxx.Shared.Messaging.Commands/**",
48+
"shared/xxENSONOxx.xxSTACKSxx.Shared.Messaging.Events/**",
49+
"shared/xxENSONOxx.xxSTACKSxx.Shared.Messaging.Handlers/**",
50+
"shared/xxENSONOxx.xxSTACKSxx.Shared.Testing/**",
51+
"shared/xxENSONOxx.xxSTACKSxx.Shared.Testing.Tests/**"
5252
],
5353
"exclude": [
5454
"**/[Bb]in/**",

src/background-worker/src/worker/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ WORKDIR /app
99

1010
# Copy everything else and build
1111
COPY ./ ./
12-
RUN dotnet publish -c Release -o out xxAMIDOxx.xxSTACKSxx.BackgroundWorker
12+
RUN dotnet publish -c Release -o out xxENSONOxx.xxSTACKSxx.BackgroundWorker
1313
#list files copied to output
1414
RUN find
1515
RUN du -ch out/
@@ -20,4 +20,4 @@ FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime
2020
EXPOSE 80
2121
WORKDIR /app
2222
COPY --from=build /app/out .
23-
ENTRYPOINT ["dotnet", "xxAMIDOxx.xxSTACKSxx.BackgroundWorker.dll"]
23+
ENTRYPOINT ["dotnet", "xxENSONOxx.xxSTACKSxx.BackgroundWorker.dll"]

0 commit comments

Comments
 (0)