Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[BUG] Separate page section backgrounds reset by Add-PnPPageSection and Add-PnPPageWebPart

オープン
#4,086 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
csharp, powershell
領域
cli, tooling

調査の方向性

Add-PnPPageSection と Add-PnPPageWebPart のエントリポイントから始め、説明されているコマンドとページ設定を使って問題を再現します。ページの更新時にそのセクションがどのようにシリアライズされるかを追跡します。セクションまたは Web パーツを追加したときに、グラデーションや画像を含む既存の新しいセクションの背景が保持されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug
Issue

Section backgrounds are reset when updating a page with Add-PnPPageSection or Add-PnPPageWebPart and probably other commands.
Only the new section backgrounds are affected (i.e. not emphasis 0, 1, 2, 3 but rather the additional new ones that have gradiants images etc)

Expected behavior

Expecting Add-PnPPageSection, Add-PnPPageWebPart and other similar commands to not change separate sections on the page

Actual behavior

All section backgrounds that use the new backgrounds are reset on the page.

Before After
image image
Steps to reproduce behavior
  1. Create a page on a site using the UI
  2. Add a couple of sections.
  3. Change the section backgrounds to use the new ones (gradients etc)
  4. Publish the page
  5. Run commands to update the page. For example
$site = "Your_site_url"
$pageName = "Page_name"
Connect-PnpOnline $site
$page = Get-PnPPage -Identity $pageName 
Add-PnPPageSection -Page $page  -Order "0" -SectionTemplate "OneColumn"
  1. Reload the page in the browser. Note that all the new section background are gone

Note that the issue can also be reproduced with Add-PnPPageWebPart

What is the version of the Cmdlet module you are running?

2.5.0

Which operating system/environment are you running PnP PowerShell on?
  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify
主要言語
C#
スター
904
フォーク
407
平均マージ
2日 9時間
マージ済み PR(30日)
10

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pnp/powershell のほかの issue

pnp/powershell の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。