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

Aggregation of app data to single graphs #7

Closed
DanielNagy opened this issue Jun 27, 2012 · 8 comments
Closed

Aggregation of app data to single graphs #7

DanielNagy opened this issue Jun 27, 2012 · 8 comments

Comments

@DanielNagy
Copy link

It would be cool if you could aggregate all applications user/session/platforms/etc into a main dashboard page?

Possibly even only show a sum of a "group/categories" of apps.

@osoner
Copy link
Member

osoner commented Jun 27, 2012

Existing platform-wise this is pretty easy to implement. We were talking about the same feature recently and I think this is a useful one. Probably it will first be available as the aggregation of all apps and later on we can discuss about grouping/tagging.

I will make sure to arrange a spot for this on our roadmap.

@DanielNagy
Copy link
Author

That would be great :)

@jpilon
Copy link

jpilon commented Jul 26, 2013

Has there been any update to this?

@osoner
Copy link
Member

osoner commented Jul 26, 2013

Wow, it is always very nostalgic to see a request from a year ago that is not implemented :) It is not done yet since we have been busy with funnels and segmentations. As soon as we are done, we will go over this kind of very nice to have features.

@jpilon
Copy link

jpilon commented Jul 26, 2013

Purrrfect, I've just installed the server, have big plans for it but aggregation by all apps / category is a crucial must have, especially via api read (I know I can loop over each app via api but would be nice for singular api call) :)

@osoner
Copy link
Member

osoner commented Jul 26, 2013

If the data from the API will suffice (no aggregated graphs etc.) I can suggest something in case you are willing to dive into the code :)

By default standart data such as sessions, locations etc. are returned through fetch.js #154. As you can see it uses the single app_id which belongs to the current application.

In order to extend this logic you can simply add another function to fetch.js like below. Note that it is using a parameter called app_ids which will basically be an array containing the app_ids you want the data for.

fetch.fetchMultiAppData = function (collection, params) {
    common.db.collection(collection).find({'_id': {$in: params.app_ids}}).toArray(function (err, result) {
        common.returnOutput(params, result);
    });
};

Then you can simply add your own route to the api (something like /o/all) that will be very similar to /o but it will have an extra app_ids parameter and you might want to check if the requester has the rights to read data for all apps in this array.

@jpilon
Copy link

jpilon commented Jul 26, 2013

Very nice! I will give that a try, thanks!

@ar2rsawseen
Copy link
Member

All Apps view added to Countly in 607f8e0

ar2rsawseen pushed a commit that referenced this issue May 7, 2019
f3n9 pushed a commit to f3n9/countly-server that referenced this issue Aug 21, 2019
…h_events to master

* commit 'e47fd0699beb92e0d9df5e9d5611ff76c873861b':
  split table based on CN time
ar2rsawseen pushed a commit that referenced this issue Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants