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

Add some tracing #11102

Open
wants to merge 6 commits into
base: otter
Choose a base branch
from
Open

Add some tracing #11102

wants to merge 6 commits into from

Conversation

alexopenline
Copy link
Contributor

@alexopenline alexopenline commented Feb 2, 2025

Important

Deprecates sourceOfTruth in GraphQL schemas, removes billing profile functionality, and updates repositories and services accordingly.

  • GraphQL Schema Changes:
    • Deprecated sourceOfTruth field in multiple GraphQL schemas, including attachment.graphqls, billing_profile.graphqls, calendar.graphqls, and others.
    • Deprecated billing profile-related mutations in billing_profile.graphqls.
  • Service and Functionality Removal:
    • Removed billing profile-related services from billing_profile_service.go and init.go.
    • Removed billing profile-related event handlers from organization_event_handlers.go.
    • Removed billing profile-related gRPC services from organization_service.go and grpc_server.go.
  • Test and Mock Removal:
    • Deleted billing profile-related tests from billing_profile.resolvers_it_test.go.
    • Removed mock organization service from mock_organization.go.
  • Repository Changes:
    • Removed BillingProfileWriteRepository from repositories.go and billing_profile_write_repository.go.
    • Updated contact_read_repository.go to fix cypher query issues.
  • Miscellaneous:
    • Updated workspace_write_repository.go to include tenant parameter in Merge function.
    • Removed organization-related aggregates, commands, and events from the domain model.

This description was created by Ellipsis for 66612c0. It will automatically update as commits are pushed.

@alexopenline alexopenline marked this pull request as ready for review February 2, 2025 10:23
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Reviewed everything up to 7e8b26e in 37 seconds

More details
  • Looked at 430 lines of code in 23 files
  • Skipped 1 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. packages/server/customer-os-neo4j-repository/repository/contact_read_repository.go:866
  • Draft comment:
    Unnecessary use of fmt.Sprintf for the cypher variable. It can be a simple string since no formatting is needed.
cypher := `MATCH (t:Tenant {active:true, name: $tenant})<-[:CONTACT_BELONGS_TO_TENANT]-(c:Contact)--(l:Location) 
	WHERE c.hide = false and l.locality IS NOT NULL AND l.locality <> '' RETURN distinct l.locality`
  • Reason this comment was not posted:
    Comment was on unchanged code.

Workflow ID: wflow_6yLI6jS7436OsVQQ


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on 70db844 in 24 seconds

More details
  • Looked at 267 lines of code in 6 files
  • Skipped 0 files when reviewing.
  • Skipped posting 5 drafted comments based on config settings.
1. packages/server/customer-os-api/mapper/calendar_mapper.go:10
  • Draft comment:
    The 'SourceOfTruth' field has been removed from the 'MapEntityToCalendar' function. Ensure this is intentional and won't affect the application's logic.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The PR description is empty, but the changes seem to focus on removing the 'SourceOfTruth' field from various structs and functions. This change is consistent across multiple files, indicating a deliberate refactor. However, the PR title suggests adding tracing, which is not evident in the changes. The removal of 'SourceOfTruth' should be confirmed as intentional.
2. packages/server/customer-os-api/mapper/custom_field_mapper.go:22
  • Draft comment:
    The 'SourceOfTruth' field has been removed from the 'MapCustomFieldInputToEntity' function. Ensure this is intentional and won't affect the application's logic.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The 'SourceOfTruth' field has been removed from the 'MapCustomFieldInputToEntity' function. This change is consistent with other parts of the PR, but it's important to confirm that this removal is intentional and won't affect the application's logic.
3. packages/server/customer-os-api/mapper/custom_field_mapper.go:35
  • Draft comment:
    The 'SourceOfTruth' field has been removed from the 'MapCustomFieldUpdateInputToEntity' function. Ensure this is intentional and won't affect the application's logic.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The 'SourceOfTruth' field has been removed from the 'MapCustomFieldUpdateInputToEntity' function. This change is consistent with other parts of the PR, but it's important to confirm that this removal is intentional and won't affect the application's logic.
4. packages/server/customer-os-api/repository/custom_field_repository.go:80
  • Draft comment:
    The 'SourceOfTruth' field has been removed from the 'MergeCustomFieldInTx' function. Ensure this is intentional and won't affect the application's logic.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The 'SourceOfTruth' field has been removed from the 'MergeCustomFieldInTx' function. This change is consistent with other parts of the PR, but it's important to confirm that this removal is intentional and won't affect the application's logic.
5. packages/server/customer-os-api/repository/custom_field_repository.go:250
  • Draft comment:
    The 'SourceOfTruth' field has been removed from the 'UpdateForContactInTx' function. Ensure this is intentional and won't affect the application's logic.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The 'SourceOfTruth' field has been removed from the 'UpdateForContactInTx' function. This change is consistent with other parts of the PR, but it's important to confirm that this removal is intentional and won't affect the application's logic.

Workflow ID: wflow_LCtQukV8k0vZD4Tl


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on 7eff5f1 in 41 seconds

More details
  • Looked at 48 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. packages/server/customer-os-api/graphql/resolver/billing_profile.resolvers.go:16
  • Draft comment:
    The function is currently not implemented and contains a panic statement. Ensure to implement the functionality before deploying to production.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The PR adds new resolver functions that are currently not implemented. This is a placeholder code, and the panic statements indicate that the functionality is yet to be developed. This is not a bug but a part of the development process.

Workflow ID: wflow_CneFLtP9g3XNaXA7


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on 2b43469 in 1 minute and 58 seconds

More details
  • Looked at 4820 lines of code in 37 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. packages/server/customer-os-api/graphql/generated/generated.go:13273
  • Draft comment:
    The sourceOfTruth field has been marked as deprecated across multiple entities. Ensure that this deprecation is documented and communicated to all relevant stakeholders, as it may impact existing integrations or client applications. This change is also present in other parts of the codebase, such as in BillingProfile, Calendar, InteractionSession, InteractionEvent, Issue, Location, LogEntry, Meeting, Note, Opportunity, PageView, Social, TenantBillingProfile, and User.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The PR removes the sourceOfTruth field from multiple entities and marks it as deprecated. This change is consistent across various files, indicating a deliberate decision to phase out this field. However, the PR description does not provide context or reasoning for this deprecation, which could be useful for future reference.

Workflow ID: wflow_5uvzRHv3g7GNPMwI


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on e8ac718 in 43 seconds

More details
  • Looked at 124 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. packages/server/customer-os-api/test/grpc/events_platform/test_dial_factory.go:34
  • Draft comment:
    The MockOrganizationService registration has been removed. Ensure that no tests depend on this mock service, as it might lead to test failures.
  • Reason this comment was not posted:
    Comment did not seem useful.

Workflow ID: wflow_mLUVLGt5JP4uMWdY


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on 66612c0 in 42 seconds

More details
  • Looked at 31 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. packages/server/customer-os-neo4j-repository/test/neo4j_data_helper.go:363
  • Draft comment:
    The functions CreateBillingProfileForOrganization and CreateBillingProfile were removed. Ensure these functions are not used elsewhere in the codebase to avoid runtime errors.
  • Reason this comment was not posted:
    Comment did not seem useful.

Workflow ID: wflow_Idme7YkLHnsz5nbX


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

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