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

[FEATURE] Create a user flow run logs service. #15

Closed
13 tasks done
Sachinbisht27 opened this issue Apr 22, 2024 · 4 comments
Closed
13 tasks done

[FEATURE] Create a user flow run logs service. #15

Sachinbisht27 opened this issue Apr 22, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request Point: 3

Comments

@Sachinbisht27
Copy link
Member

Sachinbisht27 commented Apr 22, 2024

Is your feature request related to a problem? Please describe.
We need a service to store the flow run details in the database whenever will get webhooks from the Glific flows for any user we want to hold that record in the database.

Describe the solution you'd like

  • Handle webhook to get details like:
    • user phone
    • flow uuid
    • flow name
    • flow type
    • flow run status
    • flow start time
    • flow end time
    • flow is active or not
  • Add logic to create a new entry in the user flow table.
  • Logic to update the details in the same entry once the flow ends.
  • Add a check to verify if the user flow details are already in the database.

Describe alternatives you've considered
NA

Additional context
NA

Acceptance Criteria

  • The flow run details should be added or updated in the table properly for the users.

Documentation
Add whatever documentation will be required here.

@kritirakheja
Copy link

@Satendra-SR are we picking this in this quarter? If not let's move this to Q3

@Satendra-SR
Copy link
Member

This is being a part of Glific integration @kritirakheja and already being worked on

@Sachinbisht27
Copy link
Member Author

CLosing as completed and released

@Sachinbisht27
Copy link
Member Author

Sachinbisht27 commented Jun 8, 2024

Details on the items that are done in the story:

Development under the estimations: - 16 hours

  • Handled the webhook to capture the required details for the feature.
  • Added logic to create new logs in the user-flow table based on several conditions.
  • Logic to update the new details in the same entry till the flow ends.
  • Added logic to verify if the user flow details are already in the database.
  • Testing of the functionality locally and on the staging environment.

Out of scope work: - 2 hours

  • The indexing of a few columns in the existing tables as it going to take more resources as the table grows.
  • Generating migration for the indexing of the columns in the tables.
  • Test all the functionalities that may be relatable.

Issue comment:
#24 (comment)

Screenshots:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Point: 3
Projects
None yet
Development

No branches or pull requests

3 participants