Skip to content

cmd/syncthing, lib/config: Remove restartOnWakeup option & functionality (fixes #8448) - #8449

Merged
calmh merged 1 commit into
syncthing:mainfrom
calmh:norestart
Jul 26, 2022
Merged

calmh merged 1 commit into
syncthing:mainfrom
calmh:norestart

Conversation

@calmh

@calmh calmh commented Jul 26, 2022 •

Copy link
Copy Markdown
Member

It's old and busted

@tomasz1986

Copy link
Copy Markdown
Member

Doesn't there need to be a migration to a new config version (including removing the option from the XML file)?

@AudriusButkevicius

Copy link
Copy Markdown
Member

We're outright removing it, not replacing it with a different field.

@calmh
calmh merged commit a2c5d90 into syncthing:main Jul 26, 2022
string usage_reporting_url = 21 [(ext.goname) = "URURL", (ext.xml) = "urURL", (ext.json) = "urURL", (ext.default) = "https://data.syncthing.net/newdata"];
bool usage_reporting_post_insecurely = 22 [(ext.goname) = "URPostInsecurely", (ext.xml) = "urPostInsecurely", (ext.json) = "urPostInsecurely", (ext.default) = "false"];
int32 usage_reporting_initial_delay_s = 23 [(ext.goname) = "URInitialDelayS", (ext.xml) = "urInitialDelayS", (ext.json) = "urInitialDelayS", (ext.default) = "1800"];
bool restart_on_wakeup = 24 [(ext.default) = "true"];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should not be removed but moved down to the deprecated options for backwards compost
Likely doesn't matter as json/xml ignoring unknown entries, but would still be good to handle it given we use proto.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I considered a reserved 24; but skipped it since we have no binary marshalling of these types... Removing it entirely means it will just get dropped on next save, which seems fine to me?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

yah right, it really doesn't matter and what i intended to propose was actually wrong. all good as is here

calmh added a commit to calmh/syncthing that referenced this pull request Jul 28, 2022
* main:
  cmd/syncthing, lib/config: Remove restartOnWakeup option & functionality (fixes syncthing#8448) (syncthing#8449)
  gui: Remove blank meta tags (syncthing#8362)
  gui: Add device sync status (fixes syncthing#7981) (syncthing#8401)
  gui: Fix detailed staggered versioning information in folder info (ref syncthing#8348) (syncthing#8433)
  all: Support syncing ownership (fixes syncthing#1329) (syncthing#8434)
  gui, man, authors: Update docs, translations, and contributors
  lib/model, lib/config: Apply sensible defaults for auto-accepted encrypted folder (fixes syncthing#8296) (syncthing#8427)
  gui: Move filesystem watcher explanation from tooltip to help block (syncthing#8432)
  gui: Use discovered IDs from cache when adding a new remote device (syncthing#8382)
  build: Update goleveldb (syncthing#8440)
  gui, man, authors: Update docs, translations, and contributors
  cmd/syncthing/cli: Add show discovery command (fixes syncthing#8007) (syncthing#8378)
  gui, man, authors: Update docs, translations, and contributors
  lib/osutil: Only announce address of interfaces which are up (fixes syncthing#7458) (syncthing#8422)
  gui: Fix missing span end tag and missing nbsp semicolon in HTML (syncthing#8419)
calmh added a commit to calmh/syncthing that referenced this pull request Jul 28, 2022
* main:
  all: Fix unused method receiver (further) (syncthing#8466)
  all: Minor deprecation updates
  lib/model: Clarify normal shallow copy
  lib/api: Missing error handling in config handler (syncthing#8463)
  all: Remove unused method receivers (syncthing#8462)
  all: Combine sequential appends (syncthing#8461)
  cmd/ursrv: Silence linter with correct regexps (syncthing#8460)
  all: Unused parameter should be replaced by underscore (syncthing#8464)
  all: Remove or convert deprecated API usages (syncthing#8459)
  lib/config: Remove unnecessary use of `fmt.Sprintf` (syncthing#8458)
  lib/model: Replace `for` loop with `append` (syncthing#8457)
  all: Fix check for empty string (syncthing#8456)
  cmd/syncthing, lib/config: Remove restartOnWakeup option & functionality (fixes syncthing#8448) (syncthing#8449)
  gui: Remove blank meta tags (syncthing#8362)
  gui: Add device sync status (fixes syncthing#7981) (syncthing#8401)
  gui: Fix detailed staggered versioning information in folder info (ref syncthing#8348) (syncthing#8433)
@calmh calmh added this to the v1.21.0 milestone Aug 9, 2022
@calmh
calmh deleted the norestart branch August 10, 2022 07:19
@st-review st-review added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Jul 26, 2023
@syncthing syncthing locked and limited conversation to collaborators Jul 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants