1288 Commits

Author SHA1 Message Date
Keepers
fc5f42545f
rename graph.Service to Servicer (#1787)
## Description

`graph.Service -> graph.Servicer`,  no other changes.

More compliant with golang naming standards,
and will allow us to eventually migrate the
Service struct out of connector and into graph.

## Type of change

- [x] 🐹 Trivial/Minor

## Issue(s)

* #1725
2022-12-13 17:37:03 +00:00
Danny
675712c14a
GC: Support Library Bump (#1784)
## Description
Supporting libraries updated:
- github.com/cjlapao/common-go v0.0.36
- golang.org/x/net v0.4.0

## Type of change


- [x] 🐹 Trivial/Minor

## Issue(s)
Related to #1479


## Test Plan

<!-- How will this be tested prior to merging.-->
- [ ] 💪 Manual
- [x]  Unit test
- [ ] 💚 E2E
2022-12-13 17:10:21 +00:00
dependabot[bot]
c561c58401
⬆️ Bump github.com/aws/aws-sdk-go from 1.44.157 to 1.44.158 in /src (#1791)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.157 to 1.44.158.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/aws/aws-sdk-go/releases">github.com/aws/aws-sdk-go's releases</a>.</em></p>
<blockquote>
<h1>Release v1.44.158 (2022-12-12)</h1>
<h3>Service Client Updates</h3>
<ul>
<li><code>service/customer-profiles</code>: Updates service API and documentation</li>
<li><code>service/ec2</code>: Updates service API and documentation
<ul>
<li>This release updates DescribeFpgaImages to show supported instance types of AFIs in its response.</li>
</ul>
</li>
<li><code>service/kinesisvideo</code>: Updates service API and documentation
<ul>
<li>This release adds support for public preview of Kinesis Video Stream at Edge enabling customers to provide configuration for the Kinesis Video Stream EdgeAgent running on an on-premise IoT device. Customers can now locally record from cameras and stream videos to the cloud on configured schedule.</li>
</ul>
</li>
<li><code>service/lookoutvision</code>: Updates service documentation</li>
<li><code>service/migration-hub-refactor-spaces</code>: Updates service API and documentation</li>
<li><code>service/rds</code>: Updates service API, documentation, waiters, paginators, and examples
<ul>
<li>Update the RDS API model to support copying option groups during the CopyDBSnapshot operation</li>
</ul>
</li>
<li><code>service/rekognition</code>: Updates service API and documentation
<ul>
<li>Adds support for &quot;aliases&quot; and &quot;categories&quot;, inclusion and exclusion filters for labels and label categories, and aggregating labels by video segment timestamps for Stored Video Label Detection APIs.</li>
</ul>
</li>
<li><code>service/sagemaker-metrics</code>: Adds new service</li>
<li><code>service/wafv2</code>: Updates service documentation</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="25ac8eb046"><code>25ac8eb</code></a> Release v1.44.158 (2022-12-12) (<a href="https://github-redirect.dependabot.com/aws/aws-sdk-go/issues/4660">#4660</a>)</li>
<li>See full diff in <a href="https://github.com/aws/aws-sdk-go/compare/v1.44.157...v1.44.158">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/aws/aws-sdk-go&package-manager=go_modules&previous-version=1.44.157&new-version=1.44.158)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>
2022-12-13 05:29:51 +00:00
Keepers
c00b5811e9
add an examples test to selectors (#1590)
## Type of change

- [x] 🐹 Trivial/Minor

## Issue(s)

* #1224
2022-12-13 01:08:12 +00:00
Keepers
4d46847f6c
retrieve manifests and metadata from kopia (#1744)
## Description

In a backup operation, begins the operation by
retrieving all backup manifests and metadata
from prior operations.

## Type of change

- [x] 🌻 Feature

## Issue(s)

* #1725

## Test Plan

- [x]  Unit test
- [x] 💚 E2E
2022-12-12 22:36:50 +00:00
Keepers
565c33af4e
generate a unique repository id on init (#1716)
## Description

generates a unique repository ID on repo init, and retrieves it again on repo connect.  This allows
the event bus (and any other tracker) to id a repo independent of other context.

I've been unable to find any good way to retrieve a unique repository ID from kopia.  This seems like
the next quickest solution.

## Type of change

- [x] 🐛 Bugfix

## Issue(s)

* #1602

## Test Plan

- [x] 💪 Manual
2022-12-12 22:14:37 +00:00
ashmrtn
893bc978ba
Use io.MultiReader to inject kopia file version (#1767)
## Description

Instead of rolling our own logic for injecting a version, use a
MultiReader to concatenate the streams. Handling Close() is now more
complex though.

## Type of change

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [x] 🐹 Trivial/Minor

## Issue(s)

* closes #1766 

## Test Plan

<!-- How will this be tested prior to merging.-->
- [ ] 💪 Manual
- [x]  Unit test
- [ ] 💚 E2E
2022-12-12 21:46:38 +00:00
Danny
dd96a87611
GC: SharePoint: Helper function consolidation. (#1782)
## Description
Move helper functions & test structs to `helper_test.go`
<!-- Insert PR description-->

## Type of change

- [x] 🐹 Trivial/Minor


## Test Plan

- [x]  Unit test
2022-12-12 20:14:37 +00:00
dependabot[bot]
84a781694c
⬆️ Bump github.com/aws/aws-sdk-go from 1.44.155 to 1.44.157 in /src (#1771)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.155 to 1.44.157.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/aws/aws-sdk-go/releases">github.com/aws/aws-sdk-go's releases</a>.</em></p>
<blockquote>
<h1>Release v1.44.157 (2022-12-09)</h1>
<h3>Service Client Updates</h3>
<ul>
<li><code>service/iotfleetwise</code>: Updates service API and documentation</li>
<li><code>service/logs</code>: Updates service documentation
<ul>
<li>Doc-only update for CloudWatch Logs, for Tagging Permissions clarifications</li>
</ul>
</li>
<li><code>service/medialive</code>: Updates service API and documentation
<ul>
<li>Link devices now support buffer size (latency) configuration. A higher latency value means a longer delay in transmitting from the device to MediaLive, but improved resiliency. A lower latency value means a shorter delay, but less resiliency.</li>
</ul>
</li>
<li><code>service/mediapackage-vod</code>: Updates service API and documentation</li>
</ul>
<h1>Release v1.44.156 (2022-12-08)</h1>
<h3>Service Client Updates</h3>
<ul>
<li><code>service/autoscaling</code>: Updates service API and documentation
<ul>
<li>Adds support for metric math for target tracking scaling policies, saving you the cost and effort of publishing a custom metric to CloudWatch. Also adds support for VPC Lattice by adding the Attach/Detach/DescribeTrafficSources APIs and a new health check type to the CreateAutoScalingGroup API.</li>
</ul>
</li>
<li><code>service/iottwinmaker</code>: Updates service API, documentation, and paginators</li>
<li><code>service/migrationhubstrategy</code>: Updates service API and documentation</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="26b0196178"><code>26b0196</code></a> Release v1.44.157 (2022-12-09) (<a href="https://github-redirect.dependabot.com/aws/aws-sdk-go/issues/4658">#4658</a>)</li>
<li><a href="e6bbaf445e"><code>e6bbaf4</code></a> Release v1.44.156 (2022-12-08) (<a href="https://github-redirect.dependabot.com/aws/aws-sdk-go/issues/4657">#4657</a>)</li>
<li>See full diff in <a href="https://github.com/aws/aws-sdk-go/compare/v1.44.155...v1.44.157">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/aws/aws-sdk-go&package-manager=go_modules&previous-version=1.44.155&new-version=1.44.157)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>
2022-12-12 18:33:30 +00:00
Abin Simon
1d16355873
Don't retry unless timeout err (#1738)
## Description

We have a retry handler within the client added as a middleware. So, don't retry here again if we still get any other err.

## Type of change

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [x] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [ ] 🐹 Trivial/Minor

## Issue(s)

<!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. -->
* fixes https://github.com/alcionai/corso/issues/1684

## Test Plan

<!-- How will this be tested prior to merging.-->
- [x] 💪 Manual
- [ ]  Unit test
- [x] 💚 E2E
2022-12-12 08:20:02 +00:00
Abin Simon
a0a2c61cfd
Fix heading align in README (#1773)
## Description

Fixes header align issue in https://github.com/alcionai/corso/pull/1769 . Looks like the aligning for header  is a bit different from the parser I used locally.

## Type of change

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [x] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [ ] 🐹 Trivial/Minor

## Issue(s)

<!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. -->
* #<issue>

## Test Plan

<!-- How will this be tested prior to merging.-->
- [ ] 💪 Manual
- [ ]  Unit test
- [ ] 💚 E2E
2022-12-12 05:23:01 +00:00
Niraj Tolia
0250791ff7
Add Intel vs. Arm blog post (#1753)
## Description

This uses Corso/kopia microbenchmarks to compare the performance of Intel vs. ARM
architectures
2022-12-12 05:22:16 +00:00
dependabot[bot]
3026483500
⬆️ Bump postcss from 8.4.19 to 8.4.20 in /website (#1770) 2022-12-12 05:17:52 +00:00
Abin Simon
f4ab816e61
Align logo and name to center in README (#1769)
## Description

Thought this looks a bit nicer. Having the logo to the left felt a bit off and we were already using html in markdown anyways.

## Type of change

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [x] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [ ] 🐹 Trivial/Minor

## Issue(s)

<!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. -->
* #<issue>

## Test Plan

<!-- How will this be tested prior to merging.-->
- [ ] 💪 Manual
- [ ]  Unit test
- [ ] 💚 E2E
2022-12-12 05:00:15 +00:00
Abin Simon
f2effd5667
Validate release artifacts post release (#1706)
## Description

This takes care of validating all the release artifacts once we have completed the release step. Reworks https://github.com/alcionai/corso/pull/1360 as we are still deciding on Windows docker images.

## Type of change

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Test
- [x] 💻 CI/Deployment
- [ ] 🐹 Trivial/Minor

## Issue(s)

<!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. -->
* fixes https://github.com/alcionai/corso/issues/1328

## Test Plan

<!-- How will this be tested prior to merging.-->
- [x] 💪 Manual
- [ ]  Unit test
- [ ] 💚 E2E
2022-12-12 04:45:22 +00:00
Vaibhav Kamra
93a7ff27e3
Store backup details in a separate snapshot (#1755)
## Description

This PR uses a separate snapshot to store backup details instead of a Corso model (i.e. a kopia manifest).

Introduces a `StreamStore` that can be leveraged to store larger metadata objects. We can also leverage this
for incrementals or restartable backups going forward.

## Type of change

<!--- Please check the type of change your PR introduces: --->
- [x] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [ ] 🐹 Trivial/Minor

## Issue(s)

<!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. -->
* #1735 

## Test Plan

<!-- How will this be tested prior to merging.-->
- [ ] 💪 Manual
- [x]  Unit test
- [x] 💚 E2E
2022-12-10 00:47:49 +00:00
ashmrtn
be9b214c0c
Track more info about collections during backup (#1765)
## Description

Track additional information about collections and their items during backup so we can properly merge directories and items in directories when doing incremental backups

## Type of change

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [x] 🐹 Trivial/Minor

## Issue(s)

* #1740 

## Test Plan

<!-- How will this be tested prior to merging.-->
- [ ] 💪 Manual
- [x]  Unit test
- [ ] 💚 E2E
2022-12-09 23:55:45 +00:00
Georgi Matev
21c717fbe8
Rename events to adhere to the "Noun Action" naming convention (#1763)
## Description

Rename events to adhere to naming convention 

## Type of change

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [x] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [ ] 🐹 Trivial/Minor

## Issue(s)

## Test Plan

<!-- How will this be tested prior to merging.-->
- [x] 💪 Manual
- [ ]  Unit test
- [ ] 💚 E2E
2022-12-09 22:47:51 +00:00
ashmrtn
e1738d657d
Shuffle around some kopia snapshot code (#1764)
## Description

Pull code specific to making snapshots in kopia into a separate file. Factor out code specific to handling collections in preparation for having to deal with kopia items as well during incremental backups. Apart from code movement and factoring into functions no other changes have been made

Viewing by commit will make changes easier to see

## Type of change

- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [x] 🐹 Trivial/Minor

## Issue(s)

* #1740 

## Test Plan

- [ ] 💪 Manual
- [x]  Unit test
- [ ] 💚 E2E
2022-12-09 21:58:16 +00:00
Keepers
8b2489b60c
export makeTagKV, fetchPrevSnapshotManifest (#1750)
## Type of change

- [x] 🐹 Trivial/Minor

## Issue(s)

* #1725
2022-12-09 19:34:29 +00:00
Keepers
edd0708285
aggregate categories from selector (#1742)
## Description

Adds a PathCategories() func to selectors which returns
all the path categories exhibited by the scopes within the
selector.

## Type of change

- [x] 🌻 Feature

## Issue(s)

* #1725

## Test Plan

- [x]  Unit test
2022-12-09 18:57:06 +00:00
Niraj Tolia
65284620ea
Fix meta information for social card previews (#1760)
## Description

This was being manuarlly overridden and was bad for SEO

## Type of change

- [x] 🐛 Bugfix
- [x] 🗺️ Documentation
2022-12-09 18:37:43 +00:00
ashmrtn
2524523298
Add a comment for updating Schema constants (#1759)
## Description

Note what things need to stay the same and what things can change when updating schema constant values. This is required because some information about the constants are persisted in the model store.

## Type of change

- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [x] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [x] 🐹 Trivial/Minor

## Issue(s)

* closes #1757 

## Test Plan

- [x] 💪 Manual
- [ ]  Unit test
- [ ] 💚 E2E
2022-12-09 18:00:45 +00:00
Nočnica Mellifera
e8458b9eb4
add a truncate tag to the most recent blog post (#1758)
## Description

Adds a `truncate` tag to the 'm365 sandbox' blog post

## Type of change

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [x] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [ ] 🐹 Trivial/Minor

## Issue(s)

<!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. -->
* #<issue>

## Test Plan

<!-- How will this be tested prior to merging.-->
- [ ] 💪 Manual
- [ ]  Unit test
- [ ] 💚 E2E
2022-12-09 17:15:51 +00:00
Niraj Tolia
73877add31
Enable vale for blog posts (#1754)
## Description

Prevent errors in blog posts creeping throught

## Type of change

- [x] 🐛 Bugfix
- [x] 🗺️ Documentation
2022-12-09 07:42:15 +00:00
Nočnica Mellifera
dcd2785916
new blog post: "Setting up your own Microsoft 365 sandbox" (#1751)
## Description

new blog post: "Setting up your own Microsoft 365 sandbox"
## Type of change

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [x] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [ ] 🐹 Trivial/Minor

## Issue(s)

<!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. -->
* #<issue>

## Test Plan

<!-- How will this be tested prior to merging.-->
- [ ] 💪 Manual
- [ ]  Unit test
- [ ] 💚 E2E
2022-12-09 07:06:29 +00:00
dependabot[bot]
c5a0111573
⬆️ Bump sass from 1.56.1 to 1.56.2 in /website (#1752) 2022-12-09 05:14:54 +00:00
Abin Simon
4ee66c3d3d
Refactor http client creation for onedrive file download (#1736)
## Description

This way we are able to use any middlewares added in both places.

## Type of change

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [x] 🐹 Trivial/Minor

## Issue(s)

<!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. -->
* #<issue>

## Test Plan

<!-- How will this be tested prior to merging.-->
- [ ] 💪 Manual
- [ ]  Unit test
- [x] 💚 E2E
2022-12-09 04:59:17 +00:00
Keepers
ca5f197067
export ownerCats and fetchPrevSnap (#1741)
## Type of change

- [x] 🐹 Trivial/Minor

## Issue(s)

* #1725

## Test Plan

- [x]  Unit test
2022-12-09 01:34:20 +00:00
Keepers
38239e986c
add weburl identification in the CLI (#1712)
## Description

Adds weburl identificatiotn and unioning in the
cli, for both backup and restore of sharepoint
data.

## Type of change

- [x] 🌻 Feature

## Issue(s)

* #1616

## Test Plan

- [x]  Unit test
2022-12-09 01:14:04 +00:00
dependabot[bot]
a18619ffa4
⬆️ Bump github.com/Azure/azure-sdk-for-go/sdk/azidentity from 1.1.0 to 1.2.0 in /src (#1489)
Bumps [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go) from 1.1.0 to 1.2.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/Azure/azure-sdk-for-go/releases">github.com/Azure/azure-sdk-for-go/sdk/azidentity's releases</a>.</em></p>
<blockquote>
<h2>sdk/resourcemanager/cognitiveservices/armcognitiveservices/v1.2.0</h2>
<h2>1.2.0 (2022-10-20)</h2>
<h3>Features Added</h3>
<ul>
<li>New field <code>CallRateLimit</code> in struct <code>DeploymentProperties</code></li>
<li>New field <code>Capabilities</code> in struct <code>DeploymentProperties</code></li>
<li>New field <code>RaiPolicyName</code> in struct <code>DeploymentProperties</code></li>
<li>New field <code>CallRateLimit</code> in struct <code>AccountModel</code></li>
<li>New field <code>CallRateLimit</code> in struct <code>DeploymentModel</code></li>
</ul>
<h2>sdk/azcore/v1.2.0</h2>
<h2>1.2.0 (2022-11-04)</h2>
<h3>Features Added</h3>
<ul>
<li>Added <code>ClientOptions.APIVersion</code> field, which overrides the default version a client
requests of the service, if the client supports this (all ARM clients do).</li>
<li>Added package <code>tracing</code> that contains the building blocks for distributed tracing.</li>
<li>Added field <code>TracingProvider</code> to type <code>policy.ClientOptions</code> that will be used to set the per-client tracing implementation.</li>
</ul>
<h3>Bugs Fixed</h3>
<ul>
<li>Fixed an issue in <code>runtime.SetMultipartFormData</code> to properly handle slices of <code>io.ReadSeekCloser</code>.</li>
<li>Fixed the MaxRetryDelay default to be 60s.</li>
<li>Failure to poll the state of an LRO will now return an <code>*azcore.ResponseError</code> for poller types that require this behavior.</li>
<li>Fixed a bug in <code>runtime.NewPipeline</code> that would cause pipeline-specified allowed headers and query parameters to be lost.</li>
</ul>
<h3>Other Changes</h3>
<ul>
<li>Retain contents of read-only fields when sending requests.</li>
</ul>
<h2>sdk/azidentity/v1.2.0</h2>
<h2>1.2.0 (2022-11-08)</h2>
<h3>Other Changes</h3>
<ul>
<li>This version includes all fixes and features from 1.2.0-beta.*</li>
</ul>
<h2>sdk/azidentity/v1.2.0-beta.3</h2>
<h2>1.2.0-beta.3 (2022-10-11)</h2>
<h3>Features Added</h3>
<ul>
<li><code>ManagedIdentityCredential</code> caches tokens in memory</li>
</ul>
<h3>Bugs Fixed</h3>
<ul>
<li><code>ClientCertificateCredential</code> sends only the leaf cert for SNI authentication</li>
</ul>
<h2>sdk/azidentity/v1.2.0-beta.2</h2>
<h2>1.2.0-beta.2 (2022-08-10)</h2>
<h3>Features Added</h3>
<ul>
<li>Added <code>ClientAssertionCredential</code> to enable applications to authenticate
with custom client assertions</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="0fbd37144d"><code>0fbd371</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/Azure/azure-sdk-for-go/issues/33">#33</a> from jen20/virtual-network-client</li>
<li><a href="c95e42367f"><code>c95e423</code></a> Add a client for Virtual Network management</li>
<li><a href="af6985dcf3"><code>af6985d</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/Azure/azure-sdk-for-go/issues/35">#35</a> from ahmetalpbalkan/CreateBlockBlob</li>
<li><a href="c99fb1d13a"><code>c99fb1d</code></a> make block.Size int64, add CreateBlockBlob</li>
<li><a href="9abf8bf26b"><code>9abf8bf</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/Azure/azure-sdk-for-go/issues/28">#28</a> from jen20/private-error-messages</li>
<li><a href="c1f7c85ef2"><code>c1f7c85</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/Azure/azure-sdk-for-go/issues/24">#24</a> from jf/codetweaks</li>
<li><a href="0d03132816"><code>0d03132</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/Azure/azure-sdk-for-go/issues/19">#19</a> from jf/master</li>
<li><a href="24f03c11c3"><code>24f03c1</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/Azure/azure-sdk-for-go/issues/32">#32</a> from jf/clean-currentTimeRfc1123Formatted</li>
<li><a href="30c4704b13"><code>30c4704</code></a> util.go: remove unused dateLayout from currentTimeRfc1123Formatted()</li>
<li><a href="acc54a222f"><code>acc54a2</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/Azure/azure-sdk-for-go/issues/29">#29</a> from jen20/location-concatenation</li>
<li>Additional commits viewable in <a href="https://github.com/Azure/azure-sdk-for-go/compare/v1.1...v1.2">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/Azure/azure-sdk-for-go/sdk/azidentity&package-manager=go_modules&previous-version=1.1.0&new-version=1.2.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>
2022-12-08 22:32:58 +00:00
Danny
45e535c9b8
GC: Go.Mod update (#1479)
## Description
Versioning upgraded for GC
Packages updated:
- [x] github.com/microsoftgraph/msgraph-sdk-go v0.41.0 => v0.48.0
- [x] github.com/microsoft/kiota-abstractions-go v0.14.0
- [x] github.com/microsoft/kiota-authentication-azure-go v0.5.0
- [x] github.com/microsoft/kiota-http-go v0.9.0
- [x] github.com/microsoft/kiota-serialization-json-go v0.7.2
- [x] github.com/microsoftgraph/msgraph-sdk-go-core v0.30.1
- [x] github.com/stretchr/testify v1.8.1
- [x] github.com/cjlapao/common-go v0.0.29 => v0.0.35

<!-- Insert PR description-->

## Type of change

<!--- Please check the type of change your PR introduces: --->
- [x] 🐹 Trivial/Minor
- Update library change. AdditionalData no longer contains `nextLink` for iteration.  See commit [e7c75ca](e7c75ca1cc) for full details. 

## Issue(s)

<!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. -->
*closes #1478<issue>

## Test Plan

- [x]  Unit test
2022-12-08 21:54:22 +00:00
Keepers
53195017a1
minor refactor for cleanup in operations (#1729)
## Description

Starting off changes with a minor refactor.  Hopefully will
keep code cleaner as we populate the backup operation in
the coming changes.

## Type of change

- [x] 🐹 Trivial/Minor

## Issue(s)

* #1725
2022-12-08 21:33:53 +00:00
ashmrtn
a360a4c146
Add note about email isRead marker with kopia-assisted incrementals (#1730)
## Description

Kopia-assisted incrementals will not find changes to emails being marked/unmarked as read because that operation does not update the mod time in Exchange.

## Type of change

- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [x] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [ ] 🐹 Trivial/Minor

## Issue(s)

* closes #1693 

## Test Plan

- [x] 💪 Manual
- [ ]  Unit test
- [ ] 💚 E2E
2022-12-08 20:46:00 +00:00
ashmrtn
19f7de59f4
Expand interfaces for components used during backup (#1731)
## Description

Expand interfaces for `GraphConnector.DataCollections` and `kopia.Wrapper.BackupCollections` to include parameters that will be needed during incremental backups. This patch only expands the interfaces, it does not add any extra functionality and the passed parameters are currently ignored.

In the future, passing nil for any of the new parameters should result in the current "full backup" behavior that Corso has. Passing values in these parameters should enable delta token-based incremental backups (assuming all the required data is there for the incremental backup)

## Type of change

- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [x] 🐹 Trivial/Minor

## Issue(s)

* closes #1700 

## Test Plan

- [ ] 💪 Manual
- [x]  Unit test
- [ ] 💚 E2E
2022-12-08 18:40:10 +00:00
ashmrtn
e15d86e82f
Persist Exchange delta tokens (#1722)
## Description

Begin persisting Exchange delta tokens for data categories that support delta queries. Tokens are stored in a single file as a `map[M365 container ID]token` where both the container ID and token are of type `string`. The file is located in the kopia snapshot that has all the other backup data at the path `tenant-id/{service}Metadata/user/category/delta`. No information about the delta token file is stored in backup details.

## Type of change

- [x] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [ ] 🐹 Trivial/Minor

## Issue(s)

* closes #1685 

## Test Plan

<!-- How will this be tested prior to merging.-->
- [ ] 💪 Manual
- [x]  Unit test
- [ ] 💚 E2E
2022-12-08 18:01:00 +00:00
Keepers
4c976298d4
populate sharepoint itemInfo (#1687)
## Description

Currently, all drive backup and restore actions
populatet a details.OneDriveInfo struct.  This
change branches that struct between one-
drive and sharepoint info, depending on the
current source.

## Type of change

- [x] 🌻 Feature

## Issue(s)

* #1616

## Test Plan

- [x]  Unit test
2022-12-08 17:26:56 +00:00
Keepers
9cab212776
amend test user cleanup list (#1724)
## Type of change

- [x] 💻 CI/Deployment

## Test Plan

- [x] 💚 E2E
2022-12-08 16:58:32 +00:00
Keepers
a6aa86ce5c
add a weburl to siteid reducer in gc (#1671)
## Description

Adds a func in graphConnector that reduces
siteIDs and webURLs into a set of siteIDs.  This
will be used by callers such as the CLI to
generate id-based selectors for sites even if
they handle webURLs as an alternative id.

## Type of change

- [x] 🌻 Feature

## Issue(s)

* #1616

## Test Plan

- [x]  Unit test
2022-12-08 15:38:24 +00:00
Abin Simon
99f35eb5a8
Fix staticcheck lint in CI (#1682)
## Description

Missed configuring working dir for staticcheck, plus fixes for errors reported.

## Type of change

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Test
- [x] 💻 CI/Deployment
- [ ] 🐹 Trivial/Minor

## Issue(s)

<!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. -->
* #<issue>

## Test Plan

<!-- How will this be tested prior to merging.-->
- [x] 💪 Manual
- [ ]  Unit test
- [ ] 💚 E2E
2022-12-08 08:26:27 +00:00
Abin Simon
6ee121a70a
Use corso version with event reporting (#1721)
## Description

Add version of the current binary when reporting.

## Type of change

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [x] 🐹 Trivial/Minor

## Issue(s)

<!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. -->
* https://github.com/alcionai/corso/issues/1594

## Test Plan

<!-- How will this be tested prior to merging.-->
- [x] 💪 Manual
- [ ]  Unit test
- [ ] 💚 E2E
2022-12-08 08:07:52 +00:00
Niraj Tolia
95dda0425b
Support building Arm website Docker image (#1733)
## Description

This change uses the local arch to pull the right packages in for Arm
vs. x86_64.
2022-12-08 07:51:43 +00:00
dependabot[bot]
66bd51b6fa
⬆️ Bump github.com/aws/aws-sdk-go from 1.44.154 to 1.44.155 in /src (#1734)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.154 to 1.44.155.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/aws/aws-sdk-go/releases">github.com/aws/aws-sdk-go's releases</a>.</em></p>
<blockquote>
<h1>Release v1.44.155 (2022-12-07)</h1>
<h3>Service Client Updates</h3>
<ul>
<li><code>service/ce</code>: Updates service API and documentation</li>
<li><code>service/cloudfront</code>: Updates service API and documentation
<ul>
<li>Introducing UpdateDistributionWithStagingConfig that can be used to promote the staging configuration to the production.</li>
</ul>
</li>
<li><code>service/eks</code>: Updates service API and documentation</li>
<li><code>service/kms</code>: Updates service documentation and examples
<ul>
<li>Updated examples and exceptions for External Key Store (XKS).</li>
</ul>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="1f86cfa30f"><code>1f86cfa</code></a> Release v1.44.155 (2022-12-07) (<a href="https://github-redirect.dependabot.com/aws/aws-sdk-go/issues/4656">#4656</a>)</li>
<li>See full diff in <a href="https://github.com/aws/aws-sdk-go/compare/v1.44.154...v1.44.155">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/aws/aws-sdk-go&package-manager=go_modules&previous-version=1.44.154&new-version=1.44.155)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>
2022-12-08 07:25:59 +00:00
ashmrtn
0ad6f440ea
Disable kopia-assisted incrementals for OneDrive (#1728)
## Description

Do not implement the StreamModTime interface so kopia-assisted incrementals cannot be used for OneDrive.

Feature should be reenabled when the following are resolved:
* #1702 

## Type of change

- [ ] 🌻 Feature
- [x] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [x] 🐹 Trivial/Minor

## Issue(s)

* closes #1723 

## Test Plan

- [x] 💪 Manual
- [ ]  Unit test
- [ ] 💚 E2E
2022-12-07 23:07:35 +00:00
ashmrtn
09c48c1ec9
Expand Stream and Collection interfaces for delta token-based incrementals (#1710)
## Description

Add functions to Collection and Stream interfaces that allow for getting
more information about the difference between the previous backup and
the currently in-progress one. These will allow delta token-based
incremental backups to determine how the state has evolved.

Current code does not use these functions and return values for them
are "default" values that should result in full backups even if
KopiaWrapper is updated to start checking the values and GraphConnector
still pulls all items

These functions are not used during restore and can return "default"
values

## Type of change

<!--- Please check the type of change your PR introduces: --->
- [x] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [ ] 🐹 Trivial/Minor

## Issue(s)

* #1700 

## Test Plan

<!-- How will this be tested prior to merging.-->
- [ ] 💪 Manual
- [x]  Unit test
- [ ] 💚 E2E
2022-12-07 22:20:59 +00:00
ashmrtn
14a3c2e189
Create in-memory MetadataCollection type (#1719)
## Description

Adds an in-memory collection type that can be used to pass metadata files from GraphConnector to KopiaWrapper. Meant for only small amounts of data as everything must be buffered in-memory in the collection

## Type of change

<!--- Please check the type of change your PR introduces: --->
- [x] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [ ] 🐹 Trivial/Minor

## Issue(s)

* #1685 

## Test Plan

<!-- How will this be tested prior to merging.-->
- [ ] 💪 Manual
- [x]  Unit test
- [ ] 💚 E2E
2022-12-07 17:07:56 +00:00
Vaibhav Kamra
cdc92b3929
Skip creating inline reference attachments (#1606)
## Description

This fixes #999 by skipping restore of reference attachments that are marked inline.

The attachment links (e.g. OneDrive links) are part of the message body and do not need to be
recreated.

## Type of change

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [x] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [ ] 🐹 Trivial/Minor

## Issue(s)

<!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. -->
* #999 

## Test Plan

<!-- How will this be tested prior to merging.-->
- [ ] 💪 Manual
- [x]  Unit test
- [ ] 💚 E2E
2022-12-07 05:54:30 +00:00
dependabot[bot]
7ab0b03e1a
⬆️ Bump github.com/aws/aws-xray-sdk-go from 1.7.1 to 1.8.0 in /src (#1517)
Bumps [github.com/aws/aws-xray-sdk-go](https://github.com/aws/aws-xray-sdk-go) from 1.7.1 to 1.8.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/aws/aws-xray-sdk-go/releases">github.com/aws/aws-xray-sdk-go's releases</a>.</em></p>
<blockquote>
<h2>v1.8.0</h2>
<p>Please refer <a href="https://github.com/aws/aws-xray-sdk-go/blob/master/CHANGELOG.md">change-log</a> for details.</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/aws/aws-xray-sdk-go/blob/master/CHANGELOG.md">github.com/aws/aws-xray-sdk-go's changelog</a>.</em></p>
<blockquote>
<h1>Release v1.8.0 (2022-11-08)</h1>
<h3>SDK Enhancements</h3>
<ul>
<li>Oversampling Mitigation <a href="https://github-redirect.dependabot.com/aws/aws-xray-sdk-go/pull/381">#PR381</a></li>
<li>Changed Missing Context default strategy to log <a href="https://github-redirect.dependabot.com/aws/aws-xray-sdk-go/pull/382">#PR382</a></li>
</ul>
<h3>SDK Bugs</h3>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="cee05c968f"><code>cee05c9</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/aws/aws-xray-sdk-go/issues/388">#388</a> from atshaw43/master</li>
<li><a href="2b1e3457bc"><code>2b1e345</code></a> Merge branch 'aws:master' into master</li>
<li><a href="bf73631004"><code>bf73631</code></a> Bumping go version for sample app</li>
<li><a href="9139d2cc84"><code>9139d2c</code></a> Fixing Terraform</li>
<li><a href="65ab7d5b73"><code>65ab7d5</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/aws/aws-xray-sdk-go/issues/384">#384</a> from atshaw43/master</li>
<li><a href="f9609910ed"><code>f960991</code></a> Fixing sample app</li>
<li><a href="f0b23904f8"><code>f0b2390</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/aws/aws-xray-sdk-go/issues/383">#383</a> from atshaw43/master</li>
<li><a href="0dda36ce98"><code>0dda36c</code></a> Update CHANGELOG.md</li>
<li><a href="403bce4278"><code>403bce4</code></a> Updating changelog</li>
<li><a href="c67765e6dc"><code>c67765e</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/aws/aws-xray-sdk-go/issues/381">#381</a> from atshaw43/master</li>
<li>Additional commits viewable in <a href="https://github.com/aws/aws-xray-sdk-go/compare/v1.7.1...v1.8.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/aws/aws-xray-sdk-go&package-manager=go_modules&previous-version=1.7.1&new-version=1.8.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>
2022-12-07 04:40:22 +00:00
ashmrtn
5c7d2168fc
Create path categories for metadata folders (#1718)
## Description

Corso needs to store some transient information between backups so that it can perform more efficient incremental backups. This transient information will live at a path `tenant-id/service/user-id/categoryMetadata`. This patch adds an initializer, category enums, and tests for these new path locations

## Type of change

<!--- Please check the type of change your PR introduces: --->
- [x] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [ ] 🐹 Trivial/Minor

## Issue(s)

* #1685

## Test Plan

<!-- How will this be tested prior to merging.-->
- [ ] 💪 Manual
- [x]  Unit test
- [ ] 💚 E2E
2022-12-07 02:32:49 +00:00
dependabot[bot]
24f60af404
⬆️ Bump golang.org/x/tools from 0.3.0 to 0.4.0 in /src (#1713)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.3.0 to 0.4.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/golang/tools/releases">golang.org/x/tools's releases</a>.</em></p>
<blockquote>
<h2>gopls/v0.4.0</h2>
<ul>
<li>Improved support for working with modules (<a href="https://github.com/ridersofrohan"><code>@​ridersofrohan</code></a>). A detailed walk-through of the new features can be found <a href="https://www.ardanlabs.com/blog/2020/04/modules-05-gopls-improvements.html">here</a>. A quick summary:
<ul>
<li>Use the <code>-modfile</code> flag to suggest which modules should be added/removed from the <code>go.mod</code> file, rather than editing it automatically.</li>
<li>Suggest dependency upgrades in-editor and provide additional language features, such as formatting, for the <code>go.mod</code> file.</li>
</ul>
</li>
<li>Inverse implementations (<a href="https://github.com/muirdm"><code>@​muirdm</code></a>). &quot;Go to implementations&quot; on a concrete type will show the interfaces it implements.</li>
<li>Completion improvements (<a href="https://github.com/muirdm"><code>@​muirdm</code></a>). Specifically, improved completion for keywords. Also, offer <code>if err != nil { return err }</code> as a completion item.</li>
<li>Jumping to definition on an import statement returns all files as definition locations (<a href="https://github.com/danishprakash"><code>@​danishprakash</code></a>).</li>
<li>Support for running <code>go generate</code> through the editor, via a code lens (<a href="https://github.com/marwan-at-work"><code>@​marwan-at-work</code></a>).</li>
<li>Command-line support for workspace symbols (<a href="https://github.com/daisuzu"><code>@​daisuzu</code></a>).</li>
</ul>
<h4>Opt-in:</h4>
<ul>
<li>Code actions suggesting <code>gofmt -s</code>-style simplifications (<a href="https://github.com/ridersofrohan"><code>@​ridersofrohan</code></a>). To get these on-save, add the following setting:</li>
</ul>
<pre lang="js"><code>&quot;[go]&quot;: {
	&quot;editor.codeActionsOnSave&quot;: {
		&quot;source.fixAll&quot;: true,
	}
}
</code></pre>
<ul>
<li>Code actions suggesting fixes for type errors, such as missing return values (<a href="https://github.com/sqs/goreturns">goreturns</a>-style), undeclared names, unused parameters, and assignment statements that should be converted from <code>:=</code> to <code>=</code> (<a href="https://github.com/ridersofrohan"><code>@​ridersofrohan</code></a>). Add the following to your gopls settings to opt-in to these analyzers. In the future, they will be on by default and high-confidence suggested fixes may be applied on save. See additional documentation on analyzers <a href="https://cs.opensource.google/go/tools/+/master:gopls/doc/analyzers.md">here</a>.</li>
</ul>
<pre lang="json5"><code>&quot;gopls&quot;: {
	&quot;analyses&quot;: {
		&quot;fillreturns&quot;: true,
                &quot;undeclaredname&quot;: true,
                &quot;unusedparams&quot;: true,
                &quot;nonewvars&quot;: true,
	}
}
</code></pre>
<ul>
<li>Further improvements in the support for multiple concurrent clients (<a href="https://github.com/findleyr"><code>@​findleyr</code></a>). See <a href="https://github-redirect.dependabot.com/golang/tools/issues/34111">#34111</a> for all details.</li>
</ul>
<p>For a complete list of the issues resolved, see the <a href="https://github.com/golang/go/milestone/133?closed=1">gopls/v0.4.0 milestone</a>.</p>
<h2>gopls/v0.3.4</h2>
<ul>
<li><a href="https://golang.org/cl/222979">golang.org/cl/222979</a>: fix for a nil pointer exception in completion (<a href="https://github.com/muirdm"><code>@​muirdm</code></a>).</li>
<li><a href="https://golang.org/cl/222980">golang.org/cl/222980</a>: fix a concurrent map write and iteration (<a href="https://github.com/ridersofrohan"><code>@​ridersofrohan</code></a>).</li>
</ul>
<h2>gopls/v0.3.3</h2>
<ul>
<li>Support for workspace symbols. (<a href="https://github.com/daisuzu"><code>@​daisuzu</code></a>)</li>
<li>Various completion improvements, including fixes for completion in code that doesn't parse. (<a href="https://github.com/muirdm"><code>@​muirdm</code></a>)</li>
<li>Limit diagnostic concurrency, preventing huge spikes in memory usage that some users encountered. (<a href="https://github.com/heschik"><code>@​heschik</code></a>)</li>
<li>Improved handling for URIs containing escaped characters. (<a href="https://github.com/heschik"><code>@​heschik</code></a>)</li>
<li>Module versions from &quot;go list&quot; in pkg.go.dev links. (<a href="https://github.com/ridersofrohan"><code>@​ridersofrohan</code></a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="aee3994bd5"><code>aee3994</code></a> gopls/internal/lsp/fake: in (*Workdir).RenameFile, fall back to read + write</li>
<li><a href="fe60148df7"><code>fe60148</code></a> go.mod: update golang.org/x dependencies</li>
<li><a href="c9ea9a72c5"><code>c9ea9a7</code></a> gopls/internal/regtest: add a test for the case when the renaming package's p...</li>
<li><a href="bf5db81001"><code>bf5db81</code></a> gopls/internal/lsp/cache: improve ad-hoc warning for nested modules</li>
<li><a href="aa9f4b2f3d"><code>aa9f4b2</code></a> go/analysis: document that facts are gob encoded in one gulp</li>
<li><a href="bdcd082252"><code>bdcd082</code></a> internal/gcimporter: skip tests earlier when 'go build' is not available</li>
<li><a href="2ad6325d90"><code>2ad6325</code></a> gopls/internal/lsp/cache: expand ImportPath!=PackagePath comment</li>
<li><a href="52c7b88fe8"><code>52c7b88</code></a> gopls/internal/robustio: only define ERROR_SHARING_VIOLATION on Windows</li>
<li><a href="4f69bf3eb3"><code>4f69bf3</code></a> gopls/internal/lsp/cache: narrow reloadOrphanedFiles to open files</li>
<li><a href="6002d6ea51"><code>6002d6e</code></a> gopls/internal/regtest/misc: test Implementations + vendor</li>
<li>Additional commits viewable in <a href="https://github.com/golang/tools/compare/v0.3.0...v0.4.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=golang.org/x/tools&package-manager=go_modules&previous-version=0.3.0&new-version=0.4.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>
2022-12-06 23:44:46 +00:00