Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/validate-patch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This file mirrors validate.yml and is designed to be a
# "stand-in" that always passes so that pull requests are not
# blocked waiting on the "Validate sample queries" workflow.
# For context, validate.yml will only run if specific files are
# updated in the PR. If a PR doesn't touch any of those files,
# validate.yml will never run, but since it's a required status
# check for PRs, the PR will be stuck waiting for the workflow to run.
# This file solves that problem. For more info, see
# https://github.com/orgs/community/discussions/44490
name: Validate sample queries
on:
pull_request:
paths-ignore:
- sample-queries/sample-queries.json
- scripts/**
- tests/**
- package.json
- package-lock.json

jobs:
validate-json-schema:
runs-on: ubuntu-latest
steps:
- run: 'echo "No validation required"'

test:
runs-on: ubuntu-latest
steps:
- run: 'echo "No tests required"'
20 changes: 17 additions & 3 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
name: Validate sample queries
on: [pull_request,push]
on:
push:
paths:
- sample-queries/sample-queries.json
- scripts/**
- tests/**
- package.json
- package-lock.json
pull_request:
paths:
- sample-queries/sample-queries.json
- scripts/**
- tests/**
- package.json
- package-lock.json

jobs:
validate-json-schema:
Expand All @@ -18,8 +32,8 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Install
run: npm install
- name: Install
run: npm install

- name: Run test
run: npm run test
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ POST Example includes headers, post body and a tip <br>
When done making the changes on the document,
1. Save the document on your machine
1. Create a Git branch on this repo and name it using your initials + describe the changes ie. bn/add-xyz-samples
1. Run `npm run test` to test your changes locally
1. Commit the changes to your branch
1. Create a PR (the PR is automatically updated with the relevant reviewers).

Expand Down Expand Up @@ -114,15 +115,18 @@ Then in the new Git command line window, paste in this command to create and che
### 4. Update your sample query
Now you can add, update or delete your sample query in the `sample-queries.json` file that opened up in VS Code earlier.

### 5. Add, commit and push your changes back to the remote repo with the following commands
### 5. Test your changes locally
Run `npm run test` to test your changes locally before committing.

### 6. Add, commit and push your changes back to the remote repo with the following commands
- Add the changes to you local repo: `git add sample-queries.json`
- Commit your changes: `git commit -m "{add-reason-for-update}"`
- Push your changes to the remote repo: `git push origin {your-branch-name}`

### 6. Login to GitHub
### 7. Login to GitHub
Follow the instructions to login to GitHub using your credentials.

### 7. If you get error 403
### 8. If you get error 403
Follow the instructions specified, then run this command again:<br/>
`git push origin {your-branch-name}`

Expand Down
106 changes: 87 additions & 19 deletions permissions/new/ProvisioningInfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2878,7 +2878,7 @@
{
"id": "1e4c6c41-0803-4f52-85ef-0a5d63ad8670",
"scheme": "DelegatedWork",
"environment": "PPE;public",
"environment": "",
"isHidden": false,
"isEnabled": true,
"resourceAppId": ""
Expand Down Expand Up @@ -5814,7 +5814,7 @@
{
"id": "37e00479-5776-4659-aecf-4841ec5d590a",
"scheme": "DelegatedWork",
"environment": "PPE;public",
"environment": "",
"isHidden": false,
"isEnabled": true,
"resourceAppId": "00000002-0000-0000-c000-000000000000"
Expand Down Expand Up @@ -7464,6 +7464,42 @@
"resourceAppId": ""
}
],
"MailboxConfigItem.Read": [
{
"id": "",
"scheme": "DelegatedWork",
"environment": "public",
"isHidden": true,
"isEnabled": false,
"resourceAppId": "c999ed3e-27ae-4cb3-b3a2-46b056af63d3"
},
{
"id": "",
"scheme": "Application",
"environment": "public",
"isHidden": true,
"isEnabled": false,
"resourceAppId": "c999ed3e-27ae-4cb3-b3a2-46b056af63d3"
}
],
"MailboxConfigItem.ReadWrite": [
{
"id": "",
"scheme": "DelegatedWork",
"environment": "public",
"isHidden": true,
"isEnabled": false,
"resourceAppId": "c999ed3e-27ae-4cb3-b3a2-46b056af63d3"
},
{
"id": "",
"scheme": "Application",
"environment": "public",
"isHidden": true,
"isEnabled": false,
"resourceAppId": "c999ed3e-27ae-4cb3-b3a2-46b056af63d3"
}
],
"MailboxFolder.Read": [
{
"id": "52dc2051-4958-4636-8f2a-281d39c6981c",
Expand Down Expand Up @@ -10444,12 +10480,12 @@
"resourceAppId": "74658136-14ec-4630-ad9b-26e160ff0fc6"
},
{
"id": "",
"id": "abafe00f-ea87-4c63-b8a8-0e7bb0a88144",
"scheme": "Application",
"environment": "public",
"isHidden": true,
"isEnabled": false,
"resourceAppId": "74658136-14ec-4630-ad9b-26e160ff0fc6"
"isHidden": false,
"isEnabled": true,
"resourceAppId": ""
}
],
"RecordsManagement.Read.All": [
Expand Down Expand Up @@ -12320,37 +12356,37 @@
],
"SharePointCrossTenantMigration.Read.All": [
{
"id": "",
"id": "00dcb678-f9af-4e73-acb1-4f1657364629",
"scheme": "DelegatedWork",
"environment": "public",
"isHidden": true,
"isEnabled": false,
"isEnabled": true,
"resourceAppId": "00000003-0000-0000-c000-00000000000"
},
{
"id": "",
"id": "f5fa52a5-b9ab-4dc3-885e-9e5b4a67068e",
"scheme": "Application",
"environment": "public",
"isHidden": true,
"isEnabled": false,
"isEnabled": true,
"resourceAppId": "00000003-0000-0000-c000-00000000000"
}
],
"SharePointCrossTenantMigration.Manage.All": [
{
"id": "",
"id": "c608c170-08b5-466b-a8fe-0b4074b01613",
"scheme": "DelegatedWork",
"environment": "public",
"isHidden": true,
"isEnabled": false,
"isEnabled": true,
"resourceAppId": "00000003-0000-0000-c000-00000000000"
},
{
"id": "",
"id": "a0521574-fcd8-4742-b29c-f796df57ea70",
"scheme": "Application",
"environment": "public",
"isHidden": true,
"isEnabled": false,
"isEnabled": true,
"resourceAppId": "00000003-0000-0000-c000-00000000000"
}
],
Expand Down Expand Up @@ -12979,15 +13015,15 @@
"id": "2104a4db-3a2f-4ea0-9dba-143d457dc666",
"scheme": "DelegatedWork",
"environment": "public",
"isHidden": true,
"isHidden": false,
"isEnabled": true,
"resourceAppId": "ab3be6b7-f5df-413d-ac2d-abf1e3fd9c0b"
},
{
"id": "4437522e-9a86-4a41-a7da-e380edd4a97d",
"scheme": "Application",
"environment": "public",
"isHidden": true,
"isHidden": false,
"isEnabled": true,
"resourceAppId": "ab3be6b7-f5df-413d-ac2d-abf1e3fd9c0b"
}
Expand Down Expand Up @@ -14747,15 +14783,15 @@
"id": "7ff9afdd-0cdb-439d-a61c-fea3e9339e89",
"scheme": "DelegatedWork",
"environment": "PPE;public",
"isHidden": true,
"isHidden": false,
"isEnabled": true,
"resourceAppId": ""
},
{
"id": "a94a502d-0281-4d15-8cd2-682ac9362c4c",
"scheme": "Application",
"environment": "PPE;public",
"isHidden": true,
"isHidden": false,
"isEnabled": true,
"resourceAppId": ""
}
Expand Down Expand Up @@ -16531,6 +16567,38 @@
"isEnabled": true,
"resourceAppId": "f0574968-bd32-4379-a169-50a2695e68f5"
}
],
"IdentityRiskyAgent.Read.All": [
{
"scheme": "Application",
"environment": "public",
"isHidden": true,
"isEnabled": true,
"resourceAppId": "a3dfc3c6-2c7d-4f42-aeec-b2877f9bce97"
},
{
"scheme": "DelegatedWork",
"environment": "public",
"isHidden": true,
"isEnabled": true,
"resourceAppId": "a3dfc3c6-2c7d-4f42-aeec-b2877f9bce97"
}
],
"IdentityRiskyAgent.ReadWrite.All": [
{
"scheme": "Application",
"environment": "public",
"isHidden": true,
"isEnabled": true,
"resourceAppId": "a3dfc3c6-2c7d-4f42-aeec-b2877f9bce97"
},
{
"scheme": "DelegatedWork",
"environment": "public",
"isHidden": true,
"isEnabled": true,
"resourceAppId": "a3dfc3c6-2c7d-4f42-aeec-b2877f9bce97"
}
]
}
}
}
Loading
Loading