1457 Commits

Author SHA1 Message Date
Danny Adams
656bc14d24 GOFMT: wsl changes. 2023-01-27 14:09:19 -05:00
Danny Adams
47a927c141 Updates to /connector/sharepoint/collection_test.go 2023-01-27 14:07:03 -05:00
Danny Adams
2cc3c22c4c Updates /connector/sharepoint/site_page_test.go
Updates call for GetSitePages()
2023-01-27 13:41:58 -05:00
Danny Adams
9e0393e1d2 Updates to /connector/sharepoint/collection_test.go
betaService fields tested for the collection.
2023-01-27 13:41:22 -05:00
Danny Adams
c7044f1fa0 Merge branch 'backup-page-flow' into backup-page-flow-2 2023-01-27 13:34:40 -05:00
Danny Adams
b7b7029ec3 Updates to /connector/sharepoint/site_page_test.go
Updates from helper_test.go for service creation.
2023-01-27 13:25:39 -05:00
Danny Adams
9035881bc5 Updates to /connector/sharepoint/site_page.go
method to accept betaService in place of graph.Service
2023-01-27 13:23:58 -05:00
Danny Adams
560531a56c Updates to /connector/sharepoint/data_collections.go
CollectPages() method updated to create BetaService and to store service within collection.
2023-01-27 13:20:42 -05:00
Danny Adams
1aebe933ea Updates to /connector/sharepoint/list_test.go
Updates call for createTestService().
2023-01-27 13:16:43 -05:00
Danny Adams
02f85a5614 Updates to /connector/sharepoint/collection_test.go
Updates to test service creation call and return methods.
2023-01-27 13:15:43 -05:00
Danny Adams
1357974ccb Updates /connector/sharepoint/collection.go
BetaService field added to collection.
2023-01-27 13:14:08 -05:00
Danny Adams
a7ea30e109 Updates to /connector/sharepoint/helper_test.go
Updates to createTestService method.
Creates createTestBetaService().
2023-01-27 13:12:18 -05:00
Danny
30ce9cafc9
Merge branch 'beta-library-service' into backup-page-flow 2023-01-27 12:26:13 -05:00
Danny Adams
de5bc553d0 Updates to /graph/betasdk/beta_service.go
Addition of constructor and serialize function.
2023-01-27 12:08:21 -05:00
Danny Adams
97c6d631b5 Updates to /graph/betasdk/beta_client_test.go
Verifies service functionality.
2023-01-27 12:07:32 -05:00
Danny Adams
deaca98a4d stash. 2023-01-27 11:40:38 -05:00
Danny Adams
7bac82cdba Updates to /connector/sharepoint/collection.go
betaSDK service become a field within SharePoint Collection.
2023-01-27 11:39:59 -05:00
Danny Adams
b2ce209eee Updates /connector/sharepoint/site_page.go
Updates dependencies to betasdk.
2023-01-27 11:38:29 -05:00
Danny
afe8f04a45
Merge branch 'beta-library-service' into backup-page-flow 2023-01-27 11:02:10 -05:00
Danny Adams
946767edcc Add file /graph/betasdk/beta_service.go 2023-01-27 10:50:46 -05:00
Danny Adams
3228bfbe1e Updates to /graph/betasdk/beta_client.go
Comments updated for clarity on package setup.
2023-01-27 10:37:42 -05:00
Danny Adams
447ae1f3bb Updates to /graph/betasdk/kiota-lock.json
Key/Value pair added for Beta version.
2023-01-27 10:35:52 -05:00
Danny Adams
2133cc41f1 Update to /graph/betasdk/kiota-lock.json
Changes to JSON fields for compliance with parsing.
2023-01-27 10:23:00 -05:00
Danny
9deb1ce9a2
GC: Backup: SharePoint: Test Fetch/Get Functions (#2182)
## Description
Tests the functionality of GC's retrieval functions
2023-01-27 09:40:32 -05:00
Danny
9aa7c1b667
Merge branch 'beta-library-switch' into backup-page-flow 2023-01-27 09:34:40 -05:00
Danny Adams
d7e077ad72 Merge branch 'beta-library-switch' of github.com:alcionai/corso into beta-library-switch 2023-01-26 17:58:54 -05:00
Danny Adams
db9a91fb87 Updates to /betasdk/sites/kiota-lock.json
Details the required files for the subdirectories of models and sites.
2023-01-26 17:58:40 -05:00
Danny
57ce0be82a
Merge branch 'main' into beta-library-switch 2023-01-26 17:17:00 -05:00
Danny Adams
b3aec1b40f Updates /graph/beasdk/beta_service_test.go
File renamed to beta_client_test.go.
Comments updated.
2023-01-26 16:16:43 -05:00
Danny Adams
f8d65d66de Updates to /graph/betasdk/beta_client.go
Registers serializers for connector.
Adds explicit comments on connector usage and patterns.
Removes Sites() call from supported commands.
2023-01-26 16:08:25 -05:00
Danny Adams
817a7a2bc6 UPdates to /graph/betasdk/sites package
Final sweep to bring src files down to bare minimum for Site Page management.
2023-01-26 15:51:39 -05:00
Danny Adams
2839d8d6e3 ci.yml --> remove swap space. 2023-01-26 14:09:00 -05:00
Danny Adams
05c3216f08 Removal of beta library package from system. 2023-01-26 14:03:49 -05:00
Danny Adams
8a474af189 Revert back to msgraph-sdk-go library for /support/errors.go 2023-01-26 14:02:55 -05:00
Danny Adams
b7b2de096b Revert back to msgraph-sdk-go package for /connector/graph/errors.go 2023-01-26 14:02:15 -05:00
Danny Adams
03ec1dd2e9 Updates to remove beta library from operations/backup_integration_test.go 2023-01-26 14:01:24 -05:00
Danny Adams
7bc080305d Update to exclude betasdk from linting. 2023-01-26 13:56:31 -05:00
Danny Adams
28ddbca41e Merge branch 'beta-library-switch' of github.com:alcionai/corso into beta-library-switch 2023-01-26 11:53:16 -05:00
Danny Adams
263197bbab Updates to /betasdk/sites/ for GOFMT:
Fixes for linter failures --> ignore statements.
2023-01-26 11:39:37 -05:00
Vaibhav Kamra
bdb7f2b109
Re-use client for OneDrive item downloads (#2276)
## Description

This PR reintroduces the changes from #2266 with a change to *not* reset the transport
when initializing the shared client. 

Doing so was removing the retry and other middlewares
and also resulting in throttled requests being masked as success

Also - we now decorate our download traffic with an ISV tag as recommended [here](https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-avoid-getting-throttled-or-blocked-in-sharepoint-online#how-to-decorate-your-http-traffic)

## Does this PR need a docs update or release note?

- [ ]  Yes, it's included
- [x] 🕐 Yes, but in a later PR
- [ ]  No 

## Type of change

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

## Issue(s)

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

## Test Plan

<!-- How will this be tested prior to merging.-->
- [ ] 💪 Manual
- [ ]  Unit test
- [x] 💚 E2E
2023-01-26 15:05:12 +00:00
Danny
4e3f15f357
Update ci.yml
Update to 12
2023-01-26 10:01:32 -05:00
Danny Adams
68f7ac9cff Updates to the .yml for additional space. 2023-01-26 09:55:41 -05:00
Danny Adams
bcd379f596 Updates to betasdk/sites package
Dependencies updated and minimal files supplied.
2023-01-26 08:24:09 -05:00
Niraj Tolia
53b5032c1b
Fix direct GH docs edit link (#2274)
## Description

Was broken when we combined the docs and website

## Does this PR need a docs update or release note?

- [x]  No 

## Type of change

- [x] 🐛 Bugfix
- [x] 🗺️ Documentation
2023-01-26 11:01:28 +00:00
Vaibhav Kamra
0587df91ef
Remove OneDrive license GUID check (#2275)
## Description

This check is brittle and shouldn't be needed. It should be sufficient to check whether a user has a 
drive or not (similar to what we now do for exchange mailboxes).

Validated with the existing integration test.

## Does this PR need a docs update or release note?

- [x]  Yes, it's included
- [ ] 🕐 Yes, but in a later PR
- [ ]  No 

## Type of change

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

## Issue(s)

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

## Test Plan

<!-- How will this be tested prior to merging.-->
- [ ] 💪 Manual
- [x]  Unit test
- [ ] 💚 E2E
2023-01-26 08:52:39 +00:00
Vaibhav Kamra
24734f22b0
Revert "add itemClient for re-usable od item downloads" (#2273)
Reverts alcionai/corso#2266. Am seeing issues on data restore that need to be debugged.
2023-01-26 07:54:30 +00:00
Vaibhav Kamra
e9354a8429
Revert "add itemClient for re-usable od item downloads" (#2273)
Reverts alcionai/corso#2266. Am seeing issues on data restore that need to be debugged.
2023-01-26 07:52:56 +00:00
dependabot[bot]
84a21aef52
⬆️ Bump github.com/aws/aws-sdk-go from 1.44.184 to 1.44.187 in /src (#2270)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.184 to 1.44.187.
<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.187 (2023-01-25)</h1>
<h3>Service Client Updates</h3>
<ul>
<li><code>service/cloudformation</code>: Adds new service
<ul>
<li>Enabled FIPS aws-us-gov endpoints in SDK.</li>
</ul>
</li>
<li><code>service/ec2</code>: Updates service API, documentation, and paginators
<ul>
<li>This release adds new functionality that allows customers to provision IPv6 CIDR blocks through Amazon VPC IP Address Manager (IPAM) as well as allowing customers to utilize IPAM Resource Discovery APIs.</li>
</ul>
</li>
<li><code>service/m2</code>: Updates service API and documentation</li>
<li><code>service/polly</code>: Updates service API
<ul>
<li>Add 5 new neural voices - Sergio (es-ES), Andres (es-MX), Remi (fr-FR), Adriano (it-IT) and Thiago (pt-BR).</li>
</ul>
</li>
<li><code>service/redshift-serverless</code>: Updates service documentation</li>
<li><code>service/s3control</code>: Updates service API
<ul>
<li>Add additional endpoint tests for S3 Control. Fix missing endpoint parameters for PutBucketVersioning and GetBucketVersioning. Prior to this fix, those operations may have resulted in an invalid endpoint being resolved.</li>
</ul>
</li>
<li><code>service/sagemaker</code>: Updates service API and documentation
<ul>
<li>SageMaker Inference Recommender now decouples from Model Registry and could accept Model Name to invoke inference recommendations job; Inference Recommender now provides CPU/Memory Utilization metrics data in recommendation output.</li>
</ul>
</li>
<li><code>service/sts</code>: Updates service documentation
<ul>
<li>Doc only change to update wording in a key topic</li>
</ul>
</li>
</ul>
<h1>Release v1.44.186 (2023-01-24)</h1>
<h3>Service Client Updates</h3>
<ul>
<li><code>service/databrew</code>: Adds new service</li>
<li><code>service/route53</code>: Updates service API
<ul>
<li>Amazon Route 53 now supports the Asia Pacific (Melbourne) Region (ap-southeast-4) for latency records, geoproximity records, and private DNS for Amazon VPCs in that region.</li>
</ul>
</li>
<li><code>service/ssm-sap</code>: Updates service API, documentation, and paginators</li>
</ul>
<h1>Release v1.44.185 (2023-01-23)</h1>
<h3>Service Client Updates</h3>
<ul>
<li><code>service/lambda</code>: Updates service API and documentation
<ul>
<li>Release Lambda RuntimeManagementConfig, enabling customers to better manage runtime updates to their Lambda functions. This release adds two new APIs, GetRuntimeManagementConfig and PutRuntimeManagementConfig, as well as support on existing Create/Get/Update function APIs.</li>
</ul>
</li>
<li><code>service/sagemaker</code>: Updates service API and documentation
<ul>
<li>Amazon SageMaker Inference now supports P4de instance types.</li>
</ul>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="bf09a2d81c"><code>bf09a2d</code></a> Release v1.44.187 (2023-01-25) (<a href="https://github-redirect.dependabot.com/aws/aws-sdk-go/issues/4704">#4704</a>)</li>
<li><a href="38cb3b89d6"><code>38cb3b8</code></a> fix misleading timestamp value from tests and lint issues (<a href="https://github-redirect.dependabot.com/aws/aws-sdk-go/issues/4699">#4699</a>)</li>
<li><a href="8035a306ff"><code>8035a30</code></a> Release v1.44.186 (2023-01-24) (<a href="https://github-redirect.dependabot.com/aws/aws-sdk-go/issues/4702">#4702</a>)</li>
<li><a href="96e5770aed"><code>96e5770</code></a> Release v1.44.185 (2023-01-23) (<a href="https://github-redirect.dependabot.com/aws/aws-sdk-go/issues/4698">#4698</a>)</li>
<li>See full diff in <a href="https://github.com/aws/aws-sdk-go/compare/v1.44.184...v1.44.187">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.184&new-version=1.44.187)](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>
2023-01-26 06:30:46 +00:00
Niraj Tolia
dc02a71446
Print Corso version on one line (#2269)
## Description

Don't split the Corso version information across lines. This is unexpected.

## Does this PR need a docs update or release note?

- [x]  No 

## Type of change

- [x] 🧹 Tech Debt/Cleanup
2023-01-26 05:27:45 +00:00
Keepers
bda8a5c60c
add itemClient for re-usable od item downloads (#2266)
## Description

onedrive currently constructs a new http client
for every file it downloads.  This causes the OS
to generate extra sockets, and hang onto them
after the download is complete.  Replacing these
one-off clients with a singular, re-used client-
which is the behavior and standard suggested
for golang http clients- minimizes system
resource consumption.

## Does this PR need a docs update or release note?

- [x]  No 

## Type of change

- [x] 🐛 Bugfix

## Issue(s)

* closes #2262

## Test Plan

- [x] 💪 Manual
- [x]  Unit test
- [x] 💚 E2E
2023-01-26 04:27:52 +00:00