Skip to content

Commit

Permalink
Renames to Microsoft 365 Developer Proxy (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
waldekmastykarz authored Jun 16, 2023
1 parent b8c544d commit cf0ee13
Show file tree
Hide file tree
Showing 74 changed files with 166 additions and 166 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @microsoftgraph/msgraph-developer-proxy-write
* @microsoft/m365-developer-proxy-write
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ body:
validations:
required: true
- type: input
id: mgdpversion
id: m365proxyversion
attributes:
label: Microsoft Graph Developer Proxy Version
label: Microsoft 365 Developer Proxy Version
description: |
Provide the version of the proxy you are using.
Execute `mgdp --version` in your terminal to identify your version
Execute `m365proxy --version` in your terminal to identify your version
validations:
required: true
- type: dropdown
Expand Down
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2
updates:
- package-ecosystem: nuget
directory: "/msgraph-developer-proxy"
directory: "/m365-developer-proxy"
schedule:
interval: daily
open-pull-requests-limit: 5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:
jobs:
analyze:
name: Analyze
runs-on: [self-hosted, 1ES.Pool=1es-graphdevx-ubuntu-github-latest]
runs-on: ubuntu-latest

strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-required-workaround.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ on:
jobs:
analyze: #names must match the original workflow
name: Analyze (csharp)
runs-on: [self-hosted, 1ES.Pool=1es-graphdevx-ubuntu-github-latest]
runs-on: ubuntu-latest
steps:
- run: 'echo "No CodeQL Analysis required"'
8 changes: 4 additions & 4 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ jobs:
- linux-x64
- osx-x64
env:
release: 'msgraph-developer-proxy-${{ matrix.architecture }}-${{ github.ref_name }}'
release: 'm365-developer-proxy-${{ matrix.architecture }}-${{ github.ref_name }}'
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Publish ${{ matrix.architecture }}
run: dotnet publish ./msgraph-developer-proxy/msgraph-developer-proxy.csproj -c Release -p:PublishSingleFile=true -r ${{ matrix.architecture }} --self-contained -o ./${{ env.release }}
run: dotnet publish ./m365-developer-proxy/m365-developer-proxy.csproj -c Release -p:PublishSingleFile=true -r ${{ matrix.architecture }} --self-contained -o ./${{ env.release }}
- name: Build plugins
run: dotnet build ./msgraph-developer-proxy-plugins/msgraph-developer-proxy-plugins.csproj -c Release -r ${{ matrix.architecture }} --no-self-contained
run: dotnet build ./m365-developer-proxy-plugins/m365-developer-proxy-plugins.csproj -c Release -r ${{ matrix.architecture }} --no-self-contained
- name: Add plugins to output
run: cp ./msgraph-developer-proxy/bin/Release/net7.0/${{ matrix.architecture }}/GraphProxyPlugins ./${{ env.release }} -r
run: cp ./m365-developer-proxy/bin/Release/net7.0/${{ matrix.architecture }}/GraphProxyPlugins ./${{ env.release }} -r
- name: Remove unnecessary files
run: |
pushd
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-required-workaround.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ on:

jobs:
build:
runs-on: [self-hosted, 1ES.Pool=1es-graphdevx-ubuntu-github-latest]
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required"'
8 changes: 4 additions & 4 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
build:

runs-on: [self-hosted, 1ES.Pool=1es-graphdevx-ubuntu-github-latest]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
Expand All @@ -23,12 +23,12 @@ jobs:
- name: Restore workloads
run: dotnet workload restore
- name: Restore dependencies
run: dotnet restore msgraph-developer-proxy.sln
run: dotnet restore m365-developer-proxy.sln
- name: Build
run: dotnet build msgraph-developer-proxy.sln --no-restore
run: dotnet build m365-developer-proxy.sln --no-restore
# We really should have tests, putting these steps here for when we have a build process
# - name: Test
# run: dotnet test msgraph-developer-proxy.sln --no-build --verbosity normal --collect:"XPlat Code Coverage"
# run: dotnet test m365-developer-proxy.sln --no-build --verbosity normal --collect:"XPlat Code Coverage"
# - name: Install report generator
# run: dotnet tool install --global dotnet-reportgenerator-globaltool
# - name: Generate coverage report
Expand Down
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/msgraph-developer-proxy/bin/Debug/net7.0/mgdp.dll",
"program": "${workspaceFolder}/m365-developer-proxy/bin/Debug/net7.0/m365proxy.dll",
"args": [],
"cwd": "${workspaceFolder}/msgraph-developer-proxy/bin/Debug/net7.0",
"cwd": "${workspaceFolder}/m365-developer-proxy/bin/Debug/net7.0",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
"console": "integratedTerminal",
"stopAtEntry": false,
Expand Down
6 changes: 3 additions & 3 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"type": "process",
"args": [
"build",
"${workspaceFolder}/msgraph-developer-proxy.sln",
"${workspaceFolder}/m365-developer-proxy.sln",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
Expand All @@ -19,7 +19,7 @@
"type": "process",
"args": [
"publish",
"${workspaceFolder}/msgraph-developer-proxy.sln",
"${workspaceFolder}/m365-developer-proxy.sln",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
Expand All @@ -33,7 +33,7 @@
"watch",
"run",
"--project",
"${workspaceFolder}/msgraph-developer-proxy.sln"
"${workspaceFolder}/m365-developer-proxy.sln"
],
"problemMatcher": "$msCompile"
}
Expand Down
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Contributing to the Microsoft Developer Proxy
# Contributing to the Microsoft 365 Developer Proxy

The best way to contribute initially is to download and try the Microsoft Graph Developer Proxy and then give us your feedback, both positive and negative, this will help us shape the future direction of this tool. At present we are not accepting community code contributions but will be opening up to accept pull requests in the future.
The best way to contribute initially is to download and try the Microsoft 365 Developer Proxy and then give us your feedback, both positive and negative, this will help us shape the future direction of this tool. At present we are not accepting community code contributions but will be opening up to accept pull requests in the future.

## Our foundation

The Microsoft Graph Developer Proxy is built with .NET 6 and uses the [Titanium.Web.Proxy](https://github.com/justcoding121/titanium-web-proxy).
The Microsoft 365 Developer Proxy is built with .NET 6 and uses the [Titanium.Web.Proxy](https://github.com/justcoding121/titanium-web-proxy).

## Reporting issues and suggesting new features

Please use [GitHub Issues](https://github.com/microsoftgraph/msgraph-developer-proxy/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc) for bug reports and feature request.
Please use [GitHub Issues](https://github.com/microsoft/m365-developer-proxy/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc) for bug reports and feature request.

We highly recommend you browse existing issues first.

Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<h1 align="center">
<img alt="Microsoft Graph Developer Proxy" src="./samples/img/graph.png" height="78" />
<br>Microsoft Graph Developer Proxy<br>
<img alt="Microsoft 365 Developer Proxy" src="./samples/img/microsoft.png" height="78" />
<br>Microsoft 365 Developer Proxy<br>
</h1>

<h4 align="center">
Build with Microsoft Graph. Reliably
Build with Microsoft Graph. Reliably
</h4>

<p align="center">
<a href="https://github.com/microsoftgraph/msgraph-developer-proxy/releases/latest">
<a href="https://github.com/microsoft/m365-developer-proxy/releases/latest">
<img alt="Download Now" src="https://img.shields.io/badge/download-now-green?style=for-the-badge">
</a>
</p>

<p align="center">
<a href="#get-started">Get started</a> |
<a href="https://github.com/microsoftgraph/msgraph-developer-proxy/wiki/">Documentation</a>
<a href="https://github.com/microsoft/m365-developer-proxy/wiki/">Documentation</a>
</p>

<p align="center">
Expand All @@ -41,7 +41,7 @@
</details>
</p>

Microsoft Graph Developer Proxy is a command line tool for testing Microsoft Graph and other APIs.
Microsoft 365 Developer Proxy is a command line tool for testing Microsoft Graph and other APIs.

It aims to provide a better way to test applications.

Expand All @@ -55,14 +55,14 @@ Identify and fix issues in your code before they reach production.

## Get started

Begin with our [tutorial](https://github.com/microsoftgraph/msgraph-developer-proxy/wiki/Get-started). It will guide you through the installation process and running the proxy for the first time.
Begin with our [tutorial](https://github.com/microsoft/m365-developer-proxy/wiki/Get-started). It will guide you through the installation process and running the proxy for the first time.

## Example

Fail requests (with a 50% chance) and respond with `429 Too Many Requests` or `503 Service Unavailable`:

```
mgdp --failure-rate 50 --no-mocks --allowed-errors 429 503
m365proxy --failure-rate 50 --no-mocks --allowed-errors 429 503
```

## Features
Expand Down Expand Up @@ -99,7 +99,7 @@ This project may contain trademarks or logos for projects, products, or services

## Community Preview

We are working on getting the General Availability (GA) version published within the calendar year 2023. The current state of the Microsoft Graph Developer Proxy enables our team to be transparent and provide more insights on the upcoming features and to provide our worldwide ecosystem an option to directly influence the future of our capabilities. [Your feedback is more than welcome](https://github.com/microsoftgraph/msgraph-developer-proxy/issues)! You can expect many more new features within the upcoming months before a version that is officially ready for production use and fully supported.
We are working on getting the General Availability (GA) version published within the calendar year 2023. The current state of the Microsoft 365 Developer Proxy enables our team to be transparent and provide more insights on the upcoming features and to provide our worldwide ecosystem an option to directly influence the future of our capabilities. [Your feedback is more than welcome](https://github.com/microsoft/m365-developer-proxy/issues)! You can expect many more new features within the upcoming months before a version that is officially ready for production use and fully supported.

## A Microsoft Hackathon 2022 Project

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using Microsoft.Extensions.Configuration;

namespace Microsoft.Graph.DeveloperProxy.Abstractions;
namespace Microsoft365.DeveloperProxy.Abstractions;

public abstract class BaseProxyPlugin: IProxyPlugin {
protected ISet<UrlToWatch>? _urlsToWatch;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Titanium.Web.Proxy;
using Titanium.Web.Proxy.EventArguments;

namespace Microsoft.Graph.DeveloperProxy.Abstractions;
namespace Microsoft365.DeveloperProxy.Abstractions;

public static class FuncExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Runtime.Serialization;
using Titanium.Web.Proxy.EventArguments;

namespace Microsoft.Graph.DeveloperProxy.Abstractions;
namespace Microsoft365.DeveloperProxy.Abstractions;

public enum MessageType {
Normal,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Runtime.Serialization;

namespace Microsoft.Graph.DeveloperProxy.Abstractions;
namespace Microsoft365.DeveloperProxy.Abstractions;

public enum LabelMode {
[EnumMember(Value = "text")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using Microsoft.Extensions.Configuration;

namespace Microsoft.Graph.DeveloperProxy.Abstractions;
namespace Microsoft365.DeveloperProxy.Abstractions;

public interface IProxyPlugin {
string Name { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Titanium.Web.Proxy.EventArguments;
using Titanium.Web.Proxy.Http;

namespace Microsoft.Graph.DeveloperProxy.Abstractions;
namespace Microsoft365.DeveloperProxy.Abstractions;

public interface IProxyContext {
IProxyConfiguration Configuration { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Titanium.Web.Proxy.Http;
using Titanium.Web.Proxy.Models;

namespace Microsoft.Graph.DeveloperProxy.Abstractions;
namespace Microsoft365.DeveloperProxy.Abstractions;

class ParsedSample {
public string QueryVersion { get; set; } = string.Empty;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace Microsoft.Graph.DeveloperProxy.Abstractions;
namespace Microsoft365.DeveloperProxy.Abstractions;

public class ResponseState {
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text.RegularExpressions;

namespace Microsoft.Graph.DeveloperProxy.Abstractions;
namespace Microsoft365.DeveloperProxy.Abstractions;

public class UrlToWatch {
public bool Exclude { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<RootNamespace>Microsoft.Graph.DeveloperProxy.Abstractions</RootNamespace>
<RootNamespace>Microsoft365.DeveloperProxy.Abstractions</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>0.8.0</Version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
// Licensed under the MIT License.

using Microsoft.Extensions.Configuration;
using Microsoft.Graph.DeveloperProxy.Abstractions;
using Microsoft365.DeveloperProxy.Abstractions;
using System.Net;
using System.Text.Json;
using System.Text.RegularExpressions;
using Titanium.Web.Proxy.Http;
using Titanium.Web.Proxy.Models;

namespace Microsoft.Graph.DeveloperProxy.Plugins.Behavior;
namespace Microsoft365.DeveloperProxy.Plugins.Behavior;

public class RateLimitConfiguration {
public string HeaderLimit { get; set; } = "RateLimit-Limit";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
// Licensed under the MIT License.

using Microsoft.Extensions.Configuration;
using Microsoft.Graph.DeveloperProxy.Abstractions;
using Microsoft365.DeveloperProxy.Abstractions;
using System.Net;
using System.Text.Json;
using System.Text.RegularExpressions;
using Titanium.Web.Proxy.Http;
using Titanium.Web.Proxy.Models;

namespace Microsoft.Graph.DeveloperProxy.Plugins.Behavior;
namespace Microsoft365.DeveloperProxy.Plugins.Behavior;

public class RetryAfterPlugin : BaseProxyPlugin
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Text.Json.Serialization;

namespace Microsoft.Graph.DeveloperProxy.Plugins;
namespace Microsoft365.DeveloperProxy.Plugins;

public class GenericErrorResponse {
[JsonPropertyName("statusCode")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Text.Json.Serialization;

namespace Microsoft.Graph.DeveloperProxy.Plugins;
namespace Microsoft365.DeveloperProxy.Plugins;

public class GraphErrorResponseBody {
[JsonPropertyName("error")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using Titanium.Web.Proxy.Http;

namespace Microsoft.Graph.DeveloperProxy.Plugins;
namespace Microsoft365.DeveloperProxy.Plugins;

public class GraphUtils
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// Licensed under the MIT License.

using Microsoft.Extensions.Configuration;
using Microsoft.Graph.DeveloperProxy.Abstractions;
using Microsoft365.DeveloperProxy.Abstractions;
using Titanium.Web.Proxy.Http;

namespace Microsoft.Graph.DeveloperProxy.Plugins.Guidance;
namespace Microsoft365.DeveloperProxy.Plugins.Guidance;

public class CachingGuidancePluginConfiguration
{
Expand Down
Loading

0 comments on commit cf0ee13

Please sign in to comment.