feat(analytics): refactor and introduce analytics APIs to accommodate OrgLevel, MerchantLevel and ProfileLevel authentication#5729
Merged
likhinbopanna merged 68 commits intomainfrom Sep 3, 2024
Conversation
ThisIsMani
reviewed
Aug 31, 2024
lsampras
approved these changes
Sep 2, 2024
Narayanbhat166
approved these changes
Sep 3, 2024
ThisIsMani
approved these changes
Sep 3, 2024
Contributor
ThisIsMani
left a comment
There was a problem hiding this comment.
Please check Cargo.lock changes.
And inform control-center FE about dashboard.toml.
lsampras
added a commit
that referenced
this pull request
Sep 3, 2024
… OrgLevel, MerchantLevel and ProfileLevel authentication (#5729) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Sampras Lopes <sampras.lopes@juspay.in>
14 tasks
pixincreate
added a commit
that referenced
this pull request
Sep 5, 2024
* 'main' of github.com:juspay/hyperswitch: feat(customer_v2): Add customer V2 delete api (#5518) chore(version): 2024.09.05.0 feat(user_roles): get user role details (#5777) feat(users): Add profile level invites (#5793) refactor(router): profile based routes for payouts (#5794) Feat(connector): [Fiuu] Add Card Flows (#5786) fix(cypress): fix fiservemea configs for cypress (#5772) fix(cypress): `api_key` check in cypress (#5787) feat(payment_methods_v2): Implemented Diesel and Domain models for v2 (#5700) fix(payout): query for getting a list of active payout IDs (#5771) refactor(router): remove admin v2 intermediate features (#5780) feat(revert): populate payment method details in payments response (#5785) chore(version): 2024.09.04.0 fix(connector): skip 3DS in `network_transaction_id` flow for cybersource (#5781) refactor(euclid): check the authenticity of profile_id being used (#5647) feat(analytics): refactor and introduce analytics APIs to accommodate OrgLevel, MerchantLevel and ProfileLevel authentication (#5729) fix(router): make customer details None in the `Psync` flow if the customer is deleted (#5732) feat(connector): [DEUTSCHE] Add template code (#5774) chore(version): 2024.09.03.1 fix(router): send post message to window.parent instead of window.top in external 3ds flow (#5778)
This was referenced Sep 6, 2024
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
Introducing OrgLevel, MerchantLevel and ProfileLevel authentication for analytics, the following changes are done:
The levels are described as:
OrgLevel { org_id: id_type::OrganizationId, }, MerchantLevel { org_id: id_type::OrganizationId, merchant_ids: Vec<id_type::MerchantId>, }, ProfileLevel { org_id: id_type::OrganizationId, merchant_id: id_type::MerchantId, profile_ids: Vec<id_type::ProfileId>, }Introduced
ProfileIdas a dimension and filter for analytics:Changed the clickhouse query to search in
UTC timezoneby converting the timestamp into epochThe API's added are as follows:
Merchant Level
Additional Changes
Motivation and Context
OrgLevel, MerchantLevel and ProfileLevel provide for enhanced analytics insights on metrics, filters etc of Payments, Refunds, Disputes etc.
How did you test it?
Checklist
cargo +nightly fmt --allcargo clippy