Skip to content

Conversation

@smalluban
Copy link
Collaborator

Exported and imported settings should not intersect with managed and assisted paused domains.

  • Removes the managed and assist paused domains
  • Fix cleaning all paused domains, when importing settings - managed and assisted should not be touched

);

// Remove managed, assist and temporary paused domains
cleanedOptions.paused = Object.entries(cleanedOptions.paused).reduce(
Copy link
Member

Choose a reason for hiding this comment

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

Purely cosmetic, but perhaps filtering more be more natural then reducing here:

cleanedOptions.paused = Object.fromEntries(
  Object.entries(cleanedOptions.paused).filter(
    ([domain, details]) => !details.managed && !details.assist && !details.revokeAt
  )
);

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll update it and merge.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I figured out that we can clean up managed and assist options from exported data, so I kept the reduce, as the item's value changes.

@smalluban smalluban merged commit b753648 into main Nov 8, 2025
5 checks passed
@smalluban smalluban deleted the fix-settings branch November 8, 2025 10:02
@smalluban smalluban mentioned this pull request Nov 8, 2025
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.

3 participants