Skip to content

[Power Pages][ActionsHub] Reactive Inactive Site. #1166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

amitjoshi438
Copy link
Contributor

@amitjoshi438 amitjoshi438 commented Mar 25, 2025

This pull request introduces a new feature to reactivate inactive sites and includes several improvements and updates across multiple files. The most important changes include the addition of new commands and handlers, updates to data models to include language codes, and modifications to test cases to reflect these changes.

image

New Feature: Reactivate Inactive Sites

Data Model Updates

Test Case Updates

Miscellaneous Updates

@amitjoshi438 amitjoshi438 requested review from a team as code owners March 25, 2025 11:51
@amitjoshi438 amitjoshi438 requested a review from Copilot March 25, 2025 11:52
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request introduces a new feature to reactivate inactive sites while updating data models and test cases to incorporate a language code property. Key changes include:

  • Adding a new command and handler (reactivateSite) for site reactivation.
  • Updating data models and API calls to include a languageCode property.
  • Adjusting test cases and feature flags accordingly.

Reviewed Changes

Copilot reviewed 12 out of 14 changed files in this pull request and generated no comments.

File Description
src/client/power-pages/actions-hub/ActionsHubCommandHandlers.ts Added the reactivateSite command to handle site reactivation.
src/common/utilities/WebsiteUtil.ts Updated API handling to extract language code, and mapped response fields to include language information.
Test files Updated tests to supply languageCode in site details.
Miscellaneous (constants, feature gates, interfaces) Added new constants and updated models to support the languageCode property.
Files not reviewed (2)
  • package.json: Language not supported
  • package.nls.json: Language not supported
Comments suppressed due to low confidence (1)

src/common/utilities/WebsiteUtil.ts:157

  • [nitpick] Consider standardizing the property name from 'website_language' to 'languageCode' in the mapping function to align with the IWebsiteDetails interface and other parts of the codebase.
return { ...record, website_language: websiteLanguage };

@amitjoshi438 amitjoshi438 enabled auto-merge (squash) March 25, 2025 12:09
…mand group and add languageCode to website data
@amitjoshi438 amitjoshi438 disabled auto-merge March 26, 2025 05:53
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.

2 participants