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

Check Dataverse Org URL for validity #1001

Merged
merged 2 commits into from
Jul 25, 2024

Conversation

tyaginidhi
Copy link
Contributor

This pull request primarily focuses on enhancing error handling in the src/web/client/common/errorHandler.ts file and adding new telemetry event names in the src/common/OneDSLoggerTelemetry/web/client/webExtensionTelemetryEvents.ts file.

The key changes include the addition of two new telemetry event names, a new function isDynamicsCRMUrl(), and updates to the checkMandatoryQueryParameters() function to include a check for a valid Dynamics CRM URL. Here's a breakdown of the changes:

New telemetry event names:

Error handling enhancements:

  • src/web/client/common/errorHandler.ts: A new function isDynamicsCRMUrl() was added. This function checks if a URL is a valid Dynamics CRM URL using a regular expression and logs an error telemetry event if it's not.
  • src/web/client/common/errorHandler.ts: The checkMandatoryQueryParameters() function was updated to include a call to isDynamicsCRMUrl(). This ensures that the orgURL parameter is a valid Dynamics CRM URL before proceeding.

@tyaginidhi tyaginidhi marked this pull request as ready for review July 23, 2024 09:28
@tyaginidhi tyaginidhi requested review from a team as code owners July 23, 2024 09:28
@tyaginidhi tyaginidhi changed the title Check Dataverse Org URL fro validity Check Dataverse Org URL for validity Jul 25, 2024
@tyaginidhi tyaginidhi merged commit 726205d into main Jul 25, 2024
6 checks passed
@tyaginidhi tyaginidhi deleted the users/nityagi/ChecksOnInputParams branch July 25, 2024 06:12
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