Skip to content

Conversation

@DHowett
Copy link
Member

@DHowett DHowett commented Sep 16, 2025

Some of the other settings fixups require there to be a valid NewTabMenu, rather than just a temporary object. Since the resolving all the menu entries after loading already forces the user to have a newTabMenu, let's just codify it as a real fixup.

I've moved the SSH folder fixup after the settings fixup because it relies on there being a NTM.

I decided not to make this fixup write back to the user's settings. There are a couple reasons for this, all of which are flimsy.

  • There are a number of tests that test fixup behavior, especially those around actions, which would need to be updated for this new mandatory key. I did not think it proper to add newTabMenu to ten unrelated tests that only contain actions (for example.)
  • We actually don't currently have mandatory keys. But this one was always being added anyway, in a later phase...
  • It's consistent with the existing behavior.

Closes #19356

Copy link
Member

@carlos-zamora carlos-zamora left a comment

Choose a reason for hiding this comment

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

Nice!

Mark for servicing?

@DHowett
Copy link
Member Author

DHowett commented Sep 16, 2025

I fixed the tests by removing the write-to-disk step from this fixup. I didn't want to add a newTabMenu to ten tests. It is also more consistent with the original behavior it is replacing.

@github-actions

This comment has been minimized.

@DHowett DHowett enabled auto-merge (squash) September 16, 2025 21:07
@DHowett DHowett merged commit e80aadd into main Sep 16, 2025
17 of 19 checks passed
DHowett added a commit that referenced this pull request Sep 16, 2025
Some of the other settings fixups require there to be a valid
NewTabMenu, rather than just a temporary object. Since the resolving all
the menu entries after loading already forces the user to have a
`newTabMenu`, let's just codify it as a real fixup.

I've moved the SSH folder fixup after the settings fixup because it
relies on there being a NTM.

I decided not to make this fixup write back to the user's settings.
There are a couple reasons for this, all of which are flimsy.

- There are a number of tests that test fixup behavior, especially those
around actions, which would need to be updated for this new mandatory
key. I did not think it proper to add `newTabMenu` to ten unrelated
tests that only contain actions (for example.)
- We actually don't currently have mandatory keys. But this one was
always being added anyway, in a later phase...
- It's consistent with the existing behavior.

Closes #19356

(cherry picked from commit e80aadd)
Service-Card-Id: PVTI_lADOAF3p4s4BBcTlzge0HjU
Service-Version: 1.24
@DHowett DHowett deleted the dev/duhowett/fix-ntm-things branch November 20, 2025 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The SSH menu does not appear on a new install on first run

4 participants