Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

MetaData: Pages Backup Info Support #2084

Merged
merged 7 commits into from
Jan 19, 2023
Merged

MetaData: Pages Backup Info Support #2084

merged 7 commits into from
Jan 19, 2023

Conversation

dadams39
Copy link
Contributor

@dadams39 dadams39 commented Jan 10, 2023

Description

SharePointInfo extended to include SitePageable objects.
NOTE: Merge includes the beta graph package and will affect the compile time.

Does this PR need a docs update or release note?

  • ⛔ No

Type of change

  • 🌻 Feature

Issue(s)

Test Plan

  • ⚡ Unit test

@dadams39 dadams39 requested a review from ryanfkeepers January 10, 2023 13:45
@dadams39 dadams39 self-assigned this Jan 10, 2023
@dadams39 dadams39 temporarily deployed to Testing January 10, 2023 13:45 — with GitHub Actions Inactive
@dadams39 dadams39 temporarily deployed to Testing January 10, 2023 13:45 — with GitHub Actions Inactive
@dadams39 dadams39 temporarily deployed to Testing January 10, 2023 14:12 — with GitHub Actions Inactive
@dadams39 dadams39 temporarily deployed to Testing January 10, 2023 14:12 — with GitHub Actions Inactive
@dadams39 dadams39 temporarily deployed to Testing January 10, 2023 15:41 — with GitHub Actions Inactive
@dadams39 dadams39 temporarily deployed to Testing January 10, 2023 15:41 — with GitHub Actions Inactive
@dadams39 dadams39 temporarily deployed to Testing January 10, 2023 15:49 — with GitHub Actions Inactive
@dadams39 dadams39 temporarily deployed to Testing January 10, 2023 15:49 — with GitHub Actions Inactive
// sharePointPageInfo propagates metadata from the SharePoint Page data type
// into searchable content.
// Page Details: https://learn.microsoft.com/en-us/graph/api/resources/sitepage?view=graph-rest-beta
func sharePointPageInfo(page bmodel.SitePageable, size int64) *details.SharePointInfo {
Copy link
Contributor

Choose a reason for hiding this comment

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

This isn't getting called outside of tests, making it effectively dead code. What's the plan for using it?

Also, we're a little weird on package sharing here, but is there any way to combine or co-locate this with the other sharePointItemInfo? It's true, it doesn't really belong in that package. But until we refactor things towards interface compliance (my fault for not starting things off that way), I assume that the info you're looking for will need to be retrieved within that process.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Issue #2071 is to refactor SharePoint into 3 distinct items similar to exchange.

  • Pages
  • Lists
  • Libraries
    This will constitute a site being effectively backed up. Not USED here; however, it was the quickest way to verify library complications for using a single library from msgraph-beta-sdk-go

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For completion of issue #2072, the SharePoint.Page will be placed outside of the onedrive.

@dadams39 dadams39 temporarily deployed to Testing January 10, 2023 18:08 — with GitHub Actions Inactive
@dadams39 dadams39 temporarily deployed to Testing January 10, 2023 18:08 — with GitHub Actions Inactive
…#2088)

## Description
Imports minimal version of `site_page.go` and `site_pageable.go` to
avoid compile time failures for `msgraph-beta-sdk-go`.
@dadams39 dadams39 temporarily deployed to Testing January 10, 2023 18:12 — with GitHub Actions Inactive
@dadams39 dadams39 temporarily deployed to Testing January 10, 2023 18:12 — with GitHub Actions Inactive
@dadams39 dadams39 temporarily deployed to Testing January 10, 2023 18:12 — with GitHub Actions Inactive
Removal of alias from
@dadams39 dadams39 temporarily deployed to Testing January 10, 2023 18:14 — with GitHub Actions Inactive
@dadams39 dadams39 temporarily deployed to Testing January 10, 2023 18:14 — with GitHub Actions Inactive
@dadams39 dadams39 temporarily deployed to Testing January 10, 2023 18:15 — with GitHub Actions Inactive
@dadams39 dadams39 temporarily deployed to Testing January 10, 2023 18:15 — with GitHub Actions Inactive
@dadams39 dadams39 temporarily deployed to Testing January 10, 2023 18:15 — with GitHub Actions Inactive
@dadams39 dadams39 temporarily deployed to Testing January 10, 2023 18:15 — with GitHub Actions Inactive
@dadams39 dadams39 changed the title Pages backinfo MetaData: Pages Backup Info Support Jan 11, 2023
@aviator-app
Copy link
Contributor

aviator-app bot commented Jan 19, 2023

Aviator status

Aviator will automatically update this comment as the status of the PR changes.

This PR was merged using Aviator.

@aviator-app aviator-app bot temporarily deployed to Testing January 19, 2023 03:42 Inactive
@aviator-app aviator-app bot temporarily deployed to Testing January 19, 2023 03:42 Inactive
@aviator-app aviator-app bot temporarily deployed to Testing January 19, 2023 03:42 Inactive
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@aviator-app aviator-app bot temporarily deployed to Testing January 19, 2023 03:43 Inactive
@aviator-app aviator-app bot temporarily deployed to Testing January 19, 2023 03:43 Inactive
@aviator-app aviator-app bot temporarily deployed to Testing January 19, 2023 03:43 Inactive
@aviator-app aviator-app bot merged commit 70ebaa6 into main Jan 19, 2023
@aviator-app aviator-app bot deleted the pages-backinfo branch January 19, 2023 04:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GC: Backup: SharePoint: Pages: Extending Backup Details
2 participants