Skip to content

feat: add temporary replaceHandlerEnabledDisabled method for cleanup.#1328

Open
tathagat2241 wants to merge 1 commit intomainfrom
temporary-replace-enabled-disabled-api
Open

feat: add temporary replaceHandlerEnabledDisabled method for cleanup.#1328
tathagat2241 wants to merge 1 commit intomainfrom
temporary-replace-enabled-disabled-api

Conversation

@tathagat2241
Copy link
Contributor

TEMPORARY: This method was created to support a temporary API endpoint for cleaning up enabled and disabled lists by removing unnecessary site IDs.

Unlike updateHandlerProperties which merges arrays, this method completely replaces the specified arrays. This method will be removed once the cleanup task is completed.

Changes

  • Add replaceHandlerEnabledDisabled method to Configuration model
  • Method replaces enabled/disabled arrays instead of merging them
  • Marked with c8 ignore comments to skip unit test coverage (temporary code)

Related

  • Related to temporary API in spacecat-api-service repo

Please ensure your pull request adheres to the following guidelines:

  • make sure to link the related issues in this description
  • when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes

Related Issues

https://jira.corp.adobe.com/browse/SITES-40312

Thanks for contributing!

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.

1 participant