Repository navigation
merge origin/rel-golden-wattle into main - #17632
Conversation
* limit data viewer horizontal overscroll Reserve room for the rightmost column when computing the table's horizontal overscroll padding so it stays visible at maximum scroll; previously the user could scroll every unpinned column off-screen. Also sync paddingRight and the custom scrollbar thumb at the end of a column resize drag (applyResizeDelta intentionally skips these on every mousemove to avoid jank). Addresses #17612. * always allow horizontal overscroll in data viewer Drop the totalTableWidth > viewport.clientWidth gate so the overscroll padding is computed even when all columns fit in the viewport. This keeps horizontal scrolling consistently available regardless of how wide the table is relative to the viewport. * skip data viewer overscroll padding when no unpinned columns When every column is pinned (or no columns exist) there is no column to scroll into view, so the overscroll formula would add viewport.clientWidth - pinned.totalWidth of right padding for nothing, producing a phantom horizontal scrollbar and shrinking the body. getColumnOrder() places pinned columns before unpinned, so the last columnOrder entry being unpinned is sufficient to confirm an unpinned column exists. Gate the overscroll computation on that check; otherwise leave overscroll = 0. * add NEWS entry
* data viewer: restore column count in status bar Addresses #17613. The vanilla-JS data viewer rewrite dropped the column count from the info bar. Reword the info text to include it, and use "rows" instead of "entries" so it pairs cleanly with "columns". * data viewer: keep 'entries' wording in info bar * data viewer: restore 'total' qualifier in info bar text Reverts an unintended wording change that dropped 'total' from the column count, which broke the Playwright assertions in pagination-sorting.test.ts. Also adds 'entries' to the filtered suffix for clarity. * add NEWS entry
Broaden the <h3>Arguments</h3> match so it also handles the id attribute emitted by R >= 4.6.0 when the dynamic help server includes a table of contents (the default in r-devel). Without this, the r-arguments-title class is never added and the CSS rule that top-aligns argument names never applies. Addresses #17621.
Performed with `git merge --no-ff -X no-renames origin/rel-golden-wattle` to avoid git's rename detection conflating the NEWS.md rename on the rel branch with main's own NEWS rotation. Without `-X no-renames`, git would silently apply main's Blue Plumbago header edits to the renamed-to file version/news/os/NEWS-2026.05.0-golden-wattle.md, corrupting the archived Golden Wattle release notes. Brings over the three bug fixes from the rel-golden-wattle branch: - preserve top alignment of help argument names with r-devel (#17622) - data viewer: restore column count in status bar (#17617) - limit data viewer horizontal overscroll (#17616) Skips release-only changes by keeping main's state for: - NEWS.md (modify/delete conflict; kept main's Blue Plumbago placeholder) - version/BUILDTYPE (silently flipped to "Release"; reverted to "Daily") Resolved version/news/os/NEWS-2026.05.0-golden-wattle.md (add/add conflict) by taking rel-golden-wattle's version, which includes the three bug fix entries above. Also accepts the trim of src/node/desktop/src/assets/whats-new/golden-wattle/index.html since main is no longer on Golden Wattle and the trimmed version matches what shipped in the release.
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
Not fond of this approach, to be honest. If the merge is going to require that many command-line flags AND require every dev to remember to run this script at least once, we should create a script for the task of merging a release branch back into Such a script can set the git config setting appropriately so you don't have to remember whether or not you've set it up in advance. |
|
To be clear: I'm not fond of the approach of using a one-time setup script and a merge command with lots of flags. I have no complaints about using a targeted |
| <title>What's New in RStudio</title> | ||
| </head> | ||
| <body> | ||
| <div class="feature-section"> |
There was a problem hiding this comment.
I'm assuming these removals/changes are just overwriting what was there for the 2026.04 release?
There was a problem hiding this comment.
Hmm, not sure about that because of the lines that were preserved. Might be in error...
There was a problem hiding this comment.
Yeah, it wasn't clear to me what version of this file is the expected or correct one. 😓
There was a problem hiding this comment.
Is this what Gary is using to display What's New in the RStudio IDE?
cm421
left a comment
There was a problem hiding this comment.
Assuming the index.html changes are indeed what you wanted, LGTM!
|
I do think that moving to a script that will handle the exact merge calls in the correct order like Adam is suggesting is definitely the direction we want to ultimately go. Using |
Wraps `git merge --no-ff -X no-renames <branch>` plus the post-merge fixups needed for a rel-* -> main merge: - Auto-resolve NEWS.md modify/delete by keeping main's version. - Auto-resolve version/news/os/NEWS-<ver>-<codename>.md add/add by taking the rel branch's content (which has any bug-fix entries added after the rotation). - Reset version/BUILDTYPE, version/RELEASE, version/CALENDAR_VERSION to HEAD's values to undo git's trivial-merge fast-take in cases where main has not modified the file (most notably BUILDTYPE, which silently flips Daily -> Release without intervention). Stages the merge but does not commit it -- the user reviews with `git diff --staged` and then runs `git commit`. The earlier attempt to handle BUILDTYPE via a `merge=ours` driver in .gitattributes does not work for this scenario: git only consults merge drivers for true three-way merges (where both sides modified the file), not for the one-sided trivial merge that BUILDTYPE actually hits.
710997c to
4fb267b
Compare
The merge of rel-golden-wattle into main applied the trim from #17629, which curated the What's New content for the release announcement. Revert that on main so main retains the full pre-trim content; the trimmed version remains on the rel branch where it ships.
Summary
Merges
origin/rel-golden-wattleintomain, bringing over the three bug fixes that landed on the rel branch after the NEWS rotation:Skips the release-only changes (BUILDTYPE -> "Release", NEWS rename, Golden Wattle What's New trim) by selectively resolving conflicts.
Adds
scripts/merge-release-branch.shso future rel-branch merges don't need this archaeology.The
-X no-renamesfindingThe merge was performed with
git merge --no-ff -X no-renames origin/rel-golden-wattle. Without-X no-renames, git's rename detection conflates the rel branch's NEWS.md rename (NEWS.md ->version/news/os/NEWS-2026.05.0-golden-wattle.md) with main's own NEWS rotation. The visible symptom is thatgit checkout --theirs -- version/news/os/NEWS-2026.05.0-golden-wattle.mdreturns git's three-way merged version of the renamed file, not the rel branch's actual content -- silently substituting main'sBlue Plumbagoheader into the archivedGolden Wattlerelease notes.With
-X no-renamesthe conflicts are explicit:NEWS.md-- "deleted by them"; keep main's viagit add NEWS.md.version/news/os/NEWS-2026.05.0-golden-wattle.md-- "both added"; take theirs viagit checkout --theirs && git add.Why not
.gitattributes+merge=oursThe first version of this PR added
version/BUILDTYPE merge=oursto.gitattributeswith a one-time setup script to define the driver. It does not work for our scenario. Git's merge engine only consults merge drivers for true three-way merges (where both sides modified the file). Forversion/BUILDTYPE, main hasn't touched it since the merge base, so git takes the "trivial merge" fast path that bypasses drivers entirely -- and silently takes the rel branch's "Release" value.Verified with a minimal repro outside this repo (see PR conversation).
scripts/merge-release-branch.shtherefore handlesversion/BUILDTYPE(andversion/RELEASE,version/CALENDAR_VERSIONfor safety) with an explicitgit checkout HEAD -- <path>reset after the merge. No.gitattributesmagic.Using the script next release
After this PR lands:
The script is also idempotent across repeated merges from the same rel branch as new bug fixes land on it -- the auto-resolutions degrade to no-ops on the cases that don't apply, and the BUILDTYPE reset keeps firing on each merge.
Test plan
cat version/BUILDTYPEreturnsDailyhead -1 NEWS.mdreturns the Blue Plumbago headerorigin/rel-golden-wattle's version exactly (d394ab1...)SessionHelp.cppandDataViewer.jsscripts/merge-release-branch.sh origin/rel-golden-wattlereproduces the merge result with no further manual intervention needed