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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor webapi directory structure #100

Merged
merged 15 commits into from
Aug 8, 2023

Conversation

dehoward
Copy link
Contributor

@dehoward dehoward commented Aug 3, 2023

Motivation and Context

as the project has grown, the structure of webapi has become a bit hard to parse through, especially for a new dev coming into the project. this PR aims to reduce that tension and in general, reduce the clutter within the api.

NOTE: the PR will be easier to review by going through each commit separately.

Description

  • moves deploy folder into scripts folder.
  • moves importdocument folder into tools folder.
  • moves code from webapi/CopilotChat up a level and removes duplicate folders.
  • changes root namespace from SemanticKernel.Service to CopilotChat.WebApi.

Contribution Checklist

this commit moves any `*.cs` code living out of `webapi/CopilotChat`,
into the `webapi/CopilotChat` folder, along with the `.csproj` file.

other changes:
- moves `deploy` folder into `scripts` folder
- moves `importdocument` folder into `tools` folder
- deletes the `CopilotChat.sln` file living at the root level
@dehoward dehoward self-assigned this Aug 3, 2023
@github-actions github-actions bot added documentation Improvements or additions to documentation webapi Pull requests that update .net code PR: ready for review labels Aug 3, 2023
@github-actions github-actions bot added the github actions Pull requests that update GitHub Actions code label Aug 3, 2023
crickman
crickman previously approved these changes Aug 3, 2023
Copy link
Contributor

@crickman crickman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice structureal update. Love the shorter namespaces.

scripts/deploy/main.json Outdated Show resolved Hide resolved
webapi/CopilotChatWebApi.sln Outdated Show resolved Hide resolved
webapi/CopilotChat/Models/DocumentImportForm.cs Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
webapi/appsettings.json Outdated Show resolved Hide resolved
glahaye

This comment was marked as outdated.

Copy link
Collaborator

@glahaye glahaye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove those credentials!

webapi/appsettings.json Outdated Show resolved Hide resolved
webapi/appsettings.json Outdated Show resolved Hide resolved
CopilotChatWebApi.sln Outdated Show resolved Hide resolved
scripts/deploy/main.bicep Show resolved Hide resolved
webapi/CopilotChatWebApi.csproj Outdated Show resolved Hide resolved
Copy link

@anilgaddam0966 anilgaddam0966 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good

alliscode
alliscode previously approved these changes Aug 7, 2023
alliscode
alliscode previously approved these changes Aug 7, 2023
@dehoward dehoward enabled auto-merge August 7, 2023 18:30
@dehoward dehoward added PR: ready to merge PR has been approved by all reviewers, and is ready to merge. and removed PR: ready for review labels Aug 7, 2023
glahaye
glahaye previously approved these changes Aug 7, 2023
@dehoward dehoward added this pull request to the merge queue Aug 8, 2023
Merged via the queue into microsoft:main with commit b926544 Aug 8, 2023
8 checks passed
@dehoward dehoward deleted the refactor-webapi-structure branch August 8, 2023 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation github actions Pull requests that update GitHub Actions code PR: ready to merge PR has been approved by all reviewers, and is ready to merge. webapi Pull requests that update .net code
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

8 participants