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

misc(Customer): merge single object and object types #905

Merged
merged 1 commit into from
Mar 13, 2023

Conversation

ansmonjol
Copy link
Collaborator

@ansmonjol ansmonjol commented Mar 8, 2023

Context

This is the last task removing single_object types over the app.

This one is a bit tricky as it was really used on FE side and had different logic for the same attributes depending on the type.

Overall:

  • invoices, applied_coupons, applied_add_ons and credit_notes are "simply" added to the Customer type with the definition they had in the Customer single_object
  • subscriptions was present in both types but a specific resolved was present in the customer details. I applied the single_object resolver on them as it was the one used in FE app.

Related Front-End PR: getlago/lago-front#890

Description

This PR merge the Customer single_object into the Customer object type

@ansmonjol ansmonjol added the GraphQL Related to the GraphQL API label Mar 8, 2023
@ansmonjol ansmonjol self-assigned this Mar 8, 2023
@ansmonjol ansmonjol force-pushed the customer-single-object branch from fd865ea to 723896b Compare March 8, 2023 14:27
@ansmonjol ansmonjol force-pushed the customer-single-object branch 2 times, most recently from 1366c0a to 5e27c34 Compare March 10, 2023 09:05
@ansmonjol ansmonjol force-pushed the customer-single-object branch from 5e27c34 to 62b0e04 Compare March 10, 2023 14:01
@ansmonjol ansmonjol merged commit a042939 into main Mar 13, 2023
@ansmonjol ansmonjol deleted the customer-single-object branch March 13, 2023 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GraphQL Related to the GraphQL API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants