Skip to content
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

Site Runtime Preview Enhancements #1081

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

Conversation

priyanshu92
Copy link
Contributor

@priyanshu92 priyanshu92 commented Dec 17, 2024

Changes

This PR has the following changes:

Sovereign Cloud Endpoints

  1. This PR is adding endpoints for PPAPI service for GCC, HIGH and MOONCAKE clouds
  2. It also adds authentication scopes required by these services.

PreviewSite Class Enhancements:

  • Introduced a static method loadSiteUrl to fetch and store the website URL.
  • Added a method handleEmptyWebsiteUrl to manage the login flow when the website URL is not found.
  • Updated handlePreviewRequest to use the stored website URL and handle initialization messages.

extension.ts File Adjustments:

  • Refactored to use getWorkspaceFolders utility function for better code reuse.
  • Modified the site URL handling to integrate with the new PreviewSite methods.

Other Codebase Improvements:

  • Removed the deprecated showProgressNotification function and replaced it with showProgressWithNotification.
  • Enhanced AuthenticationProvider.ts by adding service scope mappings for different environments.

These changes collectively improve the robustness and user experience of the site preview feature while ensuring the codebase remains clean and maintainable.

@priyanshu92 priyanshu92 requested review from a team as code owners December 17, 2024 13:53
@priyanshu92 priyanshu92 enabled auto-merge (squash) December 17, 2024 13:53
@priyanshu92 priyanshu92 changed the title Add sovereign cloud endpoints for PPAPI service Site Runtime Preview Enhancements Jan 10, 2025
ppapiEndpoint = "https://api.powerplatform.cn";
break;
// Below endpoints are not supported yet
case ServiceEndpointCategory.HIGH:
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a separate endpoint for HIGH?


const orgDetails = await initializeOrgDetails(false, pacTerminal.getWrapper());

progress.report({ message: vscode.l10n.t('Getting region information...') });
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we move all the strings to constants?

package.json Show resolved Hide resolved
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