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

Unable to access /admin/actitvity #189

Open
Pymous opened this issue Sep 8, 2023 · 9 comments
Open

Unable to access /admin/actitvity #189

Pymous opened this issue Sep 8, 2023 · 9 comments
Milestone

Comments

@Pymous
Copy link

Pymous commented Sep 8, 2023

Hi, thanks for the awesome work on Pathfinder and the container image.

We're bumping against a small issue, in the admin panel, where the tab "Activity" is greyed out (class disabled on the HTML), and we can't find why nor how to activate it.

In the /setup everything looks good (either with the checkmark, or enabled regarding activity/log), and in the config files, ACTIVIY is enabled for all level, and same on the map level with "Store user statistics" ernabled.

Are we missing something obvious ? And what can we provide to help with the issue ?

Have a good day !

@vlanf
Copy link

vlanf commented Sep 8, 2023

@Pymous
Copy link
Author

Pymous commented Sep 8, 2023

So it's not a config issue, thanks for digging :D

Do you have any idea why it's like that ? Or if there is an alternative way to get logs about the activity ? Like who scanned things, ... ? (even if it's a db or a logfile)

@vlanf
Copy link

vlanf commented Sep 8, 2023

There is activity logs in the map. Map -> information -> log. Should be enabled in map settings beforehand. Note that you should do this fix if you use docker containers solution: goryn-clade/pathfinder-containers#66

@TyrHeimdalEVE
Copy link
Collaborator

TyrHeimdalEVE commented Sep 8, 2023

EDIT (while writing): @nefyodovve has a point here, that "disabled" tag doesn't look dynamic to me, but I could be missing something. I'm gonna boot up my dev environment within this weekend and take a look.


Thank you for your kind words!

Can you confirm that, under the section in your pathfinder.ini file, you have:
LOG_ACTIVITY_ENABLED set to 1 (one)? There's one each for PRIVATE, CORPORATION and ALLIANCE respectively.

See: https://github.com/goryn-clade/pathfinder/blob/b73f3726ee5e3a2581b75fd83e851d20ea61bec5/app/pathfinder.ini#L165C1-L192

Also note; if my memory serves me well, this data is only available to an ADMIN user, which is configured here:
https://github.com/goryn-clade/pathfinder-containers/blob/e7cce14353c9513e57318d530b08011c3bdda875/config/pathfinder/pathfinder.ini#L375-L381

So if the Pathfinder Admin is El'Miner (Character ID 277137239), then the configuration would be:

CHARACTER.0.ID = 277137239
CHARACTER.0.ROLE = SUPER

Can you confirm that you are viewing this as an actual Pathfinder admin?

Do you have any idea why it's like that ? Or if there is an alternative way to get logs about the activity ? Like who scanned things, ... ? (even if it's a db or a logfile)

The data is available in the DB, as long as logging is turned on for the map. I had this beautiful SQL Query somewhere that would group every members alts of calculate the sum by the main character and print out a sorted order. I'll see if I can find it somewhere.

This is something I aim to improve, because if you using the SHARING_SESSION where out of corp alts get access to the CORP map, their statistics does not show in the map activity.

@vlanf
Copy link

vlanf commented Sep 8, 2023

@TyrHeimdalEVE I can confirm that button 'Activity' in admin panel is disabled. I'm admin with SUPER role, and have LOG_ACTIVITY_ENABLED 1. I think original author just not finished its development.

Logging for maps are in map information in main app, and can be enabled by managers/admins per-map.

@Pymous
Copy link
Author

Pymous commented Sep 8, 2023

I know those question are not related to the issue, but related to what I intend to do with the data :

  • If I can't access the Activity panel, is there a way to track how many WH added by members, and how many 100% sigs they added, also grouped by members ?

To be honest : I'm not looking for a handout, if you guys tell me that those data are in the DB, and that I can access the DB, I'll dig in, just looking for an answer on the faisability of it all.

Thanks for the work !

--

Back to the issue, yes, I'm an ADMIN in the config, and LOG_ACTIVITY_ENABLED is ON for all three levels (member, corp, alliance) :)

@vlanf
Copy link

vlanf commented Sep 8, 2023

@Pymous

Are you looking for this statistics?

image

@Pymous
Copy link
Author

Pymous commented Sep 8, 2023

That's absolutely what I was looking for, awesome !

I'm not sure another tab ("Activity") is needed then, I guess it's a non issue with those infos there !

Thanks again, it's all good for me :D

@TyrHeimdalEVE TyrHeimdalEVE added this to the 2.3.0 milestone Sep 8, 2023
@TyrHeimdalEVE
Copy link
Collaborator

I'd still like to follow up on this and verify why it's disabled, so keeping it open (for now). :-)

Regarding the above statistics; it'll only show people in your own corporation afaik so any shared alts will not be counted.

Have a great weekend, and thanks for reporting it nonetheless!

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

No branches or pull requests

3 participants